From bd09ba3723a91fb8f1ccf51784c34c1639fb89a8 Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期一, 21 二月 2022 08:37:21 +0800
Subject: [PATCH] 优化 枣庄需求 滞纳金 计算方式修改

---
 service-fee/src/main/java/com/java110/fee/dao/impl/PayFeeDetailMonthServiceDaoImpl.java |   50 +++++++++++++++++++++++++++++---------------------
 1 files changed, 29 insertions(+), 21 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..5cf50ef 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);
+        int saveFlag = 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) {

--
Gitblit v1.8.0