lideyin 5 жил өмнө
parent
commit
b40a870689

+ 2 - 2
examcloud-core-oe-admin-service/src/main/java/cn/com/qmth/examcloud/core/oe/admin/service/impl/ExamRecordForMarkingServiceImpl.java

@@ -90,8 +90,8 @@ public class ExamRecordForMarkingServiceImpl implements ExamRecordForMarkingServ
             examRecordForMarkingList =
                     examRecordForMarkingRepo.findByExamIdAndCourseIdAndExamStudentIds(examId, courseId, examStudentIds);
         } else {
-            if (markingType.equals(MarkingType.OBJECT_SCORE_MAX.name())
-                    || markingType.equals(MarkingType.LAST_SUBMIT.name())) {
+            if (examType == ExamType.ONLINE && (markingType.equals(MarkingType.OBJECT_SCORE_MAX.name())
+                    || markingType.equals(MarkingType.LAST_SUBMIT.name()))) {
                 examRecordForMarkingList =
                         examRecordForMarkingRepo.findByExamIdAndCourseIdAndExamStudentIds(examId, courseId, examStudentIds);
             } else {