Ver código fonte

获取用户列表查询增加字段

王苗苗 7 meses atrás
pai
commit
5a3c6d3af0

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

@@ -85,6 +85,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 		<if test="deptId != null and deptId != 0">
 			AND (u.dept_id = #{deptId} OR u.dept_id IN ( SELECT t.dept_id FROM sys_dept t WHERE find_in_set(#{deptId}, ancestors) ))
 		</if>
+		<if test="type != null">
+			AND u.type = #{type}
+		</if>
 		<!-- 数据范围过滤 -->
 		${params.dataScope}
 	</select>