From 3e98391d7a4550cc2ea4e1af030bdd4078d93907 Mon Sep 17 00:00:00 2001
From: wuxw <928255095@qq.com>
Date: 星期三, 21 八月 2024 10:06:04 +0800
Subject: [PATCH] 优化报表功能
---
service-report/src/main/java/com/java110/report/dao/impl/ReportFeeMonthStatisticsServiceDaoImpl.java | 131 +++++++++++++++++++++++++++++++++++++++----
1 files changed, 119 insertions(+), 12 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 afa2767..e590ff8 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
@@ -5,6 +5,7 @@
import com.java110.report.dao.IReportFeeMonthStatisticsServiceDao;
import com.java110.utils.constant.ResponseConstant;
import com.java110.utils.exception.DAOException;
+import com.java110.utils.util.ListUtil;
import org.slf4j.Logger;
import com.java110.core.log.LoggerFactory;
import org.springframework.stereotype.Service;
@@ -160,6 +161,28 @@
return businessReportFeeMonthStatisticsInfos;
}
+ @Override
+ public int queryReportFeeSummaryDetailCount(Map info) {
+ logger.debug("鏌ヨ璐圭敤鏈堢粺璁℃暟鎹� 鍏ュ弬 info : {}", info);
+
+ List<Map> businessReportFeeMonthStatisticsInfos = sqlSessionTemplate.selectList("reportFeeMonthStatisticsServiceDaoImpl.queryReportFeeSummaryDetailCount", info);
+ if (businessReportFeeMonthStatisticsInfos.size() < 1) {
+ return 0;
+ }
+
+ return Integer.parseInt(businessReportFeeMonthStatisticsInfos.get(0).get("count").toString());
+ }
+
+ @Override
+ public List<Map> queryReportFeeSummaryDetail(Map info) throws DAOException {
+ logger.debug("鏌ヨ璐圭敤鏈堢粺璁′俊鎭� 鍏ュ弬 info : {}", info);
+
+ List<Map> businessReportFeeMonthStatisticsInfos = sqlSessionTemplate.selectList("reportFeeMonthStatisticsServiceDaoImpl.queryReportFeeSummaryDetail", info);
+
+ return businessReportFeeMonthStatisticsInfos;
+ }
+
+
@Override
public Map queryReportFeeSummaryMajor(Map info) {
@@ -192,6 +215,27 @@
}
@Override
+ public int queryReportFloorUnitFeeSummaryDetailCount(Map info) {
+ logger.debug("鏌ヨ璐圭敤鏈堢粺璁℃暟鎹� 鍏ュ弬 info : {}", info);
+
+ List<Map> businessReportFeeMonthStatisticsInfos = sqlSessionTemplate.selectList("reportFeeMonthStatisticsServiceDaoImpl.queryReportFloorUnitFeeSummaryDetailCount", info);
+ if (businessReportFeeMonthStatisticsInfos.size() < 1) {
+ return 0;
+ }
+
+ return Integer.parseInt(businessReportFeeMonthStatisticsInfos.get(0).get("count").toString());
+ }
+
+ @Override
+ public List<Map> queryReportFloorUnitFeeSummaryDetail(Map info) throws DAOException {
+ logger.debug("鏌ヨ璐圭敤鏈堢粺璁′俊鎭� 鍏ュ弬 info : {}", info);
+
+ List<Map> businessReportFeeMonthStatisticsInfos = sqlSessionTemplate.selectList("reportFeeMonthStatisticsServiceDaoImpl.queryReportFloorUnitFeeSummaryDetail", info);
+
+ return businessReportFeeMonthStatisticsInfos;
+ }
+
+ @Override
public Map queryReportFloorUnitFeeSummaryMajor(Map info) {
logger.debug("鏌ヨ璐圭敤鏈堢粺璁′俊鎭� 鍏ュ弬 info : {}", info);
@@ -217,6 +261,27 @@
logger.debug("鏌ヨ璐圭敤鏈堢粺璁′俊鎭� 鍏ュ弬 info : {}", info);
List<Map> businessReportFeeMonthStatisticsInfos = sqlSessionTemplate.selectList("reportFeeMonthStatisticsServiceDaoImpl.queryFeeBreakdown", info);
+
+ return businessReportFeeMonthStatisticsInfos;
+ }
+
+ @Override
+ public int queryFeeBreakdownDetailCount(Map info) {
+ logger.debug("鏌ヨ璐圭敤鏈堢粺璁℃暟鎹� 鍏ュ弬 info : {}", info);
+
+ List<Map> businessReportFeeMonthStatisticsInfos = sqlSessionTemplate.selectList("reportFeeMonthStatisticsServiceDaoImpl.queryFeeBreakdownDetailCount", info);
+ if (businessReportFeeMonthStatisticsInfos.size() < 1) {
+ return 0;
+ }
+
+ return Integer.parseInt(businessReportFeeMonthStatisticsInfos.get(0).get("count").toString());
+ }
+
+ @Override
+ public List<Map> queryFeeBreakdownDetail(Map info) throws DAOException {
+ logger.debug("鏌ヨ璐圭敤鏈堢粺璁′俊鎭� 鍏ュ弬 info : {}", info);
+
+ List<Map> businessReportFeeMonthStatisticsInfos = sqlSessionTemplate.selectList("reportFeeMonthStatisticsServiceDaoImpl.queryFeeBreakdownDetail", info);
return businessReportFeeMonthStatisticsInfos;
}
@@ -256,21 +321,21 @@
public int queryOweFeeDetailCount(Map info) {
logger.debug("鏌ヨ璐圭敤鏈堢粺璁℃暟鎹� 鍏ュ弬 info : {}", info);
- List<Map> businessReportFeeMonthStatisticsInfos = sqlSessionTemplate.selectList("reportFeeMonthStatisticsServiceDaoImpl.queryOweFeeDetailCount", info);
- if (businessReportFeeMonthStatisticsInfos.size() < 1) {
+ List<Map> infos = sqlSessionTemplate.selectList("reportFeeMonthStatisticsServiceDaoImpl.queryOweFeeDetailCount", info);
+ if (infos.size() < 1) {
return 0;
}
- return Integer.parseInt(businessReportFeeMonthStatisticsInfos.get(0).get("count").toString());
+ return Integer.parseInt(infos.get(0).get("count").toString());
}
@Override
public List<Map> queryOweFeeDetail(Map info) throws DAOException {
logger.debug("鏌ヨ璐圭敤鏈堢粺璁′俊鎭� 鍏ュ弬 info : {}", info);
- List<Map> businessReportFeeMonthStatisticsInfos = sqlSessionTemplate.selectList("reportFeeMonthStatisticsServiceDaoImpl.queryOweFeeDetail", info);
+ List<Map> infos = sqlSessionTemplate.selectList("reportFeeMonthStatisticsServiceDaoImpl.queryOweFeeDetail", info);
- return businessReportFeeMonthStatisticsInfos;
+ return infos;
}
@Override
@@ -316,12 +381,36 @@
}
@Override
+ public int queryHuaningOweFeeCounts(Map info) {
+ logger.debug("鏌ヨqueryHuaningOweFeeCounts鏁版嵁 鍏ュ弬 info : {}", info);
+
+ List<Map> businessReportFeeMonthStatisticsInfos = sqlSessionTemplate.selectList("reportFeeMonthStatisticsServiceDaoImpl.queryHuaningOweFeeCounts", info);
+ if (businessReportFeeMonthStatisticsInfos.size() < 1) {
+ return 0;
+ }
+
+ return Integer.parseInt(businessReportFeeMonthStatisticsInfos.get(0).get("count").toString());
+ }
+
+ @Override
public List<Map> queryHuaningPayFee(Map info) {
logger.debug("鏌ヨqueryHuaningPayFee 鍏ュ弬 info : {}", info);
List<Map> businessReportFeeMonthStatisticsInfos = sqlSessionTemplate.selectList("reportFeeMonthStatisticsServiceDaoImpl.queryHuaningPayFee", info);
return businessReportFeeMonthStatisticsInfos;
+ }
+
+ @Override
+ public int queryHuaningPayFeeCounts(Map info) {
+ logger.debug("鏌ヨqueryHuaningPayFeeCounts鏁版嵁 鍏ュ弬 info : {}", info);
+
+ List<Map> businessReportFeeMonthStatisticsInfos = sqlSessionTemplate.selectList("reportFeeMonthStatisticsServiceDaoImpl.queryHuaningPayFeeCounts", info);
+ if (businessReportFeeMonthStatisticsInfos.size() < 1) {
+ return 0;
+ }
+
+ return Integer.parseInt(businessReportFeeMonthStatisticsInfos.get(0).get("count").toString());
}
@Override
@@ -361,9 +450,9 @@
public List<Map> queryHuaningOweFeeDetail(Map info) {
logger.debug("鏌ヨqueryHuaningOweFeeDetail 鍏ュ弬 info : {}", info);
- List<Map> businessReportFeeMonthStatisticsInfos = sqlSessionTemplate.selectList("reportFeeMonthStatisticsServiceDaoImpl.queryHuaningOweFeeDetail", info);
+ List<Map> infos = sqlSessionTemplate.selectList("reportFeeMonthStatisticsServiceDaoImpl.queryHuaningOweFeeDetail", info);
- return businessReportFeeMonthStatisticsInfos;
+ return infos;
}
@@ -371,19 +460,28 @@
public Map queryPayFeeDetailCount(Map info) {
logger.debug("鏌ヨ璐圭敤鏈堢粺璁℃暟鎹� 鍏ュ弬 info : {}", info);
- List<Map> businessReportFeeMonthStatisticsInfos = sqlSessionTemplate.selectList("reportFeeMonthStatisticsServiceDaoImpl.queryPayFeeDetailCount", info);
- if (businessReportFeeMonthStatisticsInfos.size() < 1) {
+ List<Map> infos = sqlSessionTemplate.selectList("reportFeeMonthStatisticsServiceDaoImpl.queryPayFeeDetailCount", info);
+ if (ListUtil.isNull(infos)) {
return null;
}
- return businessReportFeeMonthStatisticsInfos.get(0);
+ return infos.get(0);
}
@Override
public List<Map> queryPayFeeDetail(Map info) throws DAOException {
logger.debug("鏌ヨ璐圭敤鏈堢粺璁′俊鎭� 鍏ュ弬 info : {}", info);
- List<Map> businessReportFeeMonthStatisticsInfos = sqlSessionTemplate.selectList("reportFeeMonthStatisticsServiceDaoImpl.queryPayFeeDetail", info);
+ List<Map> infos = sqlSessionTemplate.selectList("reportFeeMonthStatisticsServiceDaoImpl.queryPayFeeDetail", info);
+
+ return infos;
+ }
+
+ @Override
+ public List<Map> queryFeeAccountDetailSum(Map info) {
+ logger.debug("鏌ヨ璐︽埛鎶垫墸閲戦澶ц鍏ュ弬 info : {}", info);
+
+ List<Map> businessReportFeeMonthStatisticsInfos = sqlSessionTemplate.selectList("reportFeeMonthStatisticsServiceDaoImpl.queryFeeAccountDetailSum", info);
return businessReportFeeMonthStatisticsInfos;
}
@@ -413,7 +511,16 @@
public List<Map> queryDeadlineFee(Map info) throws DAOException {
logger.debug("鏌ヨ璐圭敤鏈堢粺璁′俊鎭� 鍏ュ弬 info : {}", info);
- List<Map> businessReportFeeMonthStatisticsInfos = sqlSessionTemplate.selectList("reportFeeMonthStatisticsServiceDaoImpl.queryDeadlineFee", info);
+ List<Map> infos = sqlSessionTemplate.selectList("reportFeeMonthStatisticsServiceDaoImpl.queryDeadlineFee", info);
+
+ return infos;
+ }
+
+ @Override
+ public List<Map> queryPayFeeDetailDiscount(Map info) {
+ logger.debug("鏌ヨ浼樻儬閲戦 鍏ュ弬 info : {}", info);
+
+ List<Map> businessReportFeeMonthStatisticsInfos = sqlSessionTemplate.selectList("reportFeeMonthStatisticsServiceDaoImpl.queryPayFeeDetailDiscount", info);
return businessReportFeeMonthStatisticsInfos;
}
--
Gitblit v1.8.0