|
@@ -107,6 +107,10 @@ public class AuthServiceImpl implements AuthService {
|
|
|
rootOrg.getId());
|
|
|
}
|
|
|
|
|
|
+ if (null == student) {
|
|
|
+ throw new StatusException("B-001110", "学生不存在");
|
|
|
+ }
|
|
|
+
|
|
|
user.setUserType(UserType.STUDENT.getCode());
|
|
|
user.setStudentId(student.getId());
|
|
|
user.setStudentCode(student.getStudentCode());
|