diff --git a/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml index d339060..c9124ce 100644 --- a/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml @@ -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.dept_id = #{deptId} OR u.dept_id IN ( SELECT t.dept_id FROM sys_dept_wms t WHERE FIND_IN_SET (#{deptId}, ancestors) ]]> 0 )) + AND (u.dept_id = #{deptId} OR u.dept_id IN ( SELECT t.dept_id FROM sys_dept_wms t WHERE instr (#{deptId}, ancestors) ]]> 0 )) ${params.dataScope}