|
|
|
@@ -217,8 +217,8 @@ |
|
|
|
</delete> |
|
|
|
|
|
|
|
<delete id="deleteNoNeedPayBill" parameterType="com.iformall.domain.po.WxAllBill"> |
|
|
|
delete from wx_all_bill where rent_contract_id = #{rentContractId} and status = 2 |
|
|
|
and starttime > #{shopEndtime} and IFNULL(`pay`,'0') <= 0 AND IFNULL(`set_off`,'0') <= 0 and IFNULL(`return_pay`,'0') <= 0 |
|
|
|
delete from wx_all_bill where status = 2 |
|
|
|
and starttime >= #{shopEndtime} and IFNULL(`pay`,'0') <= 0 AND IFNULL(`set_off`,'0') <= 0 and IFNULL(`return_pay`,'0') <= 0 |
|
|
|
<if test=" null != rentContractId"> |
|
|
|
and rent_contract_id = #{rentContractId} |
|
|
|
</if> |
|
|
|
|