Browse Source

全客观题bug fix

lideyin 5 năm trước cách đây
mục cha
commit
f42e8c6468

+ 5 - 2
examcloud-core-oe-admin-service/src/main/java/cn/com/qmth/examcloud/core/oe/admin/service/impl/ExamRecordForMarkingServiceImpl.java

@@ -1,5 +1,6 @@
 package cn.com.qmth.examcloud.core.oe.admin.service.impl;
 
+import cn.com.qmth.examcloud.commons.exception.StatusException;
 import cn.com.qmth.examcloud.core.oe.admin.dao.ExamRecordDataRepo;
 import cn.com.qmth.examcloud.core.oe.admin.dao.ExamRecordForMarkingRepo;
 import cn.com.qmth.examcloud.core.oe.admin.dao.entity.ExamRecordDataEntity;
@@ -290,11 +291,13 @@ public class ExamRecordForMarkingServiceImpl implements ExamRecordForMarkingServ
      * @param examRecordDataId
      */
     @Override
-    public void saveExamRecordForMarking(Long examRecordDataId,Double objectiveScore) {
+    public void saveExamRecordForMarking(Long examRecordDataId, Double objectiveScore) {
         ExamRecordDataEntity examRecordData =
                 GlobalHelper.getEntity(examRecordDataRepo, examRecordDataId, ExamRecordDataEntity.class);
+
         //全客观题卷
-        if (null != examRecordData.getIsAllObjectivePaper() && examRecordData.getIsAllObjectivePaper()) {
+        if (null == examRecordData.getIsAllObjectivePaper() ||
+                (null != examRecordData.getIsAllObjectivePaper() && examRecordData.getIsAllObjectivePaper())) {
             return;
         }
         //违纪