|
|
|
@@ -130,19 +130,21 @@ |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="queryRentContractEndSoonStatus" resultType="int" parameterType="com.iformall.domain.po.WxRentContract"> |
|
|
|
select count(id) from wx_rent_contract where tenant_id=#{tenantId} and status!=1 and status!=6 |
|
|
|
select count(id) from wx_rent_contract where tenant_id=#{tenantId} and status!=0 and status!=1 and status!=6 |
|
|
|
and status!=7 and DATEDIFF(rental_end_date,now()) <= 30 and rental_end_date > now() |
|
|
|
<if test=" null != rentShopType ">and rent_shop_type = #{rentShopType}</if> |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="queryRentContractPaidStatus" resultType="int" parameterType="com.iformall.domain.po.WxRentContract"> |
|
|
|
select count(id) from wx_rent_contract where tenant_id=#{tenantId} and status!=1 and status!=6 and status!=7 |
|
|
|
select count(id) from wx_rent_contract where tenant_id=#{tenantId} and status!=0 and status!=1 and status!=6 and |
|
|
|
status!=7 |
|
|
|
and rental_start_date <= now() and rental_end_date >= now() |
|
|
|
<if test=" null != rentShopType ">and rent_shop_type = #{rentShopType}</if> |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="queryRentContractEndStatus" resultType="int" parameterType="com.iformall.domain.po.WxRentContract"> |
|
|
|
select count(id) from wx_rent_contract where tenant_id=#{tenantId} and status!=1 and status!=6 and status!=7 |
|
|
|
select count(id) from wx_rent_contract where tenant_id=#{tenantId} and status!=0 and status!=1 and status!=6 and |
|
|
|
status!=7 |
|
|
|
and rental_end_date <now() |
|
|
|
<if test=" null != rentShopType ">and rent_shop_type = #{rentShopType}</if> |
|
|
|
|
|
|
|
|