From e19364f7fb793d48b7e6ccbd68078405bcb5bd0f Mon Sep 17 00:00:00 2001 From: luozukai Date: Thu, 10 Oct 2019 15:12:53 +0800 Subject: [PATCH] =?UTF-8?q?[=E4=BF=AE=E6=94=B9][=E6=89=8B=E7=BB=AD?= =?UTF-8?q?=E8=B4=B9][=E5=BC=80=E5=8F=91]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/mapper/WxPropertyContractMapper.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mallinkService/src/main/resources/mapper/WxPropertyContractMapper.xml b/mallinkService/src/main/resources/mapper/WxPropertyContractMapper.xml index dd4aca7f1..9d7ea1f65 100644 --- a/mallinkService/src/main/resources/mapper/WxPropertyContractMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxPropertyContractMapper.xml @@ -210,7 +210,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} + where rc.status not in(0,1,5,6,7,8) 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(5,6,7) and tenant_id=#{tenantId} ) pc)