‘liusuyi’
2023-07-28 b0b09870e7bfd3d3cda7a38cc924e86c633938e5
ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml
@@ -110,6 +110,9 @@
            AND u.create_time <= to_timestamp(#{params.endTime},'yyyy-MM-DD')
        </if>
        <if test="appUserType!=null and appUserType!=''"> AND u.app_user_type = #{appUserType}</if>
        <if test="deptId != null ">and (d.dept_id = #{deptId} OR d.dept_id IN ( SELECT t.dept_id FROM sys_dept t
            WHERE cast(#{deptId} as varchar) = any(string_to_array(ancestors,',')) ))
        </if>
        <!-- 数据范围过滤 -->
        ${params.dataScope}
    </select>