Browse Source

move package CallType

deason 2 năm trước cách đây
mục cha
commit
8f9cab0dd2

+ 3 - 0
examcloud-core-oe-student-service/src/main/java/cn/com/qmth/examcloud/core/oe/student/service/impl/ExamControlServiceImpl.java

@@ -2168,6 +2168,9 @@ public class ExamControlServiceImpl implements ExamControlService {
         data.setFaceStrangerCount(examRecordData.getFaceStrangerCount());
         data.setFaceSuccessPercent(examRecordData.getFaceSuccessPercent());
 
+        data.setRandomPaper(examRecordData.getRandomPaper());
+        data.setPaperScore(examRecordData.getPaperScore());
+
         data.setTotalScore(examRecordData.getTotalScore());
         data.setObjectiveScore(examRecordData.getObjectiveScore());
         data.setObjectiveAccuracy(examRecordData.getObjectiveAccuracy());

+ 8 - 2
examcloud-core-oe-student-service/src/main/java/cn/com/qmth/examcloud/core/oe/student/service/impl/ExamRecordDataServiceImpl.java

@@ -1,5 +1,6 @@
 package cn.com.qmth.examcloud.core.oe.student.service.impl;
 
+import cn.com.qmth.examcloud.api.commons.enums.CallType;
 import cn.com.qmth.examcloud.api.commons.enums.ExamSpecialSettingsType;
 import cn.com.qmth.examcloud.api.commons.enums.ExamStageStartExamStatus;
 import cn.com.qmth.examcloud.api.commons.enums.ExamType;
@@ -112,8 +113,10 @@ public class ExamRecordDataServiceImpl implements ExamRecordDataService {
 
         examRecordData.setCourseId(courseBean.getId());
         examRecordData.setBasePaperId(basePaperId);
-
         examRecordData.setPaperType(examingSession.getPaperType());
+        
+        examRecordData.setRandomPaper(CallType.RANDOM_PAPER.name().equals(examBean.getCallType()));
+        examRecordData.setPaperScore(0d);//todo 试卷总分
 
         examRecordData.setEnterExamTime(new Date());
         examRecordData.setIsContinued(false);
@@ -136,7 +139,7 @@ public class ExamRecordDataServiceImpl implements ExamRecordDataService {
         if (null != examStageId) {
             if (examBean.getSpecialSettingsEnabled()
                     && ExamSpecialSettingsType.STAGE_BASED == examBean.getSpecialSettingsType()) {
-                //更改考务中的考试状态 TODO 高并发下此处可能会影响开考的性能
+                //更改考务中的考试状态 高并发下此处可能会影响开考的性能
                 ModifyExamStageStartExamStatusReq req = new ModifyExamStageStartExamStatusReq();
                 req.setExamStageId(examStageId);
                 req.setExamStageStartExamStatus(ExamStageStartExamStatus.STARTED.name());
@@ -189,6 +192,9 @@ public class ExamRecordDataServiceImpl implements ExamRecordDataService {
         bean.setBasePaperId(entity.getBasePaperId());
         bean.setPaperType(entity.getPaperType());
 
+        bean.setRandomPaper(entity.getRandomPaper());
+        bean.setPaperScore(entity.getPaperScore());
+
         bean.setStartTime(entity.getStartTime());
         bean.setEndTime(entity.getEndTime());
         bean.setEnterExamTime(entity.getEnterExamTime());