From 4a18ad3d2983b1f0c675895ae09f4c0aadfe5679 Mon Sep 17 00:00:00 2001 From: luozukai Date: Sun, 29 Sep 2019 18:15:02 +0800 Subject: [PATCH] =?UTF-8?q?[=E4=BF=AE=E6=94=B9][=E4=BC=9A=E5=91=98?= =?UTF-8?q?=E6=B6=88=E8=B4=B9][=E4=BF=AE=E5=A4=8Dbug]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/resources/mapper/WxRentContractMapper.xml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/mallinkService/src/main/resources/mapper/WxRentContractMapper.xml b/mallinkService/src/main/resources/mapper/WxRentContractMapper.xml index 93b60e391..058cc0eaa 100644 --- a/mallinkService/src/main/resources/mapper/WxRentContractMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxRentContractMapper.xml @@ -248,8 +248,7 @@ )s) and status in(0,1) and status!=7 and tenant_id=#{tenantId} and rent_shop_type=2 - select s.shop_id,s.shop_number,s.building_name building, s.floor_name floor,s.build_area,rc.* from ( select s.id shop_id,ms.merchant_id,s.shop_number,b.building_name,f.floor_name,s.build_area from wx_shop s @@ -259,6 +258,16 @@ where ms.is_del=0) s inner join (select * from wx_rent_contract where status in(2,3,4)) rc on s.merchant_id=rc.merchant_id where rc.tenant_id=#{tenantId} + + and s.shop_number like concat('%', #{shopNumber},'%') + + + and s.floor_name like concat('%', #{floor},'%') + + + and s.building_name like concat('%', #{building},'%') + + order by rc.id desc