Browse Source

fix

release_toaliyun_real
winter 1 year ago
parent
commit
d135d033fd
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      mallinkService/src/main/resources/mapper/WxAllBillMapper.xml

+ 5
- 1
mallinkService/src/main/resources/mapper/WxAllBillMapper.xml View File

@@ -432,7 +432,11 @@
<delete id = "deleteById" parameterType="HashMap">
delete from wx_all_bill where id = #{id} and tenant_id = #{tenantId}
and pay &lt;= 0 and IFNULL(`set_off`,'0') &lt;= 0 and IFNULL(`return_pay`,'0') &lt;= 0 and IFNULL(`use_money`,'0') &lt;= 0
and (
(bill_type != 7 and pay &lt;= 0 and IFNULL(`set_off`,'0') &lt;= 0 and IFNULL(`return_pay`,'0') &lt;= 0 and IFNULL(`use_money`,'0') &lt;= 0)
or
(bill_type = 7 and IFNULL(`set_off`,'0') &lt;= 0 and IFNULL(`return_pay`,'0') &lt;= 0 and IFNULL(`use_money`,'0') &lt;= 0)
)
</delete>
<delete id = "deleteEnergyReadingBills" parameterType="HashMap">


Loading…
Cancel
Save