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