| | |
| | | List<JSONObject> list = deviceProductionLogDao.queryTopError(startDt, endDt); |
| | | return list; |
| | | } |
| | | public List<JSONObject> queryAttendUser() { |
| | | public JSONObject queryAttendUser() { |
| | | Date startDt = Date.from(LocalDateTime.of(LocalDate.now().minusDays(2000), LocalTime.of(0, 0, 0)).atZone(ZoneId.systemDefault()).toInstant()); |
| | | Date endDt = new Date(); |
| | | Date todayDt = Date.from(LocalDateTime.of(LocalDate.now(), LocalTime.of(0, 0, 0)).atZone(ZoneId.systemDefault()).toInstant()); |
| | | List<JSONObject> list = assemblyWorkLastDao.queryAttendUser(startDt, endDt,todayDt); |
| | | return list; |
| | | if(list.size() == 0){ |
| | | JSONObject obj = new JSONObject(); |
| | | obj.set("require_attend", "0"); |
| | | obj.set("actual_attend", "0"); |
| | | return obj; |
| | | } |
| | | return list.get(0); |
| | | } |
| | | |
| | | public List<JSONObject> queryStatisticWork() { |