|
|
|
@@ -212,5 +212,12 @@ |
|
|
|
select count(*) from wx_rent_contract r,wx_bill_rent b |
|
|
|
where b.rent_contract_id = r.id and b.status = 1 and r.id = #{id} |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="getMerchants" parameterType="com.iformall.domain.po.WxRentContract" |
|
|
|
resultType="com.iformall.domain.po.WxRentContract"> |
|
|
|
select * from wx_rent_contract where status in(2,3,4) |
|
|
|
and merchant_id not in(select merchant_id from wx_property_contract where status in(2,3,4)) |
|
|
|
<if test=" null != rentShopType ">and rent_shop_type = #{rentShopType}</if> |
|
|
|
</select> |
|
|
|
|
|
|
|
</mapper> |