WANG 6 jaren geleden
bovenliggende
commit
5cf2f0ec96

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

@@ -206,45 +206,49 @@ public class ExamStudentCloudServiceProvider extends ControllerSupport
 			ExamStudentEntity finded = examStudentRepo.findByExamIdAndStudentIdAndCourseId(examId2,
 					es.getStudentId(), es.getCourseId());
 
-			if (null == finded) {
-				ExamStudentInfo one = new ExamStudentInfo();
-				one.setExamId(examId2);
-				one.setRootOrgId(es.getRootOrgId());
-
-				one.setCourseId(es.getCourseId());
-				one.setCourseCode(es.getCourseCode());
-				one.setCourseLevel(es.getCourseLevel());
-				one.setCourseName(es.getCourseName());
-
-				one.setOrgId(es.getOrgId());
-				one.setOrgCode(es.getOrgCode());
-
-				one.setStudentName(es.getName());
-				one.setStudentCode(es.getStudentCode());
-				one.setStudentId(es.getStudentId());
-				one.setIdentityNumber(es.getIdentityNumber());
-
-				one.setExamSite(es.getExamSite());
-				one.setGrade(es.getGrade());
-				one.setPaperType(es.getPaperType());
-				one.setRemark(es.getRemark());
-				one.setSpecialtyName(es.getSpecialtyName());
-				one.setInfoCollector(es.getInfoCollector());
-
-				one.setExt1(es.getExt1());
-				one.setExt2(es.getExt2());
-				one.setExt3(es.getExt3());
-				one.setExt4(es.getExt4());
-				one.setExt5(es.getExt5());
-
-				ExamStudentInfo saved = examStudentService.saveExamStudent(one);
-				examStudentIds.add(saved.getId());
+			if (null != finded) {
+				continue;
 			}
 
+			ExamStudentInfo one = new ExamStudentInfo();
+			one.setExamId(examId2);
+			one.setRootOrgId(es.getRootOrgId());
+
+			one.setCourseId(es.getCourseId());
+			one.setCourseCode(es.getCourseCode());
+			one.setCourseLevel(es.getCourseLevel());
+			one.setCourseName(es.getCourseName());
+
+			one.setOrgId(es.getOrgId());
+			one.setOrgCode(es.getOrgCode());
+
+			one.setStudentName(es.getName());
+			one.setStudentCode(es.getStudentCode());
+			one.setStudentId(es.getStudentId());
+			one.setIdentityNumber(es.getIdentityNumber());
+
+			one.setExamSite(es.getExamSite());
+			one.setGrade(es.getGrade());
+			one.setPaperType(es.getPaperType());
+			one.setRemark(es.getRemark());
+			one.setSpecialtyName(es.getSpecialtyName());
+			one.setInfoCollector(es.getInfoCollector());
+
+			one.setExt1(es.getExt1());
+			one.setExt2(es.getExt2());
+			one.setExt3(es.getExt3());
+			one.setExt4(es.getExt4());
+			one.setExt5(es.getExt5());
+
+			ExamStudentInfo saved = examStudentService.saveExamStudent(one);
+			examStudentIds.add(saved.getId());
+
 			next = es.getId();
 		}
 
-		if (next != start) {
+		if (next != start)
+
+		{
 			next++;
 		}