hfxc226 1 долоо хоног өмнө
parent
commit
eb9b4e23d4

+ 2 - 2
platform-service/src/main/java/com/platform/service/produce/impl/ProduceReportServiceImpl.java

@@ -1164,7 +1164,7 @@ public class ProduceReportServiceImpl extends BaseServiceImpl<ProduceReportMappe
 
         // 排序
         if (!CollectionUtils.isEmpty(resultList)) {
-            resultList = resultList.stream().sorted(Comparator.comparing(ProduceReportTianVO::getDate)).collect(Collectors.toList());
+            resultList = resultList.stream().sorted(Comparator.comparing(ProduceReportTianVO::getDate).reversed()).collect(Collectors.toList());
         }
         return resultList;
     }
@@ -1291,7 +1291,7 @@ public class ProduceReportServiceImpl extends BaseServiceImpl<ProduceReportMappe
 
         // 排序
         if (!CollectionUtils.isEmpty(resultList)) {
-            resultList = resultList.stream().sorted(Comparator.comparing(ProduceReportTianVO::getDate)).collect(Collectors.toList());
+            resultList = resultList.stream().sorted(Comparator.comparing(ProduceReportTianVO::getDate).reversed()).collect(Collectors.toList());
         }
         return resultList;
     }