zhangnaisong
2024-01-26 638c705c6a23974ff6aea3229bc297aad0683acc
ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml
@@ -158,4 +158,11 @@
      update sys_dept set del_flag = '2' where dept_id = #{deptId}
   </delete>
   <select id="getChildrenDeptIdList" resultType="java.lang.Long">
      select distinct sd.dept_id from sys_dept sd
      where sd.parent_id in
      <foreach collection="deptIdList" item="deptId" separator="," open="(" close=")">
         #{deptId}
      </foreach>
   </select>
</mapper>