Explorar el Código

fix

release_toaliyun_real
winter hace 1 año
padre
commit
d135d033fd
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  1. +5
    -1
      mallinkService/src/main/resources/mapper/WxAllBillMapper.xml

+ 5
- 1
mallinkService/src/main/resources/mapper/WxAllBillMapper.xml Ver fichero

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


Cargando…
Cancelar
Guardar