Sfoglia il codice sorgente

[账单][修改][状态]

release_toaliyun_real
gongbiao 7 anni fa
parent
commit
dedc790a32
2 ha cambiato i file con 4 aggiunte e 4 eliminazioni
  1. +2
    -2
      mallinkService/src/main/resources/mapper/WxBillPropertyMapper.xml
  2. +2
    -2
      mallinkService/src/main/resources/mapper/WxBillRentMapper.xml

+ 2
- 2
mallinkService/src/main/resources/mapper/WxBillPropertyMapper.xml Vedi File

@@ -111,14 +111,14 @@
<update id="updateNotPaidStatus" parameterType="hashmap">
update wx_bill_property 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 != 6 and DATEDIFF(now(),receive_date)>0
</update>
<update id="updateWaitPayStatus" parameterType="hashmap">
update wx_bill_property 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 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() &lt; br.receive_date
where br.tenant_id=#{tenantId} and br.status!=#{paid} and status != 6 and now() &lt; br.receive_date
and DATE_ADD(now(),INTERVAL 1 MONTH)>br.receive_date) a)
</update>



+ 2
- 2
mallinkService/src/main/resources/mapper/WxBillRentMapper.xml Vedi File

@@ -113,14 +113,14 @@
<update id="updateNotPaidStatus" parameterType="hashmap">
update wx_bill_rent 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 br.status!=6 and DATEDIFF(now(),receive_date)>0
</update>

<update id="updateWaitPayStatus" parameterType="hashmap">
update wx_bill_rent 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 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() &lt; br.receive_date
where br.tenant_id=#{tenantId} and br.status!=#{paid} and br.status!=6 and now() &lt; br.receive_date
and DATE_ADD(now(),INTERVAL 1 MONTH)>br.receive_date) a)
</update>



Caricamento…
Annulla
Salva