Sfoglia il codice sorgente

ExamBoss保存考试记录id

xiatian 5 anni fa
parent
commit
da2336e714

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

@@ -291,6 +291,10 @@ public class ExamControlServiceImpl implements ExamControlService {
         if (eb == null) {
             throw new StatusException("008001", "ExamBoss is not created");
         }
+        if(eb.getExamRecordDataIds()==null) {
+            eb.setExamRecordDataIds(new ArrayList<Long>());
+        }
+        eb.getExamRecordDataIds().add(examRecordData.getId());
         eb.setStartCount(eb.getStartCount() + 1);
         examBossService.saveExamBoss(examStudentId, eb);