|
@@ -729,10 +729,10 @@ public class TIeInvigilateController {
|
|
TEExamMarkLog teExamMarkLog = teExamMarkLogService.findByExamRecordId(examRecordId);
|
|
TEExamMarkLog teExamMarkLog = teExamMarkLogService.findByExamRecordId(examRecordId);
|
|
TOeExamRecord tOeExamRecord = tOeExamRecordService.getById(examRecordId);
|
|
TOeExamRecord tOeExamRecord = tOeExamRecordService.getById(examRecordId);
|
|
Objects.requireNonNull(tOeExamRecord, ExceptionResultEnum.NOT_FOUND_EXAM_RECORD.getMessage());
|
|
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)) {
|
|
if (Objects.isNull(teExamMarkLog)) {
|
|
Objects.requireNonNull(tOeExamRecord, ExceptionResultEnum.NOT_FOUND_EXAM_RECORD.getMessage());
|
|
Objects.requireNonNull(tOeExamRecord, ExceptionResultEnum.NOT_FOUND_EXAM_RECORD.getMessage());
|
|
teExamMarkLog = new TEExamMarkLog(tOeExamRecord, tbUser.getId());
|
|
teExamMarkLog = new TEExamMarkLog(tOeExamRecord, tbUser.getId());
|