统计排序
This commit is contained in:
parent
2c02ee738d
commit
86aa3849a6
@ -486,10 +486,11 @@ public class AttendanceServiceImpl implements AttendanceService {
|
|||||||
.eq(AttendancePunchRecordDO::getUserId, dto.getUserId())
|
.eq(AttendancePunchRecordDO::getUserId, dto.getUserId())
|
||||||
.in(AttendancePunchRecordDO::getDayTime, dateList)
|
.in(AttendancePunchRecordDO::getDayTime, dateList)
|
||||||
.eq(AttendancePunchRecordDO::getNextDayFlag, Constants.FALSE)
|
.eq(AttendancePunchRecordDO::getNextDayFlag, Constants.FALSE)
|
||||||
|
.orderByAsc(AttendancePunchRecordDO::getCreateTime)
|
||||||
.orderByAsc(AttendancePunchRecordDO::getWorkType)
|
.orderByAsc(AttendancePunchRecordDO::getWorkType)
|
||||||
.orderByAsc(AttendancePunchRecordDO::getLevel));
|
.orderByAsc(AttendancePunchRecordDO::getLevel));
|
||||||
// ---
|
// ---
|
||||||
Map<String, List<AttendancePunchRecordDO>> map = list.stream().collect(Collectors.groupingBy(AttendancePunchRecordDO::getDayTime));
|
Map<String, List<AttendancePunchRecordDO>> map = list.stream().collect(Collectors.groupingBy(AttendancePunchRecordDO::getDayTime, TreeMap::new, Collectors.toList()));
|
||||||
List<AttendancePunchStatisticsVO> averageWorkingHours = new ArrayList<>();
|
List<AttendancePunchStatisticsVO> averageWorkingHours = new ArrayList<>();
|
||||||
List<AttendancePunchStatisticsVO> attendanceDays = new ArrayList<>();
|
List<AttendancePunchStatisticsVO> attendanceDays = new ArrayList<>();
|
||||||
List<AttendancePunchStatisticsVO> beLateNumber = new ArrayList<>();
|
List<AttendancePunchStatisticsVO> beLateNumber = new ArrayList<>();
|
||||||
@ -813,8 +814,6 @@ public class AttendanceServiceImpl implements AttendanceService {
|
|||||||
// -- 根据部门分组 - 根据考勤组分组
|
// -- 根据部门分组 - 根据考勤组分组
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
|
Loading…
Reference in New Issue
Block a user