From bfcfa058f81a1b9e9b6b9e406ab82251cd1b51f1 Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期三, 22 九月 2021 18:01:31 +0800
Subject: [PATCH] 加入费用批次问题

---
 service-fee/src/main/java/com/java110/fee/dao/impl/FeeAttrServiceDaoImpl.java |   59 +++++++++++++++++++++++++++++++++++++----------------------
 1 files changed, 37 insertions(+), 22 deletions(-)

diff --git a/service-fee/src/main/java/com/java110/fee/dao/impl/FeeAttrServiceDaoImpl.java b/service-fee/src/main/java/com/java110/fee/dao/impl/FeeAttrServiceDaoImpl.java
old mode 100644
new mode 100755
index 14b90bb..21ed212
--- a/service-fee/src/main/java/com/java110/fee/dao/impl/FeeAttrServiceDaoImpl.java
+++ b/service-fee/src/main/java/com/java110/fee/dao/impl/FeeAttrServiceDaoImpl.java
@@ -1,11 +1,12 @@
 package com.java110.fee.dao.impl;
 
 import com.alibaba.fastjson.JSONObject;
+import com.java110.core.base.dao.BaseServiceDao;
+import com.java110.fee.dao.IFeeAttrServiceDao;
+import com.java110.po.fee.FeeAttrPo;
 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.IFeeAttrServiceDao;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 import org.springframework.stereotype.Service;
@@ -25,6 +26,7 @@
 
     /**
      * 璐圭敤灞炴�т俊鎭皝瑁�
+     *
      * @param businessFeeAttrInfo 璐圭敤灞炴�т俊鎭� 灏佽
      * @throws DAOException DAO寮傚父
      */
@@ -32,17 +34,18 @@
     public void saveBusinessFeeAttrInfo(Map businessFeeAttrInfo) throws DAOException {
         businessFeeAttrInfo.put("month", DateUtil.getCurrentMonth());
         // 鏌ヨbusiness_user 鏁版嵁鏄惁宸茬粡瀛樺湪
-        logger.debug("淇濆瓨璐圭敤灞炴�т俊鎭� 鍏ュ弬 businessFeeAttrInfo : {}",businessFeeAttrInfo);
-        int saveFlag = sqlSessionTemplate.insert("feeAttrServiceDaoImpl.saveBusinessFeeAttrInfo",businessFeeAttrInfo);
+        logger.debug("淇濆瓨璐圭敤灞炴�т俊鎭� 鍏ュ弬 businessFeeAttrInfo : {}", businessFeeAttrInfo);
+        int saveFlag = sqlSessionTemplate.insert("feeAttrServiceDaoImpl.saveBusinessFeeAttrInfo", businessFeeAttrInfo);
 
-        if(saveFlag < 1){
-            throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"淇濆瓨璐圭敤灞炴�ф暟鎹け璐ワ細"+ JSONObject.toJSONString(businessFeeAttrInfo));
+        if (saveFlag < 1) {
+            throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR, "淇濆瓨璐圭敤灞炴�ф暟鎹け璐ワ細" + JSONObject.toJSONString(businessFeeAttrInfo));
         }
     }
 
 
     /**
      * 鏌ヨ璐圭敤灞炴�т俊鎭�
+     *
      * @param info bId 淇℃伅
      * @return 璐圭敤灞炴�т俊鎭�
      * @throws DAOException DAO寮傚父
@@ -50,43 +53,44 @@
     @Override
     public List<Map> getBusinessFeeAttrInfo(Map info) throws DAOException {
 
-        logger.debug("鏌ヨ璐圭敤灞炴�т俊鎭� 鍏ュ弬 info : {}",info);
+        logger.debug("鏌ヨ璐圭敤灞炴�т俊鎭� 鍏ュ弬 info : {}", info);
 
-        List<Map> businessFeeAttrInfos = sqlSessionTemplate.selectList("feeAttrServiceDaoImpl.getBusinessFeeAttrInfo",info);
+        List<Map> businessFeeAttrInfos = sqlSessionTemplate.selectList("feeAttrServiceDaoImpl.getBusinessFeeAttrInfo", info);
 
         return businessFeeAttrInfos;
     }
 
 
-
     /**
      * 淇濆瓨璐圭敤灞炴�т俊鎭� 鍒� instance
-     * @param info   bId 淇℃伅
+     *
+     * @param info bId 淇℃伅
      * @throws DAOException DAO寮傚父
      */
     @Override
     public void saveFeeAttrInfoInstance(Map info) throws DAOException {
-        logger.debug("淇濆瓨璐圭敤灞炴�т俊鎭疘nstance 鍏ュ弬 info : {}",info);
+        logger.debug("淇濆瓨璐圭敤灞炴�т俊鎭疘nstance 鍏ュ弬 info : {}", info);
 
-        int saveFlag = sqlSessionTemplate.insert("feeAttrServiceDaoImpl.saveFeeAttrInfoInstance",info);
+        int saveFlag = sqlSessionTemplate.insert("feeAttrServiceDaoImpl.saveFeeAttrInfoInstance", info);
 
-        if(saveFlag < 1){
-            throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"淇濆瓨璐圭敤灞炴�т俊鎭疘nstance鏁版嵁澶辫触锛�"+ JSONObject.toJSONString(info));
+        if (saveFlag < 1) {
+            throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR, "淇濆瓨璐圭敤灞炴�т俊鎭疘nstance鏁版嵁澶辫触锛�" + JSONObject.toJSONString(info));
         }
     }
 
 
     /**
      * 鏌ヨ璐圭敤灞炴�т俊鎭紙instance锛�
+     *
      * @param info bId 淇℃伅
      * @return List<Map>
      * @throws DAOException DAO寮傚父
      */
     @Override
     public List<Map> getFeeAttrInfo(Map info) throws DAOException {
-        logger.debug("鏌ヨ璐圭敤灞炴�т俊鎭� 鍏ュ弬 info : {}",info);
+        logger.debug("鏌ヨ璐圭敤灞炴�т俊鎭� 鍏ュ弬 info : {}", info);
 
-        List<Map> businessFeeAttrInfos = sqlSessionTemplate.selectList("feeAttrServiceDaoImpl.getFeeAttrInfo",info);
+        List<Map> businessFeeAttrInfos = sqlSessionTemplate.selectList("feeAttrServiceDaoImpl.getFeeAttrInfo", info);
 
         return businessFeeAttrInfos;
     }
@@ -94,28 +98,30 @@
 
     /**
      * 淇敼璐圭敤灞炴�т俊鎭�
+     *
      * @param info 淇敼淇℃伅
      * @throws DAOException DAO寮傚父
      */
     @Override
     public void updateFeeAttrInfoInstance(Map info) throws DAOException {
-        logger.debug("淇敼璐圭敤灞炴�т俊鎭疘nstance 鍏ュ弬 info : {}",info);
+        logger.debug("淇敼璐圭敤灞炴�т俊鎭疘nstance 鍏ュ弬 info : {}", info);
 
-        int saveFlag = sqlSessionTemplate.update("feeAttrServiceDaoImpl.updateFeeAttrInfoInstance",info);
+        int saveFlag = sqlSessionTemplate.update("feeAttrServiceDaoImpl.updateFeeAttrInfoInstance", info);
 
-        if(saveFlag < 1){
-            throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"淇敼璐圭敤灞炴�т俊鎭疘nstance鏁版嵁澶辫触锛�"+ JSONObject.toJSONString(info));
+        if (saveFlag < 1) {
+            throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR, "淇敼璐圭敤灞炴�т俊鎭疘nstance鏁版嵁澶辫触锛�" + JSONObject.toJSONString(info));
         }
     }
 
-     /**
+    /**
      * 鏌ヨ璐圭敤灞炴�ф暟閲�
+     *
      * @param info 璐圭敤灞炴�т俊鎭�
      * @return 璐圭敤灞炴�ф暟閲�
      */
     @Override
     public int queryFeeAttrsCount(Map info) {
-        logger.debug("鏌ヨ璐圭敤灞炴�ф暟鎹� 鍏ュ弬 info : {}",info);
+        logger.debug("鏌ヨ璐圭敤灞炴�ф暟鎹� 鍏ュ弬 info : {}", info);
 
         List<Map> businessFeeAttrInfos = sqlSessionTemplate.selectList("feeAttrServiceDaoImpl.queryFeeAttrsCount", info);
         if (businessFeeAttrInfos.size() < 1) {
@@ -125,5 +131,14 @@
         return Integer.parseInt(businessFeeAttrInfos.get(0).get("count").toString());
     }
 
+    @Override
+    public int saveFeeAttrs(Map info) {
+        logger.debug("saveFeeAttrs 鍏ュ弬 info : {}", info);
+
+        int saveFlag = sqlSessionTemplate.insert("feeAttrServiceDaoImpl.saveFeeAttrs", info);
+
+        return saveFlag;
+    }
+
 
 }

--
Gitblit v1.8.0