|
|
|
@@ -97,15 +97,15 @@ |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="queryRentContractEndSoonStatus" resultType="int" parameterType="com.iformall.domain.po.WxRentContract"> |
|
|
|
select count(id) from wx_rent_contract where tenant_id=#{tenantId} and DATEDIFF(rental_end_date,now()) <= 30 |
|
|
|
select count(id) from wx_rent_contract where tenant_id=#{tenantId} and status!=1 and DATEDIFF(rental_end_date,now()) <= 30 |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="queryRentContractPaidStatus" resultType="int" parameterType="com.iformall.domain.po.WxRentContract"> |
|
|
|
select count(id) from wx_rent_contract where tenant_id=#{tenantId} and rental_start_date <= now() and rental_end_date >= now() |
|
|
|
select count(id) from wx_rent_contract where tenant_id=#{tenantId} and status!=1 and rental_start_date <= now() and rental_end_date >= now() |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="queryRentContractEndStatus" resultType="int" parameterType="com.iformall.domain.po.WxRentContract"> |
|
|
|
select count(id) from wx_rent_contract where tenant_id=#{tenantId} and rental_end_date <now() |
|
|
|
select count(id) from wx_rent_contract where tenant_id=#{tenantId} and status!=1 and rental_end_date <now() |
|
|
|
</select> |
|
|
|
|
|
|
|
<update id="updateRentContractEndSoonStatus" parameterType="com.iformall.domain.po.WxRentContract"> |
|
|
|
|