From 05683f2b2bdbdbe21cf17ad523c21ab338bd1c54 Mon Sep 17 00:00:00 2001
From: wuxw <928255095@qq.com>
Date: 星期二, 19 七月 2022 21:49:55 +0800
Subject: [PATCH] 优化添加设备 功能
---
service-report/src/main/java/com/java110/report/dao/impl/ReportFeeMonthStatisticsServiceDaoImpl.java | 93 ++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 92 insertions(+), 1 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 5b82f4d..7b2abfb 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;
@@ -97,6 +97,15 @@
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;
+ }
+
/**
* 淇敼璐圭敤鏈堢粺璁′俊鎭�
*
@@ -151,6 +160,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) {
@@ -183,6 +214,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);
@@ -208,6 +260,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;
}
@@ -589,4 +662,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