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