liyong
2026-01-26 8d258e0b07b94dc7c4b1cc9cadfbf132d6f05b8e
ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml
@@ -75,11 +75,11 @@
   </select>
   
   <select id="selectChildrenDeptById" parameterType="Long" resultMap="SysDeptResult">
      select * from sys_dept where find_in_set(#{deptId}, ancestors)
      select * from sys_dept where #{deptId} = ANY(string_to_array(ancestors, ',')::bigint[])
   </select>
   
   <select id="selectNormalChildrenDeptById" parameterType="Long" resultType="int">
      select count(*) from sys_dept where status = 0 and del_flag = '0' and find_in_set(#{deptId}, ancestors)
      select count(*) from sys_dept where status = 0 and del_flag = '0' and #{deptId} = ANY(string_to_array(ancestors, ',')::bigint[])
   </select>
   
   <select id="checkDeptNameUnique" resultMap="SysDeptResult">