From 728c3af0d6e611d1bb14279c15c69e412488441f Mon Sep 17 00:00:00 2001 From: winter Date: Sat, 3 Aug 2024 13:57:09 +0800 Subject: [PATCH] fix --- mallinkService/src/main/resources/mapper/WxAllBillMapper.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mallinkService/src/main/resources/mapper/WxAllBillMapper.xml b/mallinkService/src/main/resources/mapper/WxAllBillMapper.xml index d9a7d2362..f9da5f1c8 100644 --- a/mallinkService/src/main/resources/mapper/WxAllBillMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxAllBillMapper.xml @@ -217,8 +217,8 @@ - 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 and rent_contract_id = #{rentContractId}