Sfoglia il codice sorgente

优化欠费催缴分页问题

xiaogang 4 anni fa
parent
commit
75ffc8dac5

+ 2 - 2
service-job/src/main/java/com/java110/job/task/wechat/FeeCollectionPushMessageTemplate.java

@@ -137,12 +137,12 @@ public class FeeCollectionPushMessageTemplate extends TaskSystemQuartz {
         ReportOweFeeDto reportOweFeeDto = new ReportOweFeeDto();
         reportOweFeeDto.setCommunityId(communityDto.getCommunityId());
         reportOweFeeDto.setHasOweFee("Y");
-        long oweCount = reportOweFeeInnerServiceSMOImpl.queryReportOweFeesCount(reportOweFeeDto);
+        int oweCount = reportOweFeeInnerServiceSMOImpl.queryReportOweFeesCount(reportOweFeeDto);
         if (oweCount == 0) {
             return;
         }
 
-        double maxPage = Math.ceil(oweCount / DEFAULT_FEE_COUNT);
+        int maxPage = (int) Math.ceil(oweCount * 1.0 / DEFAULT_FEE_COUNT);
 
         for (int roomIndex = 1; roomIndex <= maxPage; roomIndex++) {
             try {