| | |
| | | AtomicInteger maternityLeaveCount = new AtomicInteger(0);//产假天数 |
| | | AtomicInteger attendanceDayCount = new AtomicInteger(0);//出勤天数 |
| | | AtomicDouble attendanceWorkHourCount = new AtomicDouble(0D);//出勤总时间 |
| | | for (int j = 0; j < shiftMapDtos.size(); j++) { |
| | | PerformanceShiftMapDto shiftMapDto = shiftMapDtos.get(j); |
| | | for (int j = 0; j < attendanceDateList.size(); j++) { |
| | | LocalDate localDate = attendanceDateList.get(j); |
| | | PerformanceShiftMapDto shiftMapDto = shiftMapDtos.stream().filter(f -> f.getWorkTime().toLocalDate().equals(localDate)).findFirst().orElse(null); |
| | | if(Objects.nonNull(shiftMapDto)){ |
| | | //统计各假期和公差的天数 |
| | | if(StringUtils.contains(shiftMapDto.getShiftName(),holidayLeaveKeyword)){ |
| | | holidayCount.getAndIncrement(); |
| | |
| | | annotationTextList.add(new StaffAttendanceAnnotationTextExcelData(i,j,shiftMapDto.getAnnotationText())); |
| | | } |
| | | } |
| | | }else{ |
| | | shiftList.add(""); |
| | | } |
| | | } |
| | | if(StringUtils.isNoneBlank(staffAttendanceDTO.getAttendanceReportType()) && StringUtils.equals(staffAttendanceDTO.getAttendanceReportType(), CalendarType.MONTH.name())){ |
| | | attendanceExcelData.setShiftList(shiftList); |