瀏覽代碼

[物业合同][修改][获取已签约租赁合同数据的查询语句]

release_toaliyun_real
gongbiao 7 年之前
父節點
當前提交
dea2aa1f48
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      mallinkService/src/main/resources/mapper/WxPropertyContractMapper.xml

+ 1
- 1
mallinkService/src/main/resources/mapper/WxPropertyContractMapper.xml 查看文件

@@ -177,7 +177,7 @@
select rc.*,s.shop_number from wx_rent_contract rc inner join wx_shop s on rc.shop_id=s.id
where rc.status not in(0,1,5,6,7) and rc.tenant_id=#{tenantId}
and rc.id not in (select pc.rent_contract_id from (
select rent_contract_id from wx_property_contract where status not in(0,1,5,6,7) and tenant_id=#{tenantId}
select rent_contract_id from wx_property_contract where status not in(5,6,7) and tenant_id=#{tenantId}
) pc)
<if test=" null != rentShopType ">and rent_shop_type = #{rentShopType}</if>
</select>


Loading…
取消
儲存