From b173d31976fc4731b7c247d4038de92134eba317 Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期四, 29 六月 2023 11:42:17 +0800
Subject: [PATCH] Merge branch 'master' of http://git.homecommunity.cn/supervip/MicroCommunity

---
 service-fee/src/main/java/com/java110/fee/dao/impl/PayFeeDetailMonthServiceDaoImpl.java |  102 ++++++++++++++++++++++++++++++++++++++++-----------
 1 files changed, 80 insertions(+), 22 deletions(-)

diff --git a/service-fee/src/main/java/com/java110/fee/dao/impl/PayFeeDetailMonthServiceDaoImpl.java b/service-fee/src/main/java/com/java110/fee/dao/impl/PayFeeDetailMonthServiceDaoImpl.java
index 79cf6b0..b94d1be 100644
--- a/service-fee/src/main/java/com/java110/fee/dao/impl/PayFeeDetailMonthServiceDaoImpl.java
+++ b/service-fee/src/main/java/com/java110/fee/dao/impl/PayFeeDetailMonthServiceDaoImpl.java
@@ -1,15 +1,13 @@
 package com.java110.fee.dao.impl;
 
 import com.alibaba.fastjson.JSONObject;
-import com.java110.utils.constant.ResponseConstant;
-import com.java110.utils.exception.DAOException;
-import com.java110.utils.util.DateUtil;
 import com.java110.core.base.dao.BaseServiceDao;
 import com.java110.fee.dao.IPayFeeDetailMonthServiceDao;
+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 org.springframework.transaction.annotation.Transactional;
 
 import java.util.List;
 import java.util.Map;
@@ -25,37 +23,45 @@
     private static Logger logger = LoggerFactory.getLogger(PayFeeDetailMonthServiceDaoImpl.class);
 
 
-
-
-
     /**
      * 淇濆瓨鏈堢即璐硅〃淇℃伅 鍒� instance
-     * @param info   bId 淇℃伅
+     *
+     * @param info bId 淇℃伅
      * @throws DAOException DAO寮傚父
      */
     @Override
     public void savePayFeeDetailMonthInfo(Map info) throws DAOException {
-        logger.debug("淇濆瓨鏈堢即璐硅〃淇℃伅Instance 鍏ュ弬 info : {}",info);
+        logger.debug("淇濆瓨鏈堢即璐硅〃淇℃伅Instance 鍏ュ弬 info : {}", info);
 
-        int saveFlag = sqlSessionTemplate.insert("payFeeDetailMonthServiceDaoImpl.savePayFeeDetailMonthInfo",info);
+        int saveFlag = sqlSessionTemplate.insert("payFeeDetailMonthServiceDaoImpl.savePayFeeDetailMonthInfo", info);
 
-        if(saveFlag < 1){
-            throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"淇濆瓨鏈堢即璐硅〃淇℃伅Instance鏁版嵁澶辫触锛�"+ JSONObject.toJSONString(info));
+        if (saveFlag < 1) {
+            throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR, "淇濆瓨鏈堢即璐硅〃淇℃伅Instance鏁版嵁澶辫触锛�" + JSONObject.toJSONString(info));
         }
+    }
+
+    @Override
+    public int savePayFeeDetailMonthInfos(Map info) {
+        logger.debug("淇濆瓨鏈堢即璐硅〃淇℃伅Instance 鍏ュ弬 info : {}", info);
+
+        int saveFlag = sqlSessionTemplate.insert("payFeeDetailMonthServiceDaoImpl.savePayFeeDetailMonthInfos", info);
+
+        return saveFlag;
     }
 
 
     /**
      * 鏌ヨ鏈堢即璐硅〃淇℃伅锛坕nstance锛�
+     *
      * @param info bId 淇℃伅
      * @return List<Map>
      * @throws DAOException DAO寮傚父
      */
     @Override
     public List<Map> getPayFeeDetailMonthInfo(Map info) throws DAOException {
-        logger.debug("鏌ヨ鏈堢即璐硅〃淇℃伅 鍏ュ弬 info : {}",info);
+        logger.debug("鏌ヨ鏈堢即璐硅〃淇℃伅 鍏ュ弬 info : {}", info);
 
-        List<Map> businessPayFeeDetailMonthInfos = sqlSessionTemplate.selectList("payFeeDetailMonthServiceDaoImpl.getPayFeeDetailMonthInfo",info);
+        List<Map> businessPayFeeDetailMonthInfos = sqlSessionTemplate.selectList("payFeeDetailMonthServiceDaoImpl.getPayFeeDetailMonthInfo", info);
 
         return businessPayFeeDetailMonthInfos;
     }
@@ -63,28 +69,30 @@
 
     /**
      * 淇敼鏈堢即璐硅〃淇℃伅
+     *
      * @param info 淇敼淇℃伅
      * @throws DAOException DAO寮傚父
      */
     @Override
     public void updatePayFeeDetailMonthInfo(Map info) throws DAOException {
-        logger.debug("淇敼鏈堢即璐硅〃淇℃伅Instance 鍏ュ弬 info : {}",info);
+        logger.debug("淇敼鏈堢即璐硅〃淇℃伅Instance 鍏ュ弬 info : {}", info);
 
-        int saveFlag = sqlSessionTemplate.update("payFeeDetailMonthServiceDaoImpl.updatePayFeeDetailMonthInfo",info);
+         sqlSessionTemplate.update("payFeeDetailMonthServiceDaoImpl.updatePayFeeDetailMonthInfo", info);
 
-        if(saveFlag < 1){
-            throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"淇敼鏈堢即璐硅〃淇℃伅Instance鏁版嵁澶辫触锛�"+ JSONObject.toJSONString(info));
-        }
+//        if (saveFlag < 1) {
+//            throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR, "淇敼鏈堢即璐硅〃淇℃伅Instance鏁版嵁澶辫触锛�" + JSONObject.toJSONString(info));
+//        }
     }
 
-     /**
+    /**
      * 鏌ヨ鏈堢即璐硅〃鏁伴噺
+     *
      * @param info 鏈堢即璐硅〃淇℃伅
      * @return 鏈堢即璐硅〃鏁伴噺
      */
     @Override
     public int queryPayFeeDetailMonthsCount(Map info) {
-        logger.debug("鏌ヨ鏈堢即璐硅〃鏁版嵁 鍏ュ弬 info : {}",info);
+        logger.debug("鏌ヨ鏈堢即璐硅〃鏁版嵁 鍏ュ弬 info : {}", info);
 
         List<Map> businessPayFeeDetailMonthInfos = sqlSessionTemplate.selectList("payFeeDetailMonthServiceDaoImpl.queryPayFeeDetailMonthsCount", info);
         if (businessPayFeeDetailMonthInfos.size() < 1) {
@@ -94,5 +102,55 @@
         return Integer.parseInt(businessPayFeeDetailMonthInfos.get(0).get("count").toString());
     }
 
+    @Override
+    public List<Map> queryPayFeeDetailMaxMonths(Map info) {
+        logger.debug("鏌ヨqueryPayFeeDetailMaxMonths淇℃伅 鍏ュ弬 info : {}", info);
+
+        List<Map> businessPayFeeDetailMonthInfos = sqlSessionTemplate.selectList("payFeeDetailMonthServiceDaoImpl.queryPayFeeDetailMaxMonths", info);
+
+        return businessPayFeeDetailMonthInfos;
+    }
+
+    @Override
+    public List<Map> getWaitDispersedFeeDetail(Map info) {
+        logger.debug("鏌ヨgetWaitDispersedFeeDetail淇℃伅 鍏ュ弬 info : {}", info);
+
+        List<Map> businessPayFeeDetailMonthInfos = sqlSessionTemplate.selectList("payFeeDetailMonthServiceDaoImpl.getWaitDispersedFeeDetail", info);
+
+        return businessPayFeeDetailMonthInfos;
+    }
+
+    @Override
+    public void deletePayFeeDetailMonthInfo(Map info) {
+        sqlSessionTemplate.update("payFeeDetailMonthServiceDaoImpl.deletePayFeeDetailMonthInfo", info);
+    }
+
+    @Override
+    public List<Map> queryPagePayFeeDetailMonths(Map info) {
+        logger.debug("鏌ヨ queryPagePayFeeDetailMonths 淇℃伅 鍏ュ弬 info : {}", info);
+
+        List<Map> infos = sqlSessionTemplate.selectList("payFeeDetailMonthServiceDaoImpl.queryPagePayFeeDetailMonths", info);
+
+        return infos;
+    }
+
+    /**
+     * 鏌ヨ鏈堢即璐硅〃鏁伴噺
+     *
+     * @param info 鏈堢即璐硅〃淇℃伅
+     * @return 鏈堢即璐硅〃鏁伴噺
+     */
+    @Override
+    public int queryPagePayFeeDetailMonthsCount(Map info) {
+        logger.debug("鏌ヨ鏈堢即璐硅〃鏁版嵁 鍏ュ弬 info : {}", info);
+
+        List<Map> businessPayFeeDetailMonthInfos = sqlSessionTemplate.selectList("payFeeDetailMonthServiceDaoImpl.queryPagePayFeeDetailMonthsCount", info);
+        if (businessPayFeeDetailMonthInfos.size() < 1) {
+            return 0;
+        }
+
+        return Integer.parseInt(businessPayFeeDetailMonthInfos.get(0).get("count").toString());
+    }
+
 
 }

--
Gitblit v1.8.0