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("导出失败"); }