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