处理用户管理页面报错:FIND_IN_SET": 标识符无效

master
baogq 3 years ago
parent 509dd598ab
commit b8c37474b0

@ -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}

Loading…
Cancel
Save