From d637f03067bfb71c38a52b3fc243a41f279e6e82 Mon Sep 17 00:00:00 2001 From: 疯狂的狮子Li <15040126243@163.com> Date: 星期一, 11 四月 2022 11:58:44 +0800 Subject: [PATCH] Merge branch 'master' of https://gitee.com/y_project/RuoYi-Vue into dev --- ruoyi-system/src/main/resources/mapper/system/SysUserRoleMapper.xml | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/ruoyi-system/src/main/resources/mapper/system/SysUserRoleMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysUserRoleMapper.xml index 3d41141..63a846d 100644 --- a/ruoyi-system/src/main/resources/mapper/system/SysUserRoleMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/SysUserRoleMapper.xml @@ -8,5 +8,10 @@ <result property="userId" column="user_id"/> <result property="roleId" column="role_id"/> </resultMap> + <select id="selectUserIdsByRoleId" resultType="Long"> + select u.user_id from sys_user u + inner join sys_user_role ur + on u.user_id = ur.user_id and ur.role_id = #{roleId} + </select> -</mapper> \ No newline at end of file +</mapper> -- Gitblit v1.9.3