|
@@ -101,6 +101,8 @@ public class StudentCloudServiceProvider extends ControllerSupport implements St
|
|
|
Long studentId = req.getStudentId();
|
|
|
Long rootOrgId = req.getRootOrgId();
|
|
|
String identityNumber = req.getIdentityNumber();
|
|
|
+ String studentCode = req.getStudentCode();
|
|
|
+ String securityPhone = req.getSecurityPhone();
|
|
|
|
|
|
StudentEntity student = null;
|
|
|
if (null != studentId) {
|
|
@@ -110,9 +112,6 @@ public class StudentCloudServiceProvider extends ControllerSupport implements St
|
|
|
if (null == rootOrgId) {
|
|
|
throw new StatusException("150000", "rootOrgId is null");
|
|
|
}
|
|
|
- if (StringUtils.isBlank(identityNumber)) {
|
|
|
- throw new StatusException("150004", "identityNumber is null");
|
|
|
- }
|
|
|
|
|
|
OrgEntity rootOrg = GlobalHelper.getEntity(orgRepo, rootOrgId, OrgEntity.class);
|
|
|
if (null == rootOrg) {
|
|
@@ -122,7 +121,15 @@ public class StudentCloudServiceProvider extends ControllerSupport implements St
|
|
|
throw new StatusException("150002", "机构错误");
|
|
|
}
|
|
|
|
|
|
- student = studentRepo.findByIdentityNumberAndRootOrgId(identityNumber, rootOrgId);
|
|
|
+ if (StringUtils.isNotBlank(identityNumber)) {
|
|
|
+ student = studentRepo.findByIdentityNumberAndRootOrgId(identityNumber, rootOrgId);
|
|
|
+ } else if (StringUtils.isNotBlank(studentCode)) {
|
|
|
+ student = studentRepo.findByStudentCodeAndRootOrgId(studentCode, rootOrgId);
|
|
|
+ } else if (StringUtils.isNotBlank(securityPhone)) {
|
|
|
+ student = studentRepo.findBySecurityPhoneAndRootOrgId(securityPhone, rootOrgId);
|
|
|
+ } else {
|
|
|
+ throw new StatusException("150010", "参数不足");
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
if (null == student) {
|