xiatian 5 tahun lalu
induk
melakukan
1ba43fb6ee

+ 32 - 0
examcloud-core-oe-student-dao/src/main/java/cn/com/qmth/examcloud/core/oe/student/dao/entity/ExamRecordDataEntity.java

@@ -218,6 +218,16 @@ public class ExamRecordDataEntity extends JpaEntity {
      */
     private Long batchNum;
     
+    /**
+     * 试卷题目数量(校验提交答案的order)
+     */
+    private Integer questionCount;
+    
+    /**
+     * 是否是全客观题卷  1:是   0:否
+     */
+    private Boolean isAllObjectivePaper;
+    
     public Long getId() {
         return id;
     }
@@ -508,4 +518,26 @@ public class ExamRecordDataEntity extends JpaEntity {
     public void setBaiduFaceLivenessSuccessPercent(Double baiduFaceLivenessSuccessPercent) {
         this.baiduFaceLivenessSuccessPercent = baiduFaceLivenessSuccessPercent;
     }
+
+    
+    public Integer getQuestionCount() {
+        return questionCount;
+    }
+
+    
+    public void setQuestionCount(Integer questionCount) {
+        this.questionCount = questionCount;
+    }
+
+    
+    public Boolean getIsAllObjectivePaper() {
+        return isAllObjectivePaper;
+    }
+
+    
+    public void setIsAllObjectivePaper(Boolean isAllObjectivePaper) {
+        this.isAllObjectivePaper = isAllObjectivePaper;
+    }
+    
+    
 }

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

@@ -272,6 +272,7 @@ public class ExamControlServiceImpl implements ExamControlService {
                 .createExamRecordQuestions(examRecordData.getId(), extractConfigPaper.getDefaultPaper());
         // 记录试卷题目数量
         examRecordData.setQuestionCount(examRecordQuestions.getExamQuestions().size());
+        examRecordData.setIsAllObjectivePaper(extractConfigPaper.getDefaultPaper().getFullyObjective());
         examRecordDataService.saveExamRecordDataCache(examRecordData.getId(), examRecordData);
         if (log.isDebugEnabled()) {
             log.debug("8 创建考试作答记录耗时:" + (System.currentTimeMillis() - startTime) + " ms");

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

@@ -160,6 +160,8 @@ public class ExamRecordDataServiceImpl implements ExamRecordDataService {
         bean.setSubjectiveScore(et.getSubjectiveScore());
         bean.setSuccPercent(et.getSuccPercent());
         bean.setSyncStatus(et.getSyncStatus());
+        bean.setQuestionCount(et.getQuestionCount());
+        bean.setIsAllObjectivePaper(et.getIsAllObjectivePaper());
         return bean;
     }