feat(archives): 添加一人一档PDF生成功能的日志记录

dev
zhaokai 2026-03-10 14:32:26 +08:00
parent 067d9ebf3f
commit 9ee3877825
2 changed files with 3 additions and 2 deletions

View File

@ -350,7 +350,6 @@ public class ArchivesQueryExe {
byteArrayList.add(execteExamRecord(params));
System.out.println("5-------------------------------------------------------------");
}
log.info("execteGeneratePdfList,开始转换pdf{}", JSONUtil.toJsonStr(byteArrayList));
byte[] pdf = WordToPdfUtil.mergeWordToPdf(byteArrayList);
Files.write(Paths.get(tempDir+"/"+params.getClassName()+"-一人一档-"+DateUtil.getSdfTimes()+".pdf"), pdf);
@ -462,6 +461,9 @@ public class ArchivesQueryExe {
}
public byte[] execteExamRecord(PersonArchivesDTO params){
try {
if(params.getStudentExamRecord() == null){
return null;
}
Map<String, Object> workItem = BeanUtil.beanToMap(params.getStudentExamRecord());
ArrayList<Object> workList = CollUtil.newArrayList();
AtomicInteger atomicIndex = new AtomicInteger(1);

View File

@ -61,7 +61,6 @@ public class ArchivesServiceImpl implements ArchivesServiceI {
@Override
public void downloadPersonArchivesList(ArchivesQry qry) {
List<PersonArchivesDTO> personArchivesDTOList = archivesQueryExe.downloadPersonArchivesList(qry);
log.info("downloadPersonArchivesList,开始一人一档异步下载{}", JSONUtil.toJsonStr(personArchivesDTOList));
archivesQueryExe.execteGeneratePdfList(qry,personArchivesDTOList);
}