project-admin/src/main/java/com/project/admin/controller/system/SysProfileController.java
@@ -56,8 +56,10 @@ user.setDept(sysDept); } else { SysDept sysDept = deptService.selectDeptById(userService.getById(user.getUserId()).getDeptId()); sysDept.setDeptName(deptService.getDeptAllName(sysDept.getDeptId())); user.setDept(sysDept); if (sysDept!=null){ sysDept.setDeptName(deptService.getDeptAllName(sysDept.getDeptId())); user.setDept(sysDept); } } // 角色集合