|
@@ -481,6 +481,7 @@ public class ExamStudentCloudServiceProvider extends ControllerSupport
|
|
|
Long rootOrgId = req.getRootOrgId();
|
|
|
Long examId = req.getExamId();
|
|
|
String examCode = req.getExamCode();
|
|
|
+ String examName = req.getExamName();
|
|
|
Long studentId = req.getStudentId();
|
|
|
String identityNumber = req.getIdentityNumber();
|
|
|
String studentName = req.getStudentName();
|
|
@@ -499,6 +500,11 @@ public class ExamStudentCloudServiceProvider extends ControllerSupport
|
|
|
if (null == examEntity) {
|
|
|
throw new StatusException("088002", "exam is not present");
|
|
|
}
|
|
|
+ } else if (StringUtils.isNotBlank(examName)) {
|
|
|
+ examEntity = examRepo.findByNameAndRootOrgId(examName, rootOrgId);
|
|
|
+ if (null == examEntity) {
|
|
|
+ throw new StatusException("088003", "exam is not present");
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
GetStudentReq gsReq = new GetStudentReq();
|
|
@@ -524,6 +530,7 @@ public class ExamStudentCloudServiceProvider extends ControllerSupport
|
|
|
info.setCourseId(cur.getCourseId());
|
|
|
info.setRootOrgId(req.getRootOrgId());
|
|
|
info.setExamId(req.getExamId());
|
|
|
+ info.setExamCode(req.getExamCode());
|
|
|
info.setExamName(examEntity.getName());
|
|
|
info.setIdentityNumber(identityNumber);
|
|
|
info.setPaperType(cur.getPaperType());
|