|
@@ -271,6 +271,9 @@ public class StudentServiceImpl implements StudentService {
|
|
if (null != studentId) {
|
|
if (null != studentId) {
|
|
count++;
|
|
count++;
|
|
s = GlobalHelper.getEntity(studentRepo, studentId, StudentEntity.class);
|
|
s = GlobalHelper.getEntity(studentRepo, studentId, StudentEntity.class);
|
|
|
|
+ } else if (StringUtils.isNotBlank(securityPhone)) {
|
|
|
|
+ count++;
|
|
|
|
+ s = studentRepo.findBySecurityPhone(securityPhone);
|
|
} else if (null == rootOrgId) {
|
|
} else if (null == rootOrgId) {
|
|
throw new StatusException("160250", "rootOrgId is null");
|
|
throw new StatusException("160250", "rootOrgId is null");
|
|
}
|
|
}
|
|
@@ -289,10 +292,6 @@ public class StudentServiceImpl implements StudentService {
|
|
StudentEntity.class);
|
|
StudentEntity.class);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- if (StringUtils.isNotBlank(securityPhone)) {
|
|
|
|
- count++;
|
|
|
|
- s = studentRepo.findBySecurityPhoneAndRootOrgId(securityPhone, rootOrgId);
|
|
|
|
- }
|
|
|
|
|
|
|
|
if (count > 1) {
|
|
if (count > 1) {
|
|
throw new StatusException("160210",
|
|
throw new StatusException("160210",
|