From 4ee86eb0f4984bf3ede3196ad8c5fe95e8c5a504 Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期三, 15 六月 2022 19:05:02 +0800
Subject: [PATCH] 优化代码
---
service-report/src/main/java/com/java110/report/dao/impl/ReportFeeMonthStatisticsServiceDaoImpl.java | 27 +++++++++++++++++++++++----
1 files changed, 23 insertions(+), 4 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 2608413..1d873d1 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;
@@ -85,6 +85,25 @@
if (saveFlag < 1) {
throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR, "淇敼璐圭敤鏈堢粺璁′俊鎭疘nstance鏁版嵁澶辫触锛�" + JSONObject.toJSONString(info));
}
+ }
+
+ @Override
+ public double getReceivedAmountByMonth(Map info) {
+ List<Map> businessReportFeeMonthStatisticsInfos = sqlSessionTemplate.selectList("reportFeeMonthStatisticsServiceDaoImpl.getReceivedAmountByMonth", info);
+ if (businessReportFeeMonthStatisticsInfos.size() < 1) {
+ return 0;
+ }
+
+ 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;
}
/**
@@ -201,6 +220,7 @@
return businessReportFeeMonthStatisticsInfos;
}
+
@Override
public Map queryFeeBreakdownMajor(Map info) {
logger.debug("鏌ヨ璐圭敤queryFeeBreakdownMajor 鍏ュ弬 info : {}", info);
@@ -209,6 +229,7 @@
return businessReportFeeMonthStatisticsInfos.get(0);
}
+
@Override
public int queryFeeDetailCount(Map info) {
logger.debug("鏌ヨ璐圭敤鏈堢粺璁℃暟鎹� 鍏ュ弬 info : {}", info);
@@ -231,7 +252,6 @@
}
-
@Override
public int queryOweFeeDetailCount(Map info) {
logger.debug("鏌ヨ璐圭敤鏈堢粺璁℃暟鎹� 鍏ュ弬 info : {}", info);
@@ -252,6 +272,7 @@
return businessReportFeeMonthStatisticsInfos;
}
+
@Override
public Map queryOweFeeDetailMajor(Map info) {
logger.debug("鏌ヨ璐圭敤queryOweFeeDetailMajor 鍏ュ弬 info : {}", info);
@@ -575,8 +596,6 @@
return deposits;
}
-
-
}
--
Gitblit v1.8.0