|
|
|
@@ -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()) <= 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()) <= 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 <= 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 <= 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 <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 <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"> |
|
|
|
|