顺序
This commit is contained in:
@ -198,7 +198,7 @@ public class HseSafetyInspectionServiceImpl extends ServiceImpl<HseSafetyInspect
|
||||
if (CollUtil.isNotEmpty(teamMeetings)) {
|
||||
// 获取最新的班组列表
|
||||
List<HseTeamMeeting> topList = teamMeetings.stream()
|
||||
.sorted(Comparator.comparing(HseTeamMeeting::getCreateTime).reversed())
|
||||
.sorted(Comparator.comparing(HseTeamMeeting::getMeetingDate).reversed())
|
||||
.limit(Optional.ofNullable(req.getPageSize()).orElse(20))
|
||||
.toList();
|
||||
List<Long> teamIds = topList.stream().map(HseTeamMeeting::getTeamId).toList();
|
||||
@ -224,7 +224,7 @@ public class HseSafetyInspectionServiceImpl extends ServiceImpl<HseSafetyInspect
|
||||
.eq(HseSafetyInspection::getProjectId, projectId)
|
||||
.list();
|
||||
List<HseSafetyInspection> passList = safetyInspectionList.stream()
|
||||
.sorted(Comparator.comparing(HseSafetyInspection::getCreateTime).reversed())
|
||||
.sorted(Comparator.comparing(HseSafetyInspection::getCheckTime).reversed())
|
||||
.filter(q -> "1".equals(q.getIsReply()))
|
||||
.filter(q -> !q.getStatus().equals(HseSafetyInspectionStatusEnum.INFORM.getValue()))
|
||||
.toList();
|
||||
@ -235,7 +235,7 @@ public class HseSafetyInspectionServiceImpl extends ServiceImpl<HseSafetyInspect
|
||||
}).toList();
|
||||
List<HseSafetyInspectionGis> inspections = safetyInspectionList.stream()
|
||||
// .filter(q -> "2".equals(q.getIsReply()))
|
||||
.sorted(Comparator.comparing(HseSafetyInspection::getCreateTime).reversed())
|
||||
.sorted(Comparator.comparing(HseSafetyInspection::getCheckTime).reversed())
|
||||
.toList()
|
||||
.stream().map(p -> {
|
||||
HseSafetyInspectionGis gis = new HseSafetyInspectionGis();
|
||||
|
||||
Reference in New Issue
Block a user