浏览代码

优化预警排序

tags/24080901
PoffyZhang 1年前
父节点
当前提交
6ef61cb91b
共有 1 个文件被更改,包括 6 次插入3 次删除
  1. +6
    -3
      pmapi/src/main/java/com/ningdatech/pmapi/workbench/manage/WorkbenchManage.java

+ 6
- 3
pmapi/src/main/java/com/ningdatech/pmapi/workbench/manage/WorkbenchManage.java 查看文件

@@ -238,7 +238,8 @@ public class WorkbenchManage {
}
vo.setProjectName(projectNameMap.get(o.getProjectCode()));
return vo;
}).collect(Collectors.toList());
}).sorted(Comparator.comparing(ProjectEarlyWarningVO::getWarningTime).reversed())
.collect(Collectors.toList());
projectEarlyWarning.setOvers(PageVo.of(overVos,overPage.getTotal()));
}else{
projectEarlyWarning.setOvers(PageVo.empty());
@@ -261,7 +262,8 @@ public class WorkbenchManage {
}
vo.setProjectName(projectNameMap.get(o.getProjectCode()));
return vo;
}).collect(Collectors.toList());
}).sorted(Comparator.comparing(ProjectEarlyWarningVO::getWarningTime).reversed())
.collect(Collectors.toList());
projectEarlyWarning.setAdvents(PageVo.of(adventVos,adventPage.getTotal()));
}else{
projectEarlyWarning.setAdvents(PageVo.empty());
@@ -284,7 +286,8 @@ public class WorkbenchManage {
}
vo.setProjectName(projectNameMap.get(o.getProjectCode()));
return vo;
}).collect(Collectors.toList());
}).sorted(Comparator.comparing(ProjectEarlyWarningVO::getId).reversed())
.collect(Collectors.toList());
projectEarlyWarning.setNormals(PageVo.of(normalVos,normalPage.getTotal()));
}else{
projectEarlyWarning.setNormals(PageVo.empty());


正在加载...
取消
保存