lideyin 5 年之前
父节点
当前提交
f51701af2a

+ 1 - 1
examcloud-core-oe-admin-api-provider/src/main/java/cn/com/qmth/examcloud/core/oe/admin/api/controller/ExamAuditController.java

@@ -148,7 +148,7 @@ public class ExamAuditController extends ControllerSupport {
                 ExamCacheTransferHelper.getDefaultCachedExamProperty(examId, ExamProperties.MARKING_TASK_BUILDED.name()).getValue();
         if (StringUtils.isNotBlank(markingTaskBuilt) && Constants.isTrue.equals(markingTaskBuilt)) {
 //            if (!redoAuditInfo.getIsPass()) {
-            throw new StatusException("redoAudit-005", "该考试评卷任务已生成,不能重审为不通过");
+            throw new StatusException("redoAudit-005", "该考试评卷任务已生成,不允许重审");
 //            }
         }
         examAuditService.redoAudit(redoAuditInfo, user);

+ 3 - 3
examcloud-core-oe-admin-api-provider/src/main/java/cn/com/qmth/examcloud/core/oe/admin/api/controller/ExamScoreController.java

@@ -171,9 +171,9 @@ public class ExamScoreController extends ControllerSupport {
         ExamSettingsCacheBean cachedExam = ExamCacheTransferHelper.getCachedExam(examId, studentId);
         Integer canExamTimes = cachedExam.getExamTimes() == null ? 0 : cachedExam.getExamTimes().intValue();//可考次数
 
-        //超过或等于可考次数,始终为可考次数+1
-        if (usedExamNum >= canExamTimes) {
-            return canExamTimes + 1;
+        //超过可考次数,始终为可考次数+1
+        if (usedExamNum > canExamTimes) {
+            return canExamTimes;
         }
 
         return usedExamNum;

+ 2 - 2
examcloud-core-oe-admin-api-provider/src/main/java/cn/com/qmth/examcloud/core/oe/admin/api/provider/SyncExamDataCloudServiceProvider.java

@@ -322,8 +322,8 @@ public class SyncExamDataCloudServiceProvider extends ControllerSupport implemen
         ExamSettingsCacheBean cachedExam = ExamCacheTransferHelper.getCachedExam(examId, studentId);
         Integer canExamTimes = cachedExam.getExamTimes() == null ? 0 : cachedExam.getExamTimes().intValue();//可考次数
 
-        //超过或等于可考次数,始终为可考次数+1
-        if (usedExamNum >= canExamTimes) {
+        //超过可考次数,始终为可考次数+1
+        if (usedExamNum > canExamTimes) {
             return canExamTimes + 1;
         }