|
|
|
@@ -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"> |
|
|
|
|