Bladeren bron

获取考生bug fix

lideyin 5 jaren geleden
bovenliggende
commit
c88b702ea2

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

@@ -195,8 +195,8 @@ public class ExamRecordCloudServiceProvider extends ControllerSupport implements
         //待阅卷的考试记录集合
         List<ToBeMarkExamRecordBean> toBeMarkExamRecordBeanList = new ArrayList<>();
         for (Long examStudentId : req.getExamStudentIdList()) {
-            ExamStudentEntity examStudent =
-                    GlobalHelper.getEntity(examStudentRepo, examStudentId, ExamStudentEntity.class);
+            ExamStudentEntity examStudent =examStudentRepo.findByExamStudentId(examStudentId);
+
             if (null == examStudent.getStudentId()) {
                 throw new StatusException("100101", "考生id:" + examStudentId + "不正确");
             }