From 413674820c50153c95682efa87925575290d08dc Mon Sep 17 00:00:00 2001 From: sxu <602087911@qq.com> Date: Tue, 3 Dec 2024 17:21:06 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=9A=E8=BF=87roleIds=E8=8E=B7=E5=8F=96user?= =?UTF-8?q?List?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/mapper/system/SysUserMapper.xml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bonus-modules/bonus-system/src/main/resources/mapper/system/SysUserMapper.xml b/bonus-modules/bonus-system/src/main/resources/mapper/system/SysUserMapper.xml index c7bbc74..0896365 100644 --- a/bonus-modules/bonus-system/src/main/resources/mapper/system/SysUserMapper.xml +++ b/bonus-modules/bonus-system/src/main/resources/mapper/system/SysUserMapper.xml @@ -134,6 +134,12 @@ AND (u.dept_id = #{deptId} OR u.dept_id IN ( SELECT t.dept_id FROM sys_dept t WHERE find_in_set(#{deptId}, ancestors) )) + + and ur.role_id in + + #{item} + + GROUP BY u.user_id