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