Przeglądaj źródła

[定时任务][修改][合同计租状态排除补录sql]

release_toaliyun_real
gongbiao 6 lat temu
rodzic
commit
88c68f62c9
1 zmienionych plików z 4 dodań i 4 usunięć
  1. +4
    -4
      mallinkService/src/main/resources/mapper/WxRentContractMapper.xml

+ 4
- 4
mallinkService/src/main/resources/mapper/WxRentContractMapper.xml Wyświetl plik

@@ -215,19 +215,19 @@
</select>

<update id="updateRentContractEndSoonStatus" parameterType="com.iformall.domain.po.WxRentContract">
update wx_rent_contract set status=#{status} where tenant_id=#{tenantId} and status!=0 and status!=5 and status!=1 and status!=6 and status!=7 and DATEDIFF(rental_end_date,now()) &lt;= 30 and rental_end_date > now()
update wx_rent_contract set status=#{status} where tenant_id=#{tenantId} and status not in(0,1,5,6,7,8) and DATEDIFF(rental_end_date,now()) &lt;= 30 and rental_end_date > now()
</update>

<update id="updateRentContractPaidStatus" parameterType="com.iformall.domain.po.WxRentContract">
update wx_rent_contract set status=#{status} where tenant_id=#{tenantId} and status!=0 and status!=1 and status!=5 and status!=6 and status!=7 and rental_start_date &lt;= now() and rental_end_date >= now()
update wx_rent_contract set status=#{status} where tenant_id=#{tenantId} and status not in(0,1,5,6,7,8) and rental_start_date &lt;= now() and rental_end_date >= now()
</update>

<update id="updateRentContractEndStatus" parameterType="com.iformall.domain.po.WxRentContract">
update wx_rent_contract set status=#{status} where tenant_id=#{tenantId} and status!=0 and status!=1 and status!=5 and status!=6 and status!=7 and rental_end_date &lt;now()
update wx_rent_contract set status=#{status} where tenant_id=#{tenantId} and status not in(0,1,5,6,7,8) and rental_end_date &lt;now()
</update>

<update id="updateRentWaitSignStatus" parameterType="com.iformall.domain.po.WxRentContract">
update wx_rent_contract set status=#{status} where tenant_id=#{tenantId} and status!=0 and status!=5 and status!=6 and status!=7 and merchant_id is null
update wx_rent_contract set status=#{status} where tenant_id=#{tenantId} and status not in(0,5,6,7) and merchant_id is null
</update>

<update id="updateApplyStatus" parameterType="com.iformall.domain.po.WxRentContract">


Ładowanie…
Anuluj
Zapisz