From 19dcd2f7eb4112ccd69e0bba7bfd77edae37e5bd Mon Sep 17 00:00:00 2001 From: zhaokai Date: Tue, 10 Mar 2026 14:14:47 +0800 Subject: [PATCH] =?UTF-8?q?feat(archives):=20=E6=B7=BB=E5=8A=A0=E4=B8=80?= =?UTF-8?q?=E4=BA=BA=E4=B8=80=E6=A1=A3PDF=E7=94=9F=E6=88=90=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E7=9A=84=E6=97=A5=E5=BF=97=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../edu/command/query/archives/ArchivesQueryExe.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/web-app/src/main/java/com/zcloud/edu/command/query/archives/ArchivesQueryExe.java b/web-app/src/main/java/com/zcloud/edu/command/query/archives/ArchivesQueryExe.java index 765c4bc..908fe15 100644 --- a/web-app/src/main/java/com/zcloud/edu/command/query/archives/ArchivesQueryExe.java +++ b/web-app/src/main/java/com/zcloud/edu/command/query/archives/ArchivesQueryExe.java @@ -350,6 +350,8 @@ 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); stringList.add(new File(tempDir+"/"+params.getClassName()+"-一人一档-"+DateUtil.getSdfTimes()+".pdf")); @@ -380,6 +382,8 @@ public class ArchivesQueryExe { ByteArrayOutputStream outputStream = Tools.renderTemplate(templatePath, workItem); return outputStream.toByteArray(); } catch (Exception e) { + log.error("execteHomepage,整理数据失败",e); + throw new RuntimeException(e); } } @@ -391,6 +395,7 @@ public class ArchivesQueryExe { ByteArrayOutputStream outputStream = Tools.renderTemplate(templatePath, workItem); return outputStream.toByteArray(); } catch (Exception e) { + log.error("execteAttendanceRecord,整理数据失败",e); throw new RuntimeException(e); } } @@ -404,6 +409,7 @@ public class ArchivesQueryExe { ByteArrayOutputStream outputStream = Tools.renderTemplate(templatePath, workItem); return outputStream.toByteArray(); } catch (Exception e) { + log.error("execteStudentRecord,整理数据失败",e); throw new RuntimeException(e); } } @@ -450,6 +456,7 @@ public class ArchivesQueryExe { ByteArrayOutputStream outputStream = Tools.renderTemplate(templatePath, workItem); return outputStream.toByteArray(); } catch (Exception e) { + log.error("execteStudyRecord,整理数据失败",e); throw new RuntimeException(e); } } @@ -498,6 +505,7 @@ public class ArchivesQueryExe { return outputStream.toByteArray(); } catch (Exception e) { e.printStackTrace(); + log.error("execteExamRecord,整理数据失败",e); return null; // throw new BizException("导出失败"); }