소스 검색

生产报表

hfxc226 1 개월 전
부모
커밋
eb9b4e23d4
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      platform-service/src/main/java/com/platform/service/produce/impl/ProduceReportServiceImpl.java

+ 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;
     }