mirror of
https://github.com/dromara/RuoYi-Vue-Plus.git
synced 2025-09-24 07:19:46 +08:00
update 修改时检查用户数据权限范围
This commit is contained in:
@ -42,6 +42,9 @@
|
||||
<select id="selectPageRoleList" parameterType="SysRole" resultMap="SysRoleResult">
|
||||
<include refid="selectRoleVo"/>
|
||||
where r.del_flag = '0'
|
||||
<if test="role.roleId != null and role.roleId != 0">
|
||||
AND r.role_id = #{role.roleId}
|
||||
</if>
|
||||
<if test="role.roleName != null and role.roleName != ''">
|
||||
AND r.role_name like concat('%', #{role.roleName}, '%')
|
||||
</if>
|
||||
|
@ -86,6 +86,9 @@
|
||||
sys_user u
|
||||
left join sys_dept d on u.dept_id = d.dept_id
|
||||
where u.del_flag = '0'
|
||||
<if test="user.userId != null and user.userId != 0">
|
||||
AND u.user_id = #{user.userId}
|
||||
</if>
|
||||
<if test="user.userName != null and user.userName != ''">
|
||||
AND u.user_name like concat('%', #{user.userName}, '%')
|
||||
</if>
|
||||
|
Reference in New Issue
Block a user