From 7caffa4eb9153028c57129a010cfc3a6bed9be05 Mon Sep 17 00:00:00 2001 From: fengshuonan Date: Fri, 21 May 2021 17:27:34 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=907.0.4=E3=80=91sql=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E8=BD=AC=E4=B9=89=E7=AC=A6=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../kernel/system/modular/user/mapper/mapping/SysUserMapper.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel-s-system/system-business-user/src/main/java/cn/stylefeng/roses/kernel/system/modular/user/mapper/mapping/SysUserMapper.xml b/kernel-s-system/system-business-user/src/main/java/cn/stylefeng/roses/kernel/system/modular/user/mapper/mapping/SysUserMapper.xml index b423dd376..9d3e3dd49 100644 --- a/kernel-s-system/system-business-user/src/main/java/cn/stylefeng/roses/kernel/system/modular/user/mapper/mapping/SysUserMapper.xml +++ b/kernel-s-system/system-business-user/src/main/java/cn/stylefeng/roses/kernel/system/modular/user/mapper/mapping/SysUserMapper.xml @@ -33,7 +33,7 @@ and suser.status_flag like concat('%',#{sysUserRequest.statusFlag},'%') - and suorg.org_id in(select org_id from hr_organization where org_pids like CONCAT('%[',#{sysUserRequest.orgId},']%') or org_id=#{sysUserRequest.orgId}) + and suorg.org_id in(select org_id from hr_organization where org_pids like CONCAT('%$[',#{sysUserRequest.orgId},'$]%') or org_id=#{sysUserRequest.orgId}) escape '$' and suser.del_flag = 'N' order by suser.create_time desc