src/main/java/org/springblade/modules/system/mapper/UserMapper.xml
@@ -491,7 +491,11 @@ </select> <!--查询当前部门名称及父级部门名称--> <select id="getDeptName" resultType="java.util.Map"> <select id="getDeptName" resultType="java.lang.String"> (select dept_name from blade_dept where id = #{deptId} and 1=1) union ( select dept_name from blade_dept where id = (select parent_id from blade_dept where id= #{deptId} and 1=1) ) </select> </mapper>