From 2e63c880f4f87d4c205e987d7a3b01733e5f6c2f Mon Sep 17 00:00:00 2001 From: wangxy <1481820854@qq.com> Date: Thu, 14 Aug 2025 11:44:28 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=90=E7=BB=B4=E4=BA=BA=E5=91=98=E7=94=B3?= =?UTF-8?q?=E8=AF=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml index bdd1a54..b998d27 100644 --- a/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml @@ -249,7 +249,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - AND (u.dept_id = #{warmFlowInteractiveTypeVo.deptId} OR u.dept_id IN ( SELECT t.dept_id FROM ${prefix}sys_dept t WHERE find_in_set(#{warmFlowInteractiveTypeVo.deptId}, ancestors) )) + AND (u.dept_id = #{warmFlowInteractiveTypeVo.deptId} OR u.dept_id IN ( SELECT t.dept_id FROM ${prefix}sys_dept t WHERE CAST(#{warmFlowInteractiveTypeVo.deptId} AS text) = ANY(string_to_array(ancestors, ',')) )) ${warmFlowInteractiveTypeVo.params.dataScope}