From d22fde0098b8f7298a9ec8c1e62ae121d028582c Mon Sep 17 00:00:00 2001 From: wangweijia <495720349@qq.com> Date: Wed, 29 Apr 2020 13:48:54 +0800 Subject: [PATCH] =?UTF-8?q?sql=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/mapper/OpCustomerDOMapper.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/resources/mapper/OpCustomerDOMapper.xml b/src/main/resources/mapper/OpCustomerDOMapper.xml index d2a3c32..cee0ba0 100644 --- a/src/main/resources/mapper/OpCustomerDOMapper.xml +++ b/src/main/resources/mapper/OpCustomerDOMapper.xml @@ -9,10 +9,10 @@ t3.name as vipName,t3.phone as vipPhone, t5.staff_code as sellerCode, t1.create_time as createTime from op_seller_customer_relation t1 left join poi_store t0 on t0.id = t1.store_id - left join poi_store_staff t5 ON t5.store_id = t0.id + left join poi_store_staff t5 ON t5.store_id = t0.id and t1.user_id = t5.id LEFT JOIN op_customer t2 ON t2.id = t1.customer_id LEFT JOIN op_vip t3 ON t3.id = t2.member_id - LEFT JOIN privilage_user t4 ON t4.id = t5.user_id where 1 = 1 + LEFT JOIN privilage_user t4 ON t4.id = t5.user_id and t1.store_id in