Your Name пре 2 година
родитељ
комит
73c597bcf1

+ 2 - 2
service-job/src/main/java/com/java110/job/export/adapt/DataMonthOweStatisticsAdapt.java

@@ -66,9 +66,9 @@ public class DataMonthOweStatisticsAdapt implements IExportDataAdapt {
         queryStatisticsDto.setLink(reqJson.getString("link"));
         long count = reportFeeStatisticsInnerServiceSMOImpl.getMonthOweDetailCount(queryStatisticsDto);
 
-        count = (int) Math.ceil((double) count / (double) MAX_ROW);
+        int maxPage  = (int) Math.ceil((double) count / (double) MAX_ROW);
         List<Map> infos = null;
-        for (int page = 1; page <= count; page++) {
+        for (int page = 1; page <= maxPage; page++) {
             queryStatisticsDto.setPage(page);
             queryStatisticsDto.setRow(MAX_ROW);
             infos = reportFeeStatisticsInnerServiceSMOImpl.getMonthOweDetailInfo(queryStatisticsDto);

+ 2 - 2
service-job/src/main/java/com/java110/job/export/adapt/DataMonthReceivedStatisticsAdapt.java

@@ -73,9 +73,9 @@ public class DataMonthReceivedStatisticsAdapt implements IExportDataAdapt {
         queryStatisticsDto.setLink(reqJson.getString("link"));
         long count = reportFeeStatisticsInnerServiceSMOImpl.getMonthReceivedDetailCount(queryStatisticsDto);
 
-        count = (int) Math.ceil((double) count / (double) MAX_ROW);
+        int maxPage = (int) Math.ceil((double) count / (double) MAX_ROW);
         List<Map> infos = null;
-        for (int page = 1; page <= count; page++) {
+        for (int page = 1; page <= maxPage; page++) {
             queryStatisticsDto.setPage(page);
             queryStatisticsDto.setRow(MAX_ROW);
             infos = reportFeeStatisticsInnerServiceSMOImpl.getMonthReceivedDetailInfo(queryStatisticsDto);