fuliqi
2025-01-20 9e28453dba6ecf93c6c2234ba38def7c41cf12f0
system/src/main/resources/mapper/system/SysDeptMapper.xml
@@ -86,6 +86,12 @@
       <include refid="selectDeptVo"/>
      where dept_name=#{deptName} and parent_id = #{parentId} and del_flag = '0' limit 1
   </select>
    <select id="selectAncestors" resultType="java.lang.String">
      select ancestors
      from sys_user SU
      INNER JOIN sys_dept SD ON SU.dept_id = SD.dept_id
      where SU.user_id = #{userId}
   </select>
    <insert id="insertDept" parameterType="SysDept">
       insert into sys_dept(