Explorar el Código

顽症报表--调整排序

zhuang hace 7 meses
padre
commit
34d6a90458

+ 3 - 0
business-common/src/main/java/com/rongwei/bscommon/sys/service/impl/ZhcxPersistentManageServiceImpl.java

@@ -473,6 +473,9 @@ public class ZhcxPersistentManageServiceImpl extends ServiceImpl<ZhcxPersistentM
             processOrgUserCount(organization.getId(),month, reportDataMap, reportList);
         }
         reportList.sort(Comparator.comparing(ZhcxPersistentReportDto::getSort,Comparator.reverseOrder()));
+        for (int i = 0; i < reportList.size(); i++) {
+            reportList.get(i).setNo(i+1);
+        }
         return reportList;
     }