This commit is contained in:
zt
2025-12-03 20:18:34 +08:00
parent 35d2a10c0e
commit 2f0b323680

View File

@ -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();