|
@@ -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);
|