wangwei 6 년 전
부모
커밋
b13eb6cb39

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

@@ -190,25 +190,29 @@ public class ExamStudentCloudServiceProvider extends ControllerSupport
 
 			if (null == finded) {
 				ExamStudentEntity one = new ExamStudentEntity();
+				one.setExamId(examId2);
+				one.setEnable(es.getEnable());
+				one.setRootOrgId(es.getRootOrgId());
+
 				one.setCourseId(es.getCourseId());
 				one.setCourseCode(es.getCourseCode());
 				one.setCourseLevel(es.getCourseLevel());
 				one.setCourseName(es.getCourseName());
 
-				one.setEnable(es.getEnable());
-				one.setExamId(examId2);
+				one.setOrgId(es.getOrgId());
+				one.setOrgCode(es.getOrgCode());
+
+				one.setName(es.getName());
+				one.setStudentCode(es.getStudentCode());
+				one.setStudentId(es.getStudentId());
+				one.setIdentityNumber(es.getIdentityNumber());
+
 				one.setExamSite(es.getExamSite());
 				one.setGrade(es.getGrade());
-				one.setIdentityNumber(es.getIdentityNumber());
-				one.setInfoCollector(es.getInfoCollector());
-				one.setName(es.getName());
-				one.setOrgId(es.getOrgId());
 				one.setPaperType(es.getPaperType());
 				one.setRemark(es.getRemark());
-				one.setRootOrgId(es.getRootOrgId());
 				one.setSpecialtyName(es.getSpecialtyName());
-				one.setStudentCode(es.getStudentCode());
-				one.setStudentId(es.getStudentId());
+				one.setInfoCollector(es.getInfoCollector());
 
 				ExamStudentEntity saved = examStudentRepo.save(one);
 				examStudentIds.add(saved.getId());