wangliang 4 سال پیش
والد
کامیت
8e0b53500c
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      themis-business/src/main/java/com/qmth/themis/business/service/impl/TEExamServiceImpl.java

+ 2 - 2
themis-business/src/main/java/com/qmth/themis/business/service/impl/TEExamServiceImpl.java

@@ -370,7 +370,7 @@ public class TEExamServiceImpl extends ServiceImpl<TEExamMapper, TEExam> impleme
         }
         Boolean finished = toeExamRecordService.examBreakLogic(recordId, false);
         if (finished) {
-            return ret;
+            throw new BusinessException("考试已结束");
         }
         ExamCacheBean exam = getExamCacheBeanNative(es.getExamId());
         Long activityId = es.getExamActivityId();
@@ -877,7 +877,7 @@ public class TEExamServiceImpl extends ServiceImpl<TEExamMapper, TEExam> impleme
         ExamResumeBean ret = null;
         Boolean finished = toeExamRecordService.examBreakLogic(recordId, false);
         if (finished) {
-            return ret;
+            throw new BusinessException("考试已结束");
         }
         ret = new ExamResumeBean();
         ret.setDurationSeconds(ExamRecordCacheUtil.getDurationSeconds(recordId));