|
|
@ -81,7 +81,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
AND u.create_time <= to_date(#{params.endTime},'yyyy-MM-dd HH24:mi:ss')
|
|
|
|
AND u.create_time <= to_date(#{params.endTime},'yyyy-MM-dd HH24:mi:ss')
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="deptId != null and deptId != 0">
|
|
|
|
<if test="deptId != null and deptId != 0">
|
|
|
|
AND (u.dept_id = #{deptId} OR u.dept_id IN ( SELECT t.dept_id FROM sys_dept_wms t WHERE FIND_IN_SET (#{deptId}, ancestors) <![CDATA[ <> ]]> 0 ))
|
|
|
|
AND (u.dept_id = #{deptId} OR u.dept_id IN ( SELECT t.dept_id FROM sys_dept_wms t WHERE instr (#{deptId}, ancestors) <![CDATA[ <> ]]> 0 ))
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<!-- 数据范围过滤 -->
|
|
|
|
<!-- 数据范围过滤 -->
|
|
|
|
${params.dataScope}
|
|
|
|
${params.dataScope}
|
|
|
|