java110 лет назад: 6
Родитель
Сommit
685bd25c37

+ 21 - 0
java110-bean/src/main/java/com/java110/dto/fee/FeeConfigDto.java

@@ -33,6 +33,10 @@ public class FeeConfigDto extends PageDto implements Serializable {
 
     private String billTypeName;
 
+    private String paymentCd;
+
+    private String paymentCycle;
+
 
     private Date createTime;
 
@@ -175,4 +179,21 @@ public class FeeConfigDto extends PageDto implements Serializable {
     public void setBillTypeName(String billTypeName) {
         this.billTypeName = billTypeName;
     }
+
+
+    public String getPaymentCd() {
+        return paymentCd;
+    }
+
+    public void setPaymentCd(String paymentCd) {
+        this.paymentCd = paymentCd;
+    }
+
+    public String getPaymentCycle() {
+        return paymentCycle;
+    }
+
+    public void setPaymentCycle(String paymentCycle) {
+        this.paymentCycle = paymentCycle;
+    }
 }

+ 20 - 0
java110-bean/src/main/java/com/java110/po/fee/PayFeeConfigPo.java

@@ -28,6 +28,10 @@ public class PayFeeConfigPo implements Serializable {
 
     private String billType;
 
+    private String paymentCd;
+
+    private String paymentCycle;
+
     public String getConfigId() {
         return configId;
     }
@@ -123,4 +127,20 @@ public class PayFeeConfigPo implements Serializable {
     public void setBillType(String billType) {
         this.billType = billType;
     }
+
+    public String getPaymentCd() {
+        return paymentCd;
+    }
+
+    public void setPaymentCd(String paymentCd) {
+        this.paymentCd = paymentCd;
+    }
+
+    public String getPaymentCycle() {
+        return paymentCycle;
+    }
+
+    public void setPaymentCycle(String paymentCycle) {
+        this.paymentCycle = paymentCycle;
+    }
 }

+ 31 - 8
java110-db/src/main/resources/mapper/fee/FeeConfigServiceDaoImplMapper.xml

@@ -7,9 +7,11 @@
     <!-- 保存费用配置信息 add by wuxw 2018-07-03 -->
     <insert id="saveBusinessFeeConfigInfo" parameterType="Map">
         insert into business_pay_fee_config(
-        fee_type_cd,computing_formula,additional_amount,square_price,is_default,operate,config_id,fee_flag,fee_name,start_time,end_time,community_id,b_id,bill_type
+        fee_type_cd,computing_formula,additional_amount,square_price,is_default,operate,config_id,fee_flag,fee_name,
+        start_time,end_time,community_id,b_id,bill_type,payment_cd,payment_cycle
         ) values (
-        #{feeTypeCd},#{computingFormula},#{additionalAmount},#{squarePrice},#{isDefault},#{operate},#{configId},#{feeFlag},#{feeName},#{startTime},#{endTime},#{communityId},#{bId},#{billType}
+        #{feeTypeCd},#{computingFormula},#{additionalAmount},#{squarePrice},#{isDefault},#{operate},#{configId},
+        #{feeFlag},#{feeName},#{startTime},#{endTime},#{communityId},#{bId},#{billType},#{paymentCd},#{paymentCycle}
         )
     </insert>
 
@@ -20,7 +22,8 @@
         computingFormula,t.additional_amount,t.additional_amount additionalAmount,t.square_price,t.square_price
         squarePrice,t.is_default,t.is_default isDefault,t.operate,t.config_id,t.config_id configId,t.fee_flag,t.fee_flag
         feeFlag,t.fee_name,t.fee_name feeName,t.start_time,t.start_time startTime,t.end_time,t.end_time
-        endTime,t.community_id,t.community_id communityId,t.b_id,t.b_id bId,t.bill_type,t.bill_type billType
+        endTime,t.community_id,t.community_id communityId,t.b_id,t.b_id bId,t.bill_type,t.bill_type billType,
+        t.payment_cd,t.payment_cycle
         from business_pay_fee_config t
         where 1 =1
         <if test="feeTypeCd !=null and feeTypeCd != ''">
@@ -72,11 +75,12 @@
     <!-- 保存费用配置信息至 instance表中 add by wuxw 2018-07-03 -->
     <insert id="saveFeeConfigInfoInstance" parameterType="Map">
         insert into pay_fee_config(
-        fee_type_cd,computing_formula,additional_amount,status_cd,square_price,is_default,config_id,fee_flag,fee_name,start_time,end_time,community_id,b_id
-        ,bill_type
+        fee_type_cd,computing_formula,additional_amount,status_cd,square_price,is_default,config_id,fee_flag,fee_name,
+        start_time,end_time,community_id,b_id,bill_type,payment_cd,payment_cycle
         ) select
-        t.fee_type_cd,t.computing_formula,t.additional_amount,'0',t.square_price,t.is_default,t.config_id,t.fee_flag,t.fee_name,t.start_time,t.end_time,t.community_id,
-        t.b_id,t.bill_type
+        t.fee_type_cd,t.computing_formula,t.additional_amount,'0',t.square_price,t.is_default,t.config_id,t.fee_flag,t.fee_name,
+        t.start_time,t.end_time,t.community_id,
+        t.b_id,t.bill_type,t.payment_cd,t.payment_cycle
         from business_pay_fee_config t where 1=1
         <if test="feeTypeCd !=null and feeTypeCd != ''">
             and t.fee_type_cd= #{feeTypeCd}
@@ -129,7 +133,8 @@
         statusCd,t.square_price,t.square_price squarePrice,t.is_default,t.is_default isDefault,t.config_id,t.config_id
         configId,t.fee_flag,t.fee_flag feeFlag,t.fee_name,t.fee_name feeName,t.start_time,t.start_time
         startTime,t.end_time,t.end_time endTime,t.community_id,t.community_id communityId,t.b_id,t.b_id bId,
-        td1.name feeTypeCdName,td2.name feeFlagName,t.bill_type billType,t.bill_type,td3.name billTypeName
+        td1.name feeTypeCdName,td2.name feeFlagName,t.bill_type billType,t.bill_type,td3.name billTypeName,
+        t.payment_cd,t.payment_cycle,t.payment_cd paymentCd,t.payment_cycle paymentCycle
         from pay_fee_config t,t_dict td1,t_dict td2,t_dict td3
         where 1 =1
         and t.fee_type_cd = td1.status_cd
@@ -180,6 +185,12 @@
         <if test="bId !=null and bId != ''">
             and t.b_id= #{bId}
         </if>
+        <if test="paymentCd !=null and paymentCd != ''">
+            and t.payment_cd= #{paymentCd}
+        </if>
+        <if test="paymentCycle !=null and paymentCycle != ''">
+            and t.payment_cycle= #{paymentCycle}
+        </if>
         order by t.create_time desc
         <if test="page != -1 and page != null ">
             limit #{page}, #{row}
@@ -206,6 +217,12 @@
         <if test="squarePrice !=null and squarePrice != ''">
             , t.square_price= #{squarePrice}
         </if>
+        <if test="paymentCd !=null and paymentCd != ''">
+            , t.payment_cd= #{paymentCd}
+        </if>
+        <if test="paymentCycle !=null and paymentCycle != ''">
+            , t.payment_cycle= #{paymentCycle}
+        </if>
         <if test="isDefault !=null and isDefault != ''">
             , t.is_default= #{isDefault}
         </if>
@@ -290,6 +307,12 @@
         <if test="bId !=null and bId != ''">
             and t.b_id= #{bId}
         </if>
+        <if test="paymentCd !=null and paymentCd != ''">
+            and t.payment_cd= #{paymentCd}
+        </if>
+        <if test="paymentCycle !=null and paymentCycle != ''">
+            and t.payment_cycle= #{paymentCycle}
+        </if>
 
 
     </select>

+ 2 - 0
service-api/src/main/java/com/java110/api/listener/fee/SaveFeeConfigListener.java

@@ -35,6 +35,8 @@ public class SaveFeeConfigListener extends AbstractServiceApiPlusListener {
         Assert.hasKeyAndValue(reqJson, "additionalAmount", "必填,请填写附加费用");
         Assert.hasKeyAndValue(reqJson, "communityId", "未包含小区ID");
         Assert.hasKeyAndValue(reqJson, "billType", "未包含出账类型");
+        Assert.hasKeyAndValue(reqJson, "paymentCd", "付费类型不能为空");
+        Assert.hasKeyAndValue(reqJson, "paymentCycle", "缴费周期不能为空");
 
 
 

+ 6 - 0
service-fee/src/main/java/com/java110/fee/listener/config/AbstractFeeConfigBusinessServiceDataFlowListener.java

@@ -49,6 +49,9 @@ public abstract class AbstractFeeConfigBusinessServiceDataFlowListener extends A
         businessFeeConfigInfo.put("startTime", businessFeeConfigInfo.get("start_time"));
         businessFeeConfigInfo.put("endTime", businessFeeConfigInfo.get("end_time"));
         businessFeeConfigInfo.put("communityId", businessFeeConfigInfo.get("community_id"));
+        businessFeeConfigInfo.put("paymentCd", businessFeeConfigInfo.get("payment_cd"));
+        businessFeeConfigInfo.put("paymentCycle", businessFeeConfigInfo.get("payment_cycle"));
+        businessFeeConfigInfo.put("billType", businessFeeConfigInfo.get("bill_type"));
         businessFeeConfigInfo.remove("bId");
         businessFeeConfigInfo.put("statusCd", statusCd);
     }
@@ -85,6 +88,9 @@ public abstract class AbstractFeeConfigBusinessServiceDataFlowListener extends A
         currentFeeConfigInfo.put("startTime", currentFeeConfigInfo.get("start_time"));
         currentFeeConfigInfo.put("endTime", currentFeeConfigInfo.get("end_time"));
         currentFeeConfigInfo.put("communityId", currentFeeConfigInfo.get("community_id"));
+        currentFeeConfigInfo.put("paymentCd", currentFeeConfigInfo.get("payment_cd"));
+        currentFeeConfigInfo.put("paymentCycle", currentFeeConfigInfo.get("payment_cycle"));
+        currentFeeConfigInfo.put("billType", currentFeeConfigInfo.get("bill_type"));
 
 
         currentFeeConfigInfo.put("operate", StatusConstant.OPERATE_DEL);

+ 3 - 0
service-front/src/main/java/com/java110/front/smo/feeConfig/impl/AddFeeConfigSMOImpl.java

@@ -40,6 +40,9 @@ public class AddFeeConfigSMOImpl extends AbstractComponentSMO implements IAddFee
         Assert.hasKeyAndValue(paramIn, "additionalAmount", "必填,请填写附加费用");
         Assert.hasKeyAndValue(paramIn, "communityId", "未包含小区ID");
         Assert.hasKeyAndValue(paramIn, "billType", "未包含出账类型");
+        Assert.hasKeyAndValue(paramIn, "billType", "未包含出账类型");
+        Assert.hasKeyAndValue(paramIn, "paymentCd", "付费类型不能为空");
+        Assert.hasKeyAndValue(paramIn, "paymentCycle", "缴费周期不能为空");
 
         //super.checkUserHasPrivilege(pd, restTemplate, PrivilegeCodeConstant.AGENT_HAS_LIST_FEECONFIG);