mirror of
https://github.com/dromara/RuoYi-Vue-Plus.git
synced 2025-11-28 03:29:25 +08:00
update 重构用户 角色 部门 菜单的数据权限设计逻辑更符合实际业务场景与优化查询写法提高效率
This commit is contained in:
@@ -4,10 +4,4 @@
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="org.dromara.system.mapper.SysUserRoleMapper">
|
||||
|
||||
<select id="selectUserIdsByRoleId" resultType="Long">
|
||||
select u.user_id from sys_user u
|
||||
inner join sys_user_role sur
|
||||
on u.user_id = sur.user_id and sur.role_id = #{roleId}
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user