From 7a97003f4c0f4392e4efda4b4a745aab78f4ddac Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期四, 30 六月 2022 18:35:30 +0800
Subject: [PATCH] 优化清理垃圾数据问题
---
service-report/src/main/java/com/java110/report/dao/impl/ReportFeeMonthStatisticsServiceDaoImpl.java | 31 +++++++++++++++++++++++++++++--
1 files changed, 29 insertions(+), 2 deletions(-)
diff --git a/service-report/src/main/java/com/java110/report/dao/impl/ReportFeeMonthStatisticsServiceDaoImpl.java b/service-report/src/main/java/com/java110/report/dao/impl/ReportFeeMonthStatisticsServiceDaoImpl.java
index 2f58046..afa2767 100755
--- a/service-report/src/main/java/com/java110/report/dao/impl/ReportFeeMonthStatisticsServiceDaoImpl.java
+++ b/service-report/src/main/java/com/java110/report/dao/impl/ReportFeeMonthStatisticsServiceDaoImpl.java
@@ -6,7 +6,7 @@
import com.java110.utils.constant.ResponseConstant;
import com.java110.utils.exception.DAOException;
import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
+import com.java110.core.log.LoggerFactory;
import org.springframework.stereotype.Service;
import java.util.List;
@@ -94,7 +94,16 @@
return 0;
}
- return Double.parseDouble(businessReportFeeMonthStatisticsInfos.get(0).get("count").toString());
+ return Double.parseDouble(businessReportFeeMonthStatisticsInfos.get(0).get("total").toString());
+ }
+
+ @Override
+ public List<Map> queryRoomAndParkingSpace(Map info) {
+ logger.debug("鏌ヨ璐圭敤鏈堢粺璁′俊鎭� 鍏ュ弬 info : {}", info);
+
+ List<Map> businessReportFeeMonthStatisticsInfos = sqlSessionTemplate.selectList("reportFeeMonthStatisticsServiceDaoImpl.queryRoomAndParkingSpace", info);
+
+ return businessReportFeeMonthStatisticsInfos;
}
/**
@@ -589,4 +598,22 @@
}
+ public int deleteInvalidFee(Map info){
+ logger.debug("deleteInvalidFee 鍏ュ弬 info : {}", info);
+
+ int saveFlag = sqlSessionTemplate.update("reportFeeMonthStatisticsServiceDaoImpl.deleteInvalidFee", info);
+
+ return saveFlag;
+ }
+
+ @Override
+ public List<Map> queryInvalidFeeMonthStatistics(Map info) {
+ logger.debug("鏌ヨ鎶奸噾閫�璐规�婚噾棰濅俊鎭� 鍏ュ弬 info : {}", info);
+
+ List<Map> deposits = sqlSessionTemplate.selectList("reportFeeMonthStatisticsServiceDaoImpl.queryInvalidFeeMonthStatistics", info);
+
+ return deposits;
+ }
+
+
}
--
Gitblit v1.8.0