diff --git a/mallinkService/src/main/resources/mapper/WxBillDepositMapper.xml b/mallinkService/src/main/resources/mapper/WxBillDepositMapper.xml
index 93d064566..f8d47e494 100644
--- a/mallinkService/src/main/resources/mapper/WxBillDepositMapper.xml
+++ b/mallinkService/src/main/resources/mapper/WxBillDepositMapper.xml
@@ -95,14 +95,14 @@
update wx_bill_rent_deposit set status=#{notPaid},expired_day=DATEDIFF(now(),receive_date)
- where tenant_id=#{tenantId} and status!=#{paid} and DATEDIFF(now(),receive_date)>0
+ where tenant_id=#{tenantId} and status!=#{paid} and status!=5 and DATEDIFF(now(),receive_date)>0
update wx_bill_rent_deposit set status=#{waitPay} where id in(
select a.id from (select br.id,rc.receive_period,br.rent_contract_id,br.receive_date from wx_bill_rent_deposit br
left join wx_rent_contract rc on br.rent_contract_id=rc.id
- where br.tenant_id=#{tenantId} and br.status!=#{paid} and now() < br.receive_date
+ where br.tenant_id=#{tenantId} and br.status!=#{paid} and status!=5 and now() < br.receive_date
and DATE_ADD(now(),INTERVAL 1 MONTH)>br.receive_date) a)
diff --git a/mallinkService/src/main/resources/mapper/WxBillOtherDepositMapper.xml b/mallinkService/src/main/resources/mapper/WxBillOtherDepositMapper.xml
index 8dd448fb1..0a2f36aa7 100644
--- a/mallinkService/src/main/resources/mapper/WxBillOtherDepositMapper.xml
+++ b/mallinkService/src/main/resources/mapper/WxBillOtherDepositMapper.xml
@@ -90,11 +90,11 @@
update wx_bill_other_deposit set status=#{notPaid},expired_day=DATEDIFF(now(),receive_date)
- where tenant_id=#{tenantId} and status!=#{paid} and DATEDIFF(now(),receive_date)>0
+ where tenant_id=#{tenantId} and status!=#{paid} and status!=5 and DATEDIFF(now(),receive_date)>0
- update wx_bill_other_deposit set status=#{waitPay} where tenant_id=#{tenantId}
+ update wx_bill_other_deposit set status=#{waitPay} where tenant_id=#{tenantId} and status!=5
and status!=#{paid} and DATEDIFF(now(),receive_date) <=0
diff --git a/mallinkService/src/main/resources/mapper/WxBillPropertyDepositMapper.xml b/mallinkService/src/main/resources/mapper/WxBillPropertyDepositMapper.xml
index c5d2c4408..752701145 100644
--- a/mallinkService/src/main/resources/mapper/WxBillPropertyDepositMapper.xml
+++ b/mallinkService/src/main/resources/mapper/WxBillPropertyDepositMapper.xml
@@ -93,14 +93,14 @@
update wx_bill_property_deposit set status=#{notPaid},expired_day=DATEDIFF(now(),receive_date)
- where tenant_id=#{tenantId} and status!=#{paid} and DATEDIFF(now(),receive_date)>0
+ where tenant_id=#{tenantId} and status!=#{paid} and status!=5 and DATEDIFF(now(),receive_date)>0
update wx_bill_property_deposit set status=#{waitPay} where id in(
select a.id from (select br.id,rc.receive_period,br.property_contract_id,br.receive_date from wx_bill_property_deposit br
left join wx_property_contract rc on br.property_contract_id=rc.id
- where br.tenant_id=#{tenantId} and br.status!=#{paid} and now() < br.receive_date
+ where br.tenant_id=#{tenantId} and br.status!=#{paid} and status!=5 and now() < br.receive_date
and DATE_ADD(now(),INTERVAL 1 MONTH)>br.receive_date) a)