luohairen
2024-12-31 0c35c75ada3bb2a0a4d2843d20445af524f0e357
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(