|
@@ -117,6 +117,8 @@ public class AuthServiceImpl implements AuthService {
|
|
|
}
|
|
|
|
|
|
User user = new User();
|
|
|
+ user.setRootOrgId(rootOrg.getId());
|
|
|
+ user.setRootOrgName(rootOrg.getName());
|
|
|
Long orgId = null;
|
|
|
|
|
|
// 常规账户登录
|
|
@@ -135,7 +137,6 @@ public class AuthServiceImpl implements AuthService {
|
|
|
user.setUserId(userEntity.getId());
|
|
|
user.setUserType(UserType.COMMON);
|
|
|
user.setDisplayName(userEntity.getLoginName() + " (" + userEntity.getName() + ")");
|
|
|
- user.setRootOrgId(userEntity.getRootOrgId());
|
|
|
orgId = userEntity.getOrgId();
|
|
|
|
|
|
List<Role> roleList = getUserRoles(userEntity.getId());
|
|
@@ -164,7 +165,6 @@ public class AuthServiceImpl implements AuthService {
|
|
|
|
|
|
user.setUserId(student.getId());
|
|
|
user.setUserType(UserType.STUDENT);
|
|
|
- user.setRootOrgId(student.getRootOrgId());
|
|
|
user.setDisplayName(student.getName());
|
|
|
orgId = student.getOrgId();
|
|
|
|