From 32b84bf6e17f06d310988167007ff9d701395da6 Mon Sep 17 00:00:00 2001 From: xhxu Date: Thu, 25 May 2023 15:40:36 +0800 Subject: [PATCH] //photoSpeak --- .../mapper/WxCUserBasicInfoMapper.xml | 26 ++++++++----------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/suimangService/src/main/resources/mapper/WxCUserBasicInfoMapper.xml b/suimangService/src/main/resources/mapper/WxCUserBasicInfoMapper.xml index 17ea2c4..dcbd9cd 100644 --- a/suimangService/src/main/resources/mapper/WxCUserBasicInfoMapper.xml +++ b/suimangService/src/main/resources/mapper/WxCUserBasicInfoMapper.xml @@ -40,7 +40,7 @@ - where wcubi.`final_tenant_id` = #{finalTenantId} + where 1=1 and wcubi.`tenant_id` like concat('%,', #{tenantId},',%') @@ -128,7 +128,6 @@ select from wx_c_user_basic_info wcubi where wcubi.id =#{id} - and wcubi.final_tenant_id = #{finalTenantId} select id, phone, nick_name, name, sex from wx_c_user_basic_info wcubi - where wcubi.`final_tenant_id` = #{finalTenantId} + where 1=1 and wcubi.id in @@ -183,7 +182,6 @@ select count(wcubi.id) from wx_c_user_basic_info wcubi where wcubi.sex =#{sex} - and wcubi.`final_tenant_id` = #{finalTenantId} and wcubi.`tenant_id` like concat('%,', #{tenantId},',%') @@ -198,7 +196,7 @@ select count(wcubi.id) from wx_c_user_basic_info wcubi - where wcubi.`final_tenant_id` = #{finalTenantId} + where 1=1 and wcubi.`tenant_id` like concat('%,', #{tenantId},',%') @@ -260,7 +258,6 @@ select from wx_c_user_basic_info wcubi where wcubi.status=0 - and wcubi.`final_tenant_id` = #{finalTenantId} and wcubi.`tenant_id` like concat('%,', #{tenantId},',%') @@ -281,7 +278,6 @@ select from wx_c_user_basic_info wcubi where wcubi.status = 0 - and wcubi.`final_tenant_id` = #{finalTenantId} and wcubi.`tenant_id` like concat('%,', #{tenantId},',%') @@ -293,7 +289,7 @@ SELECT count(wcubi.id) FROM wx_c_user_basic_info wcubi - where wcubi.`final_tenant_id` = #{finalTenantId} + where 1=1 and wcubi.`tenant_id` like concat('%,', #{tenantId},',%') @@ -559,7 +555,7 @@