yin 7 miesięcy temu
rodzic
commit
ed0f1fd235

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

@@ -1301,14 +1301,22 @@ public class StudentServiceImpl extends ServiceImpl<StudentDao, StudentEntity> i
         if (!ExamMode.CET.equals(exam.getMode())) {
             throw new StatusException("该考试不是CET");
         }
+        long time = System.currentTimeMillis();
         List<ExportCetVo> dataList = baseMapper.listCetMarkingPage(query);
+        long time1 = System.currentTimeMillis();
+        log.warn("【DBF导出】查询考生数据,当前第{}页共用时{}毫秒",query.getPageNumber(), time1-time);
         if (CollectionUtils.isNotEmpty(dataList)) {
             String imageTransferDir = sysProperty.getTransferDir();
             Map<String, List<QuestionEntity>> structs = new HashMap<>();
             Map<Integer, AnswerCardEntity> cardMap = new HashMap<>();
             List<Long> ids = dataList.stream().map(e -> e.getId()).collect(Collectors.toList());
+            long time2 = System.currentTimeMillis();
             List<PaperPageCetVo> totalpages = paperPageService.listByStudentIds(ids);
+            long time3 = System.currentTimeMillis();
+            log.warn("【DBF导出】查询page数据,当前第{}页共用时{}毫秒",query.getPageNumber(), time3-time2);
             List<PaperCetVo> totalpapers = paperService.findByStudentIds(ids);
+            long time4 = System.currentTimeMillis();
+            log.warn("【DBF导出】查询paper数据,当前第{}页共用时{}毫秒",query.getPageNumber(), time4-time3);
             for (ExportCetVo vo : dataList) {
                 Map<Long, List<PaperPageCetVo>> totalpagesmap = ofPage(totalpages);
                 Map<Long, List<PaperCetVo>> totalpapersmap = ofPaper(totalpapers);

+ 2 - 2
src/main/resources/mapper/PaperPageMapper.xml

@@ -17,7 +17,7 @@
 			typeHandler="com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler" />
 	</resultMap>
 	<select id="listByStudentIds" resultMap="custMap">
-		SELECT pg.id,
+		SELECT
 			pg.paper_Id,
 			pg.page_index,
 			pg.absent,
@@ -26,7 +26,7 @@
 			pg.question,
 			pg.selective,
 			pg.sheet_path,
-			pg.slicePath,
+			pg.slice_path,
 		       t.student_id,
 		       t.paper_number
 		FROM sc_student_paper t