|
|
@@ -1023,8 +1023,8 @@ public class AttendancePostRecordController extends BaseController {
|
|
1023
|
1023
|
return;
|
|
1024
|
1024
|
}
|
|
1025
|
1025
|
|
|
1026
|
|
- List<String> terminalCodes = waitList.stream()
|
|
1027
|
|
- .map(AttendanceRecordCountWaitDTO::getTerminlCode)
|
|
|
1026
|
+ List<Long> terminalCodes = waitList.stream()
|
|
|
1027
|
+ .map(AttendanceRecordCountWaitDTO::getWaitTeamCode)
|
|
1028
|
1028
|
.distinct()
|
|
1029
|
1029
|
.collect(Collectors.toList());
|
|
1030
|
1030
|
|
|
|
@@ -1035,15 +1035,15 @@ public class AttendancePostRecordController extends BaseController {
|
|
1035
|
1035
|
List<AttendancePostRecord> checkoutRecords = attendancePostRecordService
|
|
1036
|
1036
|
.selectCheckOutTimeByShiftCodes(DateUtil.beginOfDay(new Date()), terminalCodes);
|
|
1037
|
1037
|
|
|
1038
|
|
- Map<String, List<AttendancePostRecord>> checkoutGroup = checkoutRecords.stream()
|
|
1039
|
|
- .collect(Collectors.groupingBy(AttendancePostRecord::getTerminlCode));
|
|
|
1038
|
+ Map<Long, List<AttendancePostRecord>> checkoutGroup = checkoutRecords.stream()
|
|
|
1039
|
+ .collect(Collectors.groupingBy(AttendancePostRecord::getAttendanceTeamId));
|
|
1040
|
1040
|
|
|
1041
|
1041
|
if (checkoutGroup.isEmpty()) {
|
|
1042
|
1042
|
return;
|
|
1043
|
1043
|
}
|
|
1044
|
1044
|
|
|
1045
|
1045
|
waitList.forEach(waitDTO -> {
|
|
1046
|
|
- List<AttendancePostRecord> records = checkoutGroup.get(waitDTO.getTerminlCode());
|
|
|
1046
|
+ List<AttendancePostRecord> records = checkoutGroup.get(waitDTO.getWaitTeamCode());
|
|
1047
|
1047
|
if (records != null && !records.isEmpty()) {
|
|
1048
|
1048
|
waitDTO.setCheckOutTime(records.get(0).getCheckOutTime());
|
|
1049
|
1049
|
}
|