wangliang 10 сар өмнө
parent
commit
8931d605f1

+ 4 - 4
themis-admin/src/main/java/com/qmth/themis/admin/api/TIeInvigilateController.java

@@ -729,10 +729,10 @@ public class TIeInvigilateController {
         TEExamMarkLog teExamMarkLog = teExamMarkLogService.findByExamRecordId(examRecordId);
         TOeExamRecord tOeExamRecord = tOeExamRecordService.getById(examRecordId);
         Objects.requireNonNull(tOeExamRecord, ExceptionResultEnum.NOT_FOUND_EXAM_RECORD.getMessage());
-        if (tOeExamRecord.getStatus() == ExamRecordStatusEnum.FINISHED
-                || tOeExamRecord.getStatus() == ExamRecordStatusEnum.PERSISTED) {
-            throw new BusinessException("考试已结束无法标记");
-        }
+        //        if (tOeExamRecord.getStatus() == ExamRecordStatusEnum.FINISHED
+        //                || tOeExamRecord.getStatus() == ExamRecordStatusEnum.PERSISTED) {
+        //            throw new BusinessException("考试已结束无法标记");
+        //        }
         if (Objects.isNull(teExamMarkLog)) {
             Objects.requireNonNull(tOeExamRecord, ExceptionResultEnum.NOT_FOUND_EXAM_RECORD.getMessage());
             teExamMarkLog = new TEExamMarkLog(tOeExamRecord, tbUser.getId());