buildQueryWrapper修改

This commit is contained in:
Wang.Huan
2025-03-21 14:13:42 +08:00
parent 9401267fb9
commit c81a92e81d
3 changed files with 9 additions and 3 deletions

View File

@@ -108,7 +108,7 @@
</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 cast(#{deptId} as
varchar) = any(string_to_array(ancestors,,)) ))
varchar) = any(string_to_array(ancestors,',')) ))
</if>
<!-- 数据范围过滤 -->
${params.dataScope}