|
@@ -79,7 +79,7 @@ public class AuthServiceImpl implements AuthService {
|
|
|
public User login(LoginInfo loginInfo) {
|
|
|
|
|
|
String accountType = loginInfo.getAccountType();
|
|
|
- if (AccountType.COMMON_LOGIN_NAME.getCode().equals(accountType)) {
|
|
|
+ if (AccountType.STUDENT_PHONE.name().equals(accountType)) {
|
|
|
|
|
|
}
|
|
|
|
|
@@ -110,7 +110,7 @@ public class AuthServiceImpl implements AuthService {
|
|
|
User user = new User();
|
|
|
|
|
|
// 常规账户登录
|
|
|
- if (AccountType.COMMON_LOGIN_NAME.getCode().equals(accountType)) {
|
|
|
+ if (AccountType.COMMON_LOGIN_NAME.name().equals(accountType)) {
|
|
|
UserEntity userEntity = userRepo.findByRootOrgIdAndLoginName(Long.parseLong(rootOrgId),
|
|
|
accountValue);
|
|
|
if (null == userEntity) {
|
|
@@ -135,11 +135,11 @@ public class AuthServiceImpl implements AuthService {
|
|
|
} else {
|
|
|
Student student = null;
|
|
|
// 学生学号登录
|
|
|
- if (AccountType.STUDENT_CODE.getCode().equals(accountType)) {
|
|
|
+ if (AccountType.STUDENT_CODE.name().equals(accountType)) {
|
|
|
student = studentRepo.findByStudentCodeAndRootOrgId(accountValue, rootOrg.getId());
|
|
|
}
|
|
|
// 学生身份证号登录
|
|
|
- else if (AccountType.STUDENT_IDENTITY_NUMBER.getCode().equals(accountType)) {
|
|
|
+ else if (AccountType.STUDENT_IDENTITY_NUMBER.name().equals(accountType)) {
|
|
|
student = studentRepo.findByIdentityNumberAndRootOrgId(accountValue,
|
|
|
rootOrg.getId());
|
|
|
}
|