Xiaojh 4 years ago
parent
commit
23f59d309e

+ 1 - 1
smart-city-platform/src/main/java/com/bz/smart_city/service/impl/pay/PayChargeSurveyServiceImpl.java

@@ -603,7 +603,7 @@ public class PayChargeSurveyServiceImpl implements PayChargeSurveyService {
             endDate = (currentYear - 1)+"-"+String.format("%02d",month);
 
             //明天任务,查询汇总表
-            BigDecimal lastAmount = payChargeSurveyMapper.getAmountSureyInfo(startDate+" 00:00:00",endDate+" 00:00:00",siteId,customerId);
+            BigDecimal lastAmount = payChargeSurveyMapper.getAmountSureyInfo(startDate+"-01"+" 00:00:00",endDate+"-01"+" 00:00:00",siteId,customerId);
             //BigDecimal lastAmount = payChargeSurveyMapper.getAmountInfo(startDate,endDate,siteId,customerId);
             //计算年同比 = 当前总数-去年同期总数│/去年同期总数
             String lastYearRate = "0.0";