瀏覽代碼

[合同][修改][账单欠缴]

release_toaliyun_real
gongbiao 7 年之前
父節點
當前提交
9222dff182
共有 2 個文件被更改,包括 6 次插入 和 4 次删除
  1. +3
    -2
      mallinkService/src/main/resources/mapper/WxBillPropertyMapper.xml
  2. +3
    -2
      mallinkService/src/main/resources/mapper/WxBillRentMapper.xml

+ 3
- 2
mallinkService/src/main/resources/mapper/WxBillPropertyMapper.xml 查看文件

@@ -181,7 +181,8 @@
</update>

<update id="updatePreviewStatus" parameterType="com.iformall.domain.po.WxBillProperty">
update wx_bill_property set is_preview = #{isPreview},merchant_id = #{merchantId},need_pay = receive_pay,owe=receive_pay
update wx_bill_property set is_preview = #{isPreview},merchant_id = #{merchantId},need_pay = receive_pay,
owe=receive_pay + service_charge_pay + ifnull(late_pay_price,0) - pay
where property_contract_id = #{propertyContractId}
</update>

@@ -270,7 +271,7 @@
</update>
<update id="updateServiceCharge" parameterType="com.iformall.domain.po.WxPayAccountBill">
update wx_bill_property set service_charge_pay=round(receive_pay*#{serviceChargeRate}/10000) where tenant_id=#{tenantId} and service_charge_pay=0 and status in(1,2,4)
update wx_bill_property set service_charge_pay=round(receive_pay*#{serviceChargeRate}/10000),owe=receive_pay + service_charge_pay + ifnull(late_pay_price,0) - pay where tenant_id=#{tenantId} and service_charge_pay=0 and status in(1,2,4)
</update>
<update id="updateOwe">


+ 3
- 2
mallinkService/src/main/resources/mapper/WxBillRentMapper.xml 查看文件

@@ -188,7 +188,8 @@
</update>

<update id="updatePreviewStatus" parameterType="com.iformall.domain.po.WxBillRent">
update wx_bill_rent set is_preview = #{isPreview},merchant_id = #{merchantId},need_pay = receive_pay,owe=receive_pay
update wx_bill_rent set is_preview = #{isPreview},merchant_id = #{merchantId},need_pay = receive_pay,
owe=receive_pay + service_charge_pay + ifnull(late_pay_price,0) - pay
where rent_contract_id = #{rentContractId}
</update>

@@ -276,7 +277,7 @@
</update>
<update id="updateServiceCharge" parameterType="com.iformall.domain.po.WxPayAccountBill">
update wx_bill_rent set service_charge_pay=round(receive_pay*#{serviceChargeRate}/10000) where tenant_id=#{tenantId} and service_charge_pay=0 and status in(1,2,4)
update wx_bill_rent set service_charge_pay=round(receive_pay*#{serviceChargeRate}/10000),owe=receive_pay + service_charge_pay + ifnull(late_pay_price,0) - pay where tenant_id=#{tenantId} and service_charge_pay=0 and status in(1,2,4)
</update>
<update id="updateOwe">


Loading…
取消
儲存