瀏覽代碼

调控记录列表倒序展示

xusl 6 月之前
父節點
當前提交
4b60f491e8

+ 1 - 1
cpp-admin/src/main/java/com/cpp/web/controller/regulation/DqRegulationController.java

@@ -401,7 +401,7 @@ public class DqRegulationController {
         List<TempShortRegulation> tempShortRegulationList = tempShortRegulationService.list(tempShortRegulationQueryWrapper);
         if (tempShortRegulationList.size()>0){
             // 排序调控日期、调控场站、上报预测日期
-            tempShortRegulationList.sort(Comparator.comparing(TempShortRegulation::getTkDate).thenComparing(TempShortRegulation::getStationCode).thenComparing(TempShortRegulation::getForecastDate));
+            tempShortRegulationList.sort(Comparator.comparing(TempShortRegulation::getTkDate).reversed().thenComparing(TempShortRegulation::getStationCode).thenComparing(TempShortRegulation::getForecastDate));
         }
         List<Map<String, Object>> tableList = new ArrayList();
         List<SysUser> sysUserList = iSysUserService.findAll();