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(