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 |  257 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 255 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 231c463..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;
@@ -75,6 +75,37 @@
         }
     }
 
+
+    @Override
+    public void deleteReportFeeMonthStatisticsInfo(Map info) {
+        logger.debug("deleteReportFeeMonthStatisticsInfo 鍏ュ弬 info : {}", info);
+
+        int saveFlag = sqlSessionTemplate.update("reportFeeMonthStatisticsServiceDaoImpl.deleteReportFeeMonthStatisticsInfo", info);
+
+        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;
+    }
+
     /**
      * 淇敼璐圭敤鏈堢粺璁′俊鎭�
      *
@@ -130,6 +161,38 @@
     }
 
     @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) {
+        logger.debug("鏌ヨ璐圭敤鏈堢粺璁′俊鎭� 鍏ュ弬 info : {}", info);
+
+        List<Map> businessReportFeeMonthStatisticsInfos = sqlSessionTemplate.selectList("reportFeeMonthStatisticsServiceDaoImpl.queryReportFeeSummaryMajor", info);
+
+        return businessReportFeeMonthStatisticsInfos.get(0);
+    }
+
+    @Override
     public int queryReportFloorUnitFeeSummaryCount(Map info) {
         logger.debug("鏌ヨ璐圭敤鏈堢粺璁℃暟鎹� 鍏ュ弬 info : {}", info);
 
@@ -148,6 +211,36 @@
         List<Map> businessReportFeeMonthStatisticsInfos = sqlSessionTemplate.selectList("reportFeeMonthStatisticsServiceDaoImpl.queryReportFloorUnitFeeSummary", info);
 
         return businessReportFeeMonthStatisticsInfos;
+    }
+
+    @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);
+
+        List<Map> businessReportFeeMonthStatisticsInfos = sqlSessionTemplate.selectList("reportFeeMonthStatisticsServiceDaoImpl.queryReportFloorUnitFeeSummaryMajor", info);
+
+        return businessReportFeeMonthStatisticsInfos.get(0);
     }
 
     @Override
@@ -172,6 +265,36 @@
     }
 
     @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;
+    }
+
+    @Override
+    public Map queryFeeBreakdownMajor(Map info) {
+        logger.debug("鏌ヨ璐圭敤queryFeeBreakdownMajor 鍏ュ弬 info : {}", info);
+
+        List<Map> businessReportFeeMonthStatisticsInfos = sqlSessionTemplate.selectList("reportFeeMonthStatisticsServiceDaoImpl.queryFeeBreakdownMajor", info);
+
+        return businessReportFeeMonthStatisticsInfos.get(0);
+    }
+
+    @Override
     public int queryFeeDetailCount(Map info) {
         logger.debug("鏌ヨ璐圭敤鏈堢粺璁℃暟鎹� 鍏ュ弬 info : {}", info);
 
@@ -191,6 +314,7 @@
 
         return businessReportFeeMonthStatisticsInfos;
     }
+
 
     @Override
     public int queryOweFeeDetailCount(Map info) {
@@ -212,6 +336,100 @@
 
         return businessReportFeeMonthStatisticsInfos;
     }
+
+    @Override
+    public Map queryOweFeeDetailMajor(Map info) {
+        logger.debug("鏌ヨ璐圭敤queryOweFeeDetailMajor 鍏ュ弬 info : {}", info);
+
+        List<Map> businessReportFeeMonthStatisticsInfos = sqlSessionTemplate.selectList("reportFeeMonthStatisticsServiceDaoImpl.queryOweFeeDetailMajor", info);
+
+        return businessReportFeeMonthStatisticsInfos.get(0);
+    }
+
+    @Override
+    public int queryHuaningOweFeeCount(Map info) {
+        logger.debug("鏌ヨqueryHuaningOweFeeCount鏁版嵁 鍏ュ弬 info : {}", info);
+
+        List<Map> businessReportFeeMonthStatisticsInfos = sqlSessionTemplate.selectList("reportFeeMonthStatisticsServiceDaoImpl.queryHuaningOweFeeCount", info);
+        if (businessReportFeeMonthStatisticsInfos.size() < 1) {
+            return 0;
+        }
+
+        return Integer.parseInt(businessReportFeeMonthStatisticsInfos.get(0).get("count").toString());
+    }
+
+    @Override
+    public List<Map> queryHuaningOweFee(Map info) {
+        logger.debug("鏌ヨqueryHuaningOweFee 鍏ュ弬 info : {}", info);
+
+        List<Map> businessReportFeeMonthStatisticsInfos = sqlSessionTemplate.selectList("reportFeeMonthStatisticsServiceDaoImpl.queryHuaningOweFee", info);
+
+        return businessReportFeeMonthStatisticsInfos;
+    }
+
+    @Override
+    public int queryHuaningPayFeeCount(Map info) {
+        logger.debug("鏌ヨqueryHuaningPayFeeCount鏁版嵁 鍏ュ弬 info : {}", info);
+
+        List<Map> businessReportFeeMonthStatisticsInfos = sqlSessionTemplate.selectList("reportFeeMonthStatisticsServiceDaoImpl.queryHuaningPayFeeCount", 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 queryHuaningPayFeeTwoCount(Map info) {
+        logger.debug("鏌ヨqueryHuaningPayFeeTwoCount鏁版嵁 鍏ュ弬 info : {}", info);
+
+        List<Map> businessReportFeeMonthStatisticsInfos = sqlSessionTemplate.selectList("reportFeeMonthStatisticsServiceDaoImpl.queryHuaningPayFeeTwoCount", info);
+        if (businessReportFeeMonthStatisticsInfos.size() < 1) {
+            return 0;
+        }
+
+        return Integer.parseInt(businessReportFeeMonthStatisticsInfos.get(0).get("count").toString());
+    }
+
+    @Override
+    public List<Map> queryHuaningPayFeeTwo(Map info) {
+        logger.debug("鏌ヨqueryHuaningPayFeeTwo 鍏ュ弬 info : {}", info);
+
+        List<Map> businessReportFeeMonthStatisticsInfos = sqlSessionTemplate.selectList("reportFeeMonthStatisticsServiceDaoImpl.queryHuaningPayFeeTwo", info);
+
+        return businessReportFeeMonthStatisticsInfos;
+    }
+
+    @Override
+    public int queryHuaningOweFeeDetailCount(Map info) {
+        logger.debug("鏌ヨqueryHuaningOweFeeDetailCount鏁版嵁 鍏ュ弬 info : {}", info);
+
+        List<Map> businessReportFeeMonthStatisticsInfos = sqlSessionTemplate.selectList("reportFeeMonthStatisticsServiceDaoImpl.queryHuaningOweFeeDetailCount", info);
+        if (businessReportFeeMonthStatisticsInfos.size() < 1) {
+            return 0;
+        }
+
+        return Integer.parseInt(businessReportFeeMonthStatisticsInfos.get(0).get("count").toString());
+    }
+
+    @Override
+    public List<Map> queryHuaningOweFeeDetail(Map info) {
+        logger.debug("鏌ヨqueryHuaningOweFeeDetail 鍏ュ弬 info : {}", info);
+
+        List<Map> businessReportFeeMonthStatisticsInfos = sqlSessionTemplate.selectList("reportFeeMonthStatisticsServiceDaoImpl.queryHuaningOweFeeDetail", info);
+
+        return businessReportFeeMonthStatisticsInfos;
+    }
+
 
     @Override
     public Map queryPayFeeDetailCount(Map info) {
@@ -416,7 +634,7 @@
     }
 
     @Override
-    public Object queryNoFeeRooms(Map info) {
+    public List<Map> queryNoFeeRooms(Map info) {
         logger.debug("鏌ヨ鏈敹璐规埧灞嬬粺璁′俊鎭� 鍏ュ弬 info : {}", info);
 
         List<Map> roomInfos =
@@ -425,6 +643,41 @@
         return roomInfos;
     }
 
+    @Override
+    public List<Map> queryPayFeeDeposit(Map info) {
+        logger.debug("鏌ヨ鎶奸噾缁熻淇℃伅 鍏ュ弬 info : {}", info);
+
+        List<Map> deposits = sqlSessionTemplate.selectList("reportFeeMonthStatisticsServiceDaoImpl.queryPayFeeDeposit", info);
+
+        return deposits;
+    }
+
+    @Override
+    public List<Map> queryFeeDepositAmount(Map info) {
+        logger.debug("鏌ヨ鎶奸噾閫�璐规�婚噾棰濅俊鎭� 鍏ュ弬 info : {}", info);
+
+        List<Map> deposits = sqlSessionTemplate.selectList("reportFeeMonthStatisticsServiceDaoImpl.queryFeeDepositAmount", info);
+
+        return deposits;
+    }
+
+
+    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