From 07d22ae3d0656e58a71a979d031ee34a74c8a51a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E4=BC=8F=E4=BC=BD?= Date: Thu, 19 Oct 2023 17:49:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9F=A5=E8=AF=A2sql=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mapper/HyPartnerLineInfoMapper.xml | 29 ++++++++++++------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/coolstore-partner-dao/src/main/resources/mapper/HyPartnerLineInfoMapper.xml b/coolstore-partner-dao/src/main/resources/mapper/HyPartnerLineInfoMapper.xml index 9ded68729..6c19a5c61 100644 --- a/coolstore-partner-dao/src/main/resources/mapper/HyPartnerLineInfoMapper.xml +++ b/coolstore-partner-dao/src/main/resources/mapper/HyPartnerLineInfoMapper.xml @@ -565,9 +565,15 @@ AND hpli.create_time BETWEEN #{lineStartTime} and #{lineEndTime} - + and hoai.area_path like concat('%/',#{intentAreaName},'/%') + + and hoai.area_path like concat('%/',#{intentAreaName},'/%') + + + AND hoai.area_path is null + AND hpuinfo.accept_adjust_type = #{acceptAdjustType} @@ -580,12 +586,6 @@ AND hpli.investment_manager = #{investmentManagerId} - - AND hpuinfo.want_shop_area = #{intentAreaId} - - - AND hpuinfo.want_shop_area != #{intentAreaId} - AND hpuinfo.shop_code like concat('%',#{storeKeyword},'%') @@ -604,15 +604,19 @@ - - #{userPortraitId} + + bi.user_portrait like concat("%,", #{userPortraitId}, ",%") - - #{userPortraitId} + + bi.user_portrait not like concat("%,", #{userPortraitId}, ",%") + + bi.user_portrait is null + + #{userChannelId} @@ -623,6 +627,9 @@ #{userChannelId} + + hpuinfo.user_channel_id is null + #{developmentManager}