修改用户列表查询
parent
45af87f1f6
commit
4176ed29fc
|
@ -103,7 +103,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
AND date_format(u.create_time,'%y%m%d') <= date_format(#{params.endTime},'%y%m%d')
|
||||
</if>
|
||||
<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) ))
|
||||
AND (u.dept_id = #{deptId} OR u.user_id IN (
|
||||
select user_id from sys_user_com where com_id in (
|
||||
SELECT t.dept_id FROM sys_dept t WHERE find_in_set(#{deptId}, ancestors))
|
||||
))
|
||||
</if>
|
||||
<!-- 数据范围过滤 -->
|
||||
${params.dataScope}
|
||||
|
|
Loading…
Reference in New Issue