|
@@ -8,6 +8,7 @@ import org.apache.commons.collections.CollectionUtils;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
@@ -71,14 +72,14 @@ public class ExamStudentCloudServiceProvider extends ControllerSupport
|
|
|
@ApiOperation(value = "保存考生")
|
|
|
@PostMapping("saveExamStudent")
|
|
|
@Override
|
|
|
- public SaveExamStudentResp saveExamStudent(SaveExamStudentReq req) {
|
|
|
+ public SaveExamStudentResp saveExamStudent(@RequestBody SaveExamStudentReq req) {
|
|
|
|
|
|
Long rootOrgId = req.getRootOrgId();
|
|
|
GetOrgReq getOrgReq = new GetOrgReq();
|
|
|
getOrgReq.setOrgId(rootOrgId);
|
|
|
GetOrgResp getOrgResp = orgCloudService.getOrg(getOrgReq);
|
|
|
OrgBean rootOrg = getOrgResp.getOrg();
|
|
|
- if (!rootOrg.getParentId().equals(0L)) {
|
|
|
+ if (null != rootOrg.getParentId()) {
|
|
|
throw new StatusException("E-100001", "rootOrgId is wrong");
|
|
|
}
|
|
|
|
|
@@ -104,10 +105,6 @@ public class ExamStudentCloudServiceProvider extends ControllerSupport
|
|
|
String studentCode = req.getStudentCode();
|
|
|
String identityNumber = req.getIdentityNumber();
|
|
|
|
|
|
- if (StringUtils.isBlank(studentCode)) {
|
|
|
- throw new StatusException("E-100002", "studentCode is null");
|
|
|
- }
|
|
|
-
|
|
|
if (StringUtils.isBlank(identityNumber)) {
|
|
|
throw new StatusException("E-100003", "identityNumber is null");
|
|
|
}
|