Browse Source

用户新增隐藏字段

fgd 1 year ago
parent
commit
c0345c094b
1 changed files with 3 additions and 0 deletions
  1. 3 0
      ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml

+ 3 - 0
ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml

@@ -103,6 +103,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 		sys_user u
 		left join sys_dept d on u.dept_id = d.dept_id
 		where u.del_flag = '0'
+		  and u.is_show = '1'
 		<if test="userId != null and userId != 0">
 			AND u.user_id = #{userId}
 		</if>
@@ -158,6 +159,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 		left join sys_user_role ur on u.user_id = ur.user_id
 		left join sys_role r on r.role_id = ur.role_id
 		where u.del_flag = '0' and r.role_id = #{roleId}
+		and u.is_show = '1'
 		<if test="userName != null and userName != ''">
 			AND u.user_name like concat('%', #{userName}, '%')
 		</if>
@@ -176,6 +178,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 		left join sys_user_role ur on u.user_id = ur.user_id
 		left join sys_role r on r.role_id = ur.role_id
 		where u.del_flag = '0' and (r.role_id != #{roleId} or r.role_id IS NULL)
+		and u.is_show = '1'
 		and u.user_id not in (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})
 		<if test="userName != null and userName != ''">