wangwei 7 years ago
parent
commit
08da2063c7

+ 3 - 0
examcloud-core-examwork-api-provider/src/main/java/cn/com/qmth/examcloud/core/examwork/api/provider/ExamCloudServiceProvider.java

@@ -56,6 +56,9 @@ public class ExamCloudServiceProvider extends ControllerSupport implements ExamC
 	@Override
 	public GetExamResp getExam(@RequestBody GetExamReq req) {
 		Exam exam = examService.findExamByNameAndRootOrgId(req.getName(), req.getRootOrgId());
+		if (null == exam) {
+			throw new StatusException("E-002002", "考试不存在");
+		}
 		GetExamResp examResp = new GetExamResp();
 		examResp.setId(exam.getId());
 		examResp.setName(exam.getName());

+ 12 - 1
examcloud-core-examwork-api-provider/src/main/java/cn/com/qmth/examcloud/core/examwork/api/provider/ExamStudentCloudServiceProvider.java

@@ -60,9 +60,20 @@ public class ExamStudentCloudServiceProvider extends ControllerSupport
 	public SaveExamStudentResp saveExamStudent(@RequestBody SaveExamStudentReq req) {
 		trim(req);
 		ExamStudentInfo info = new ExamStudentInfo();
-
 		info.setCourseCode(req.getCourseCode());
+		info.setCourseName(req.getCourseName());
 		info.setCourseId(req.getCourseId());
+		info.setRootOrgId(req.getRootOrgId());
+		info.setExamId(req.getExamId());
+		info.setIdentityNumber(req.getIdentityNumber());
+		info.setPaperType(req.getPaperType());
+		info.setRootOrgId(req.getRootOrgId());
+		info.setStudentCode(req.getStudentCode());
+		info.setStudentName(req.getStudentName());
+		info.setInfoCollector(req.getInfoCollector());
+		info.setGrade(req.getGrade());
+		info.setExamSite(req.getExamSite());
+		info.setSpecialtyName(req.getSpecialtyName());
 
 		ExamStudentInfo saved = examStudentService.saveExamStudent(info);