图片调整

dev
zhaokai 2026-03-11 14:49:34 +08:00
parent a64fcc6f29
commit 8030a85288
1 changed files with 6 additions and 1 deletions

View File

@ -183,8 +183,11 @@ public class ArchivesQueryExe {
List<StudentExamRecordItemCO> recordCoList = studentExamRecordItemCoConvertor.converDOsToCOs(recordList);
studentExamRecordCO.setExamRecordItemList(recordCoList);
personArchivesDTO.setStudentExamRecord(studentExamRecordCO);
}
log.info("考试试卷数据准备,{}",JSONUtil.toJsonStr(studentExamRecordCO));
}else{
log.info("考试试卷数据试卷为空,学生:{}",studentDO.getStudentId());
}
}
// 新增档案下载记录
ArchivesPdfFileE archivesPdfFileE = new ArchivesPdfFileE();
@ -521,6 +524,8 @@ public class ArchivesQueryExe {
PictureRenderData signPicture = ImageUtil.createWithThumbnailator(fileUrlConfig.getPrefixUrl() + params.getStudentExamRecord(), 50, 15);
workItem.put("signPicture", signPicture);
}
log.info("考试试卷下载转换前,{}",JSONUtil.toJsonStr(params.getStudentExamRecord()));
log.info("考试试卷下载,{}",JSONUtil.toJsonStr(workItem));
String templatePath = "templates/template/exam.docx";
ByteArrayOutputStream outputStream = Tools.renderTemplate(templatePath, workItem);
return outputStream.toByteArray();