buhuazhen
2026-03-06 b7eb6e87b4d88e5a419b64e3e3d0e5dc1be0f48f
src/main/resources/mapper/system/SysDeptMapper.xml
@@ -52,7 +52,7 @@
      order by d.parent_id, d.order_num
   </select>
    
    <select id="selectDeptListByRoleId" resultType="Long">
    <select id="selectDeptListByRoleId" resultType="java.lang.Long">
      select d.dept_id
      from sys_dept d
            left join sys_role_dept rd on d.dept_id = rd.dept_id
@@ -165,7 +165,7 @@
      update sys_dept set del_flag = '2' where dept_id = #{deptId}
   </delete>
   <select id="maxLevelDeptId">
   <select id="maxLevelDeptId" resultType="java.lang.Long">
      WITH RECURSIVE DepartmentHierarchy AS (
         SELECT dept_id, parent_id
         FROM sys_dept