wuxw лет назад: 2
Родитель
Сommit
8c7a28257b

+ 11 - 0
java110-db/src/main/resources/mapper/fee/PayFeeRuleBillV1ServiceDaoImplMapper.xml

@@ -14,6 +14,17 @@
         )
         )
     </insert>
     </insert>
 
 
+    <insert id="savePayFeeRuleBills" parameterType="Map">
+        insert into pay_fee_rule_bill(
+        bill_name,config_id,bill_id,cur_year_month,remark,rule_id,community_id,batch_id,fee_id
+        ) values
+        <foreach collection="payFeeRuleBillPos" item="item" separator=",">
+            (#{item.billName},#{item.configId},#{item.billId},#{item.curYearMonth},#{item.remark},#{item.ruleId},#{item.communityId},#{item.batchId},#{item.feeId})
+        </foreach>
+
+    </insert>
+
+
 
 
     <!-- 查询费用账单信息 add by wuxw 2018-07-03 -->
     <!-- 查询费用账单信息 add by wuxw 2018-07-03 -->
     <select id="getPayFeeRuleBillInfo" parameterType="Map" resultType="Map">
     <select id="getPayFeeRuleBillInfo" parameterType="Map" resultType="Map">

+ 3 - 0
java110-interface/src/main/java/com/java110/intf/fee/IPayFeeRuleBillV1InnerServiceSMO.java

@@ -41,6 +41,9 @@ public interface IPayFeeRuleBillV1InnerServiceSMO {
     @RequestMapping(value = "/savePayFeeRuleBill", method = RequestMethod.POST)
     @RequestMapping(value = "/savePayFeeRuleBill", method = RequestMethod.POST)
     int savePayFeeRuleBill(@RequestBody PayFeeRuleBillPo payFeeRuleBillPo);
     int savePayFeeRuleBill(@RequestBody PayFeeRuleBillPo payFeeRuleBillPo);
 
 
+    @RequestMapping(value = "/savePayFeeRuleBills", method = RequestMethod.POST)
+    int savePayFeeRuleBills(@RequestBody  List<PayFeeRuleBillPo> payFeeRuleBillPos);
+
     @RequestMapping(value = "/updatePayFeeRuleBill", method = RequestMethod.POST)
     @RequestMapping(value = "/updatePayFeeRuleBill", method = RequestMethod.POST)
     int updatePayFeeRuleBill(@RequestBody PayFeeRuleBillPo payFeeRuleBillPo);
     int updatePayFeeRuleBill(@RequestBody PayFeeRuleBillPo payFeeRuleBillPo);
 
 

+ 2 - 1
service-fee/src/main/java/com/java110/fee/dao/IPayFeeRuleBillV1ServiceDao.java

@@ -41,7 +41,7 @@ public interface IPayFeeRuleBillV1ServiceDao {
     int savePayFeeRuleBillInfo(Map info) throws DAOException;
     int savePayFeeRuleBillInfo(Map info) throws DAOException;
 
 
 
 
-
+    int savePayFeeRuleBills(Map info);
 
 
     /**
     /**
      * 查询费用账单信息(instance过程)
      * 查询费用账单信息(instance过程)
@@ -70,4 +70,5 @@ public interface IPayFeeRuleBillV1ServiceDao {
      */
      */
     int queryPayFeeRuleBillsCount(Map info);
     int queryPayFeeRuleBillsCount(Map info);
 
 
+
 }
 }

+ 9 - 0
service-fee/src/main/java/com/java110/fee/dao/impl/PayFeeRuleBillV1ServiceDaoImpl.java

@@ -60,6 +60,15 @@ public class PayFeeRuleBillV1ServiceDaoImpl extends BaseServiceDao implements IP
         return saveFlag;
         return saveFlag;
     }
     }
 
 
+    @Override
+    public int savePayFeeRuleBills(Map info) {
+        logger.debug("保存 savePayFeeRuleBills 入参 info : {}",info);
+
+        int saveFlag = sqlSessionTemplate.insert("payFeeRuleBillV1ServiceDaoImpl.savePayFeeRuleBills",info);
+
+        return saveFlag;
+    }
+
 
 
     /**
     /**
      * 查询费用账单信息(instance)
      * 查询费用账单信息(instance)

+ 9 - 2
service-fee/src/main/java/com/java110/fee/smo/impl/PayFeeRuleBillV1InnerServiceSMOImpl.java

@@ -28,8 +28,7 @@ import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.web.bind.annotation.RequestBody;
 import org.springframework.web.bind.annotation.RequestBody;
 import org.springframework.web.bind.annotation.RestController;
 import org.springframework.web.bind.annotation.RestController;
 
 
-import java.util.ArrayList;
-import java.util.List;
+import java.util.*;
 
 
 /**
 /**
  * 类表述: 服务之前调用的接口实现类,不对外提供接口能力 只用于接口建调用
  * 类表述: 服务之前调用的接口实现类,不对外提供接口能力 只用于接口建调用
@@ -52,6 +51,14 @@ public class PayFeeRuleBillV1InnerServiceSMOImpl extends BaseServiceSMO implemen
         return saveFlag;
         return saveFlag;
     }
     }
 
 
+    @Override
+    public int savePayFeeRuleBills(@RequestBody  List<PayFeeRuleBillPo> payFeeRuleBillPos) {
+        Map<String, Object> info = new HashMap<>();
+        info.put("payFeeRuleBillPos",payFeeRuleBillPos);
+        int saveFlag = payFeeRuleBillV1ServiceDaoImpl.savePayFeeRuleBills(info);
+        return saveFlag;
+    }
+
      @Override
      @Override
     public int updatePayFeeRuleBill(@RequestBody  PayFeeRuleBillPo payFeeRuleBillPo) {
     public int updatePayFeeRuleBill(@RequestBody  PayFeeRuleBillPo payFeeRuleBillPo) {
         int saveFlag = payFeeRuleBillV1ServiceDaoImpl.updatePayFeeRuleBillInfo(BeanConvertUtil.beanCovertMap(payFeeRuleBillPo));
         int saveFlag = payFeeRuleBillV1ServiceDaoImpl.updatePayFeeRuleBillInfo(BeanConvertUtil.beanCovertMap(payFeeRuleBillPo));