Просмотр исходного кода

[其他押金账单][修改][退押金]

release_toaliyun_real
gongbiao 7 лет назад
Родитель
Сommit
44d0f1d4bd
3 измененных файлов: 6 добавлений и 6 удалений
  1. +2
    -2
      mallinkService/src/main/resources/mapper/WxBillDepositMapper.xml
  2. +2
    -2
      mallinkService/src/main/resources/mapper/WxBillOtherDepositMapper.xml
  3. +2
    -2
      mallinkService/src/main/resources/mapper/WxBillPropertyDepositMapper.xml

+ 2
- 2
mallinkService/src/main/resources/mapper/WxBillDepositMapper.xml Просмотреть файл

@@ -95,14 +95,14 @@
<update id="updateNotPaidStatus" parameterType="hashmap">
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>
<update id="updateWaitPayStatus" parameterType="hashmap">
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() &lt; br.receive_date
where br.tenant_id=#{tenantId} and br.status!=#{paid} and status!=5 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/WxBillOtherDepositMapper.xml Просмотреть файл

@@ -90,11 +90,11 @@
<update id="updateNotPaidStatus" parameterType="hashmap">
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>
<update id="updateWaitPayStatus" parameterType="hashmap">
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) &lt;=0
</update>



+ 2
- 2
mallinkService/src/main/resources/mapper/WxBillPropertyDepositMapper.xml Просмотреть файл

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



Загрузка…
Отмена
Сохранить