| | |
| | | for(Attendance attendance : attendanceList){ |
| | | CalendarVo onDuty = new CalendarVo(); |
| | | onDuty.setDate(df.format(attendance.getAttendanceDate())); |
| | | onDuty.setTitle(Constant.ATTENDANCE_STATE_NORMAL.equals(formateResult(attendance.getStartClockResults()).get("msg")) ? "上班打卡时间:" + attendance.getRosteringWorkStartTime().toString() : "上班:" + formateResult(attendance.getStartClockResults()).get("msg")); |
| | | String dsf = formateResult(attendance.getStartClockResults()).get("msg").toString(); |
| | | onDuty.setTitle(Constant.ATTENDANCE_STATE_NORMAL.equals(formateResult(attendance.getStartClockResults()).get("msg")) ? "上班打卡时间:" + attendance.getActualWorkStartTime().toString() : "上班:" + formateResult(attendance.getStartClockResults()).get("msg")); |
| | | onDuty.setIsOk((Boolean) formateResult(attendance.getStartClockResults()).get("status")); |
| | | onDuty.setType(1); |
| | | CalendarVo offDuty = new CalendarVo(); |
| | | offDuty.setDate(df.format(attendance.getAttendanceDate())); |
| | | offDuty.setTitle(Constant.ATTENDANCE_STATE_NORMAL.equals(formateResult(attendance.getEndClockResults()).get("msg")) ? "下班打卡时间:" + attendance.getRosteringWorkEndTime().toString() : "下班:" + formateResult(attendance.getEndClockResults()).get("msg")); |
| | | offDuty.setTitle(Constant.ATTENDANCE_STATE_NORMAL.equals(formateResult(attendance.getEndClockResults()).get("msg")) ? "下班打卡时间:" + attendance.getActualWorkEndTime().toString() : "下班:" + formateResult(attendance.getEndClockResults()).get("msg")); |
| | | offDuty.setIsOk((Boolean) formateResult(attendance.getEndClockResults()).get("status")); |
| | | offDuty.setType(1); |
| | | calendarInfo.add(onDuty); |
| | |
| | | for (UserDto userDTO : queryAll) { |
| | | List<String> roles = userDTO.getRoles().stream().map(RoleSmallDto::getName).collect(Collectors.toList()); |
| | | String levelName = userDTO.getLevelId() != null ? sysLevelRepository.findById(userDTO.getLevelId()).orElseGet(SysLevel::new).getName() : ""; |
| | | SystemSetting systemSetting = systemSettingRepository.findByLabel(userDTO.getCompany()); |
| | | SystemSetting systemSetting = systemSettingRepository.findByValue(userDTO.getCompany()); |
| | | Map<String, Object> map = new LinkedHashMap<>(); |
| | | map.put("用户名", userDTO.getUsername()); |
| | | map.put("角色", roles); |