From 7e621d56f2efc96f42a47ba3e5a62af69c6dd043 Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期五, 06 八月 2021 12:25:57 +0800
Subject: [PATCH] 优化代码

---
 service-report/src/main/java/com/java110/report/dao/impl/ReportFeeMonthStatisticsServiceDaoImpl.java |  184 ++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 184 insertions(+), 0 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
old mode 100644
new mode 100755
index 7d47f20..6ccf1db
--- 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
@@ -212,6 +212,58 @@
 
         return businessReportFeeMonthStatisticsInfos;
     }
+
+    @Override
+    public Map queryPayFeeDetailCount(Map info) {
+        logger.debug("鏌ヨ璐圭敤鏈堢粺璁℃暟鎹� 鍏ュ弬 info : {}", info);
+
+        List<Map> businessReportFeeMonthStatisticsInfos = sqlSessionTemplate.selectList("reportFeeMonthStatisticsServiceDaoImpl.queryPayFeeDetailCount", info);
+        if (businessReportFeeMonthStatisticsInfos.size() < 1) {
+            return null;
+        }
+
+        return businessReportFeeMonthStatisticsInfos.get(0);
+    }
+
+    @Override
+    public List<Map> queryPayFeeDetail(Map info) throws DAOException {
+        logger.debug("鏌ヨ璐圭敤鏈堢粺璁′俊鎭� 鍏ュ弬 info : {}", info);
+
+        List<Map> businessReportFeeMonthStatisticsInfos = sqlSessionTemplate.selectList("reportFeeMonthStatisticsServiceDaoImpl.queryPayFeeDetail", info);
+
+        return businessReportFeeMonthStatisticsInfos;
+    }
+
+    @Override
+    public List<Map> queryAllPayFeeDetail(Map info) throws DAOException {
+        logger.debug("鏌ヨ璐圭敤鎬绘暟鏈堢粺璁′俊鎭� 鍏ュ弬 info : {}", info);
+
+        List<Map> businessReportFeeMonthStatisticsInfos = sqlSessionTemplate.selectList("reportFeeMonthStatisticsServiceDaoImpl.queryAllPayFeeDetail", info);
+
+        return businessReportFeeMonthStatisticsInfos;
+    }
+
+    @Override
+    public int queryDeadlineFeeCount(Map info) {
+        logger.debug("鏌ヨ璐圭敤鏈堢粺璁℃暟鎹� 鍏ュ弬 info : {}", info);
+
+        List<Map> businessReportFeeMonthStatisticsInfos = sqlSessionTemplate.selectList("reportFeeMonthStatisticsServiceDaoImpl.queryDeadlineFeeCount", info);
+        if (businessReportFeeMonthStatisticsInfos.size() < 1) {
+            return 0;
+        }
+
+        return Integer.parseInt(businessReportFeeMonthStatisticsInfos.get(0).get("count").toString());
+    }
+
+    @Override
+    public List<Map> queryDeadlineFee(Map info) throws DAOException {
+        logger.debug("鏌ヨ璐圭敤鏈堢粺璁′俊鎭� 鍏ュ弬 info : {}", info);
+
+        List<Map> businessReportFeeMonthStatisticsInfos = sqlSessionTemplate.selectList("reportFeeMonthStatisticsServiceDaoImpl.queryDeadlineFee", info);
+
+        return businessReportFeeMonthStatisticsInfos;
+    }
+
     @Override
     public int queryPrePaymentNewCount(Map info) {
         logger.debug("鏌ヨ璐圭敤鏈堢粺璁℃暟鎹� 鍏ュ弬 info : {}", info);
@@ -242,5 +294,137 @@
         return businessReportFeeMonthStatisticsInfos;
     }
 
+    @Override
+    public List<Map> queryDeadlinePaymentCount(Map info) throws DAOException {
+        logger.debug("鏌ヨ璐圭敤鏈堢粺璁′俊鎭� 鍏ュ弬 info : {}", info);
+
+        List<Map> businessReportFeeMonthStatisticsInfos = sqlSessionTemplate.selectList("reportFeeMonthStatisticsServiceDaoImpl.queryDeadlinePaymentCount", info);
+
+        return businessReportFeeMonthStatisticsInfos;
+    }
+
+
+    @Override
+    public List<Map> queryOwePaymentCount(Map info) throws DAOException {
+        logger.debug("鏌ヨ璐圭敤鏈堢粺璁′俊鎭� 鍏ュ弬 info : {}", info);
+
+        List<Map> businessReportFeeMonthStatisticsInfos = sqlSessionTemplate.selectList("reportFeeMonthStatisticsServiceDaoImpl.queryOwePaymentCount", info);
+
+        return businessReportFeeMonthStatisticsInfos;
+    }
+
+    @Override
+    public List<Map> queryFinishOweFee(Map info) throws DAOException {
+        logger.debug("鏌ヨ璐圭敤鏈堢粺璁′俊鎭� 鍏ュ弬 info : {}", info);
+
+        List<Map> businessReportFeeMonthStatisticsInfos = sqlSessionTemplate.selectList("reportFeeMonthStatisticsServiceDaoImpl.queryFinishOweFee", info);
+
+        return businessReportFeeMonthStatisticsInfos;
+    }
+
+    @Override
+    public List<Map> queryAllPaymentCount(Map info) {
+        logger.debug("鏌ヨ璐圭敤鏈堢粺璁′俊鎭� 鍏ュ弬 info : {}", info);
+
+        List<Map> businessReportFeeMonthStatisticsInfos = sqlSessionTemplate.selectList("reportFeeMonthStatisticsServiceDaoImpl.queryAllPaymentCount", info);
+
+        return businessReportFeeMonthStatisticsInfos;
+    }
+
+    @Override
+    public List<Map> queryAllFeeDetail(Map info) {
+        List<Map> businessReportFeeMonthStatisticsInfos = sqlSessionTemplate.selectList("reportFeeMonthStatisticsServiceDaoImpl.queryAllFeeDetail", info);
+        return businessReportFeeMonthStatisticsInfos;
+    }
+
+    @Override
+    public List<Map> queryPayFeeDetailSum(Map info) {
+        List<Map> businessReportFeeMonthStatisticsInfos = sqlSessionTemplate.selectList("reportFeeMonthStatisticsServiceDaoImpl.queryPayFeeDetailSum", info);
+        return businessReportFeeMonthStatisticsInfos;
+    }
+
+    /**
+     * 鏌ヨ璐圭敤閰嶇疆淇℃伅锛坕nstance锛�
+     *
+     * @param info bId 淇℃伅
+     * @return List<Map>
+     * @throws DAOException DAO寮傚父
+     */
+    @Override
+    public List<Map> getFeeConfigInfo(Map info) throws DAOException {
+        logger.debug("鏌ヨ璐圭敤閰嶇疆淇℃伅 鍏ュ弬 info : {}", info);
+
+        List<Map> businessFeeConfigInfos = sqlSessionTemplate.selectList("reportFeeMonthStatisticsServiceDaoImpl.getFeeConfigInfo", info);
+
+        return businessFeeConfigInfos;
+    }
+
+    @Override
+    public List<Map> getRepairUserInfo(Map info) {
+        logger.debug("鏌ヨ鎶ヤ慨閰嶇疆淇℃伅 鍏ュ弬 info : {}", info);
+        List<Map> businessRepairUserInfos = sqlSessionTemplate.selectList("reportFeeMonthStatisticsServiceDaoImpl.getRepairInfo", info);
+        return businessRepairUserInfos;
+    }
+
+    @Override
+    public List<Map> getRepairWithOutPage(Map info) {
+        logger.debug("鏌ヨ鎶ヤ慨閰嶇疆淇℃伅 鍏ュ弬 info : {}", info);
+        List<Map> businessRepairUserInfos = sqlSessionTemplate.selectList("reportFeeMonthStatisticsServiceDaoImpl.getRepairWithOutPage", info);
+        return businessRepairUserInfos;
+    }
+
+    @Override
+    public List<Map> getRepairStaff(Map info) {
+        logger.debug("鏌ヨ鎶ヤ慨閰嶇疆淇℃伅 鍏ュ弬 info : {}", info);
+        List<Map> businessRepairUserInfos = sqlSessionTemplate.selectList("reportFeeMonthStatisticsServiceDaoImpl.queryRepairForStaff", info);
+        return businessRepairUserInfos;
+    }
+
+    @Override
+    public Map getReceivableInformation(Map beanCovertMap) {
+        List<Map> businessReportFeeMonthStatisticsInfos = sqlSessionTemplate.selectList("reportFeeMonthStatisticsServiceDaoImpl.getReceivableInformation", beanCovertMap);
+        if (businessReportFeeMonthStatisticsInfos.size() < 1) {
+            return null;
+        }
+
+        return businessReportFeeMonthStatisticsInfos.get(0);
+    }
+
+    @Override
+    public List<Map> getFloorReceivableInformation(Map beanCovertMap) {
+        List<Map> businessReportFeeMonthStatisticsInfos = sqlSessionTemplate.selectList("reportFeeMonthStatisticsServiceDaoImpl.getFloorReceivableInformation", beanCovertMap);
+        return businessReportFeeMonthStatisticsInfos;
+    }
+
+    @Override
+    public List<Map> getFeeConfigReceivableInformation(Map beanCovertMap) {
+        List<Map> businessReportFeeMonthStatisticsInfos = sqlSessionTemplate.selectList("reportFeeMonthStatisticsServiceDaoImpl.getFeeConfigReceivableInformation", beanCovertMap);
+        return businessReportFeeMonthStatisticsInfos;
+    }
+
+    @Override
+    public int queryNoFeeRoomsCount(Map info) {
+        logger.debug("鏌ヨ鏈敹璐规埧灞嬬粺璁℃暟鎹� 鍏ュ弬 info : {}", info);
+
+        List<Map> roomInfos =
+                sqlSessionTemplate.selectList("reportFeeMonthStatisticsServiceDaoImpl.queryNoFeeRoomsCount", info);
+        if (roomInfos.size() < 1) {
+            return 0;
+        }
+
+        return Integer.parseInt(roomInfos.get(0).get("count").toString());
+    }
+
+    @Override
+    public List<Map> queryNoFeeRooms(Map info) {
+        logger.debug("鏌ヨ鏈敹璐规埧灞嬬粺璁′俊鎭� 鍏ュ弬 info : {}", info);
+
+        List<Map> roomInfos =
+                sqlSessionTemplate.selectList("reportFeeMonthStatisticsServiceDaoImpl.queryNoFeeRooms", info);
+
+        return roomInfos;
+    }
+
+
 
 }

--
Gitblit v1.8.0