ZQN
2024-06-24 b4b2b63345961884c8a9dd95ca1f32c0ea1123e5
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);
            }
        }
        // 角色集合