system/src/main/resources/mapper/system/SysDeptMapper.xml
@@ -94,7 +94,7 @@ where dept_name=#{deptName} and parent_id = #{parentId} and del_flag = '0' limit 1 </select> <select id="selectAncestors" resultType="java.lang.String"> select ancestors select SD.ancestors from sys_user SU INNER JOIN sys_dept SD ON SU.dept_id = SD.dept_id where SU.user_id = #{userId}