yin 7 kuukautta sitten
vanhempi
commit
1c661bbc39

+ 1 - 1
src/main/java/cn/com/qmth/scancentral/dao/StudentDao.java

@@ -76,7 +76,7 @@ public interface StudentDao extends BaseMapper<StudentEntity> {
 
     int countCetMarking(@Param("query") ExportCetMarkingQueryVo query);
 
-    IPage<ExportCetVo> listCetMarkingPage(@Param("query") ExportCetMarkingQueryVo query);
+    List<ExportCetVo> listCetMarkingPage(@Param("query") ExportCetMarkingQueryVo query);
 
     ScanAnswerInfoVo getInfoCountByExam(@Param("examId") Long examId);
 

+ 4 - 4
src/main/java/cn/com/qmth/scancentral/service/impl/StudentServiceImpl.java

@@ -1308,9 +1308,9 @@ public class StudentServiceImpl extends ServiceImpl<StudentDao, StudentEntity> i
         if (!ExamMode.CET.equals(exam.getMode())) {
             throw new StatusException("该考试不是CET");
         }
-        IPage<ExportCetVo> iPage = baseMapper
+        List<ExportCetVo> iPage = baseMapper
                 .listCetMarkingPage(query);
-        if (CollectionUtils.isNotEmpty(iPage.getRecords())) {
+        if (CollectionUtils.isNotEmpty(iPage)) {
             String imageTransferDir = sysProperty.getTransferDir();
             Map<String, List<QuestionEntity>> structs = new HashMap<>();
             Map<Integer, AnswerCardEntity> cardMap = new HashMap<>();
@@ -1329,9 +1329,9 @@ public class StudentServiceImpl extends ServiceImpl<StudentDao, StudentEntity> i
                     }
 
                 }
-            }.setDataForBatch(iPage.getRecords(), 200);
+            }.setDataForBatch(iPage, 200);
         }
-        return iPage.getRecords();
+        return iPage;
     }
 
     private void disposeStudent(ExportCetVo student, List<String> paperTypeBarcodeContents, List<PaperPageCetVo> pages,