From 7d03d9fe3714a10fdd51f24e3c84da31a36f4ad8 Mon Sep 17 00:00:00 2001
From: wzp <2040239371@qq.com>
Date: 星期二, 15 七月 2025 14:28:14 +0800
Subject: [PATCH] fix:修复docker转化pdf文件卡顿和IO暴涨问题。 用单例控制docker转化,并监控docker状态

---
 src/main/java/com/ots/project/tool/report/LAQ/chart/LAQChart.java |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/src/main/java/com/ots/project/tool/report/LAQ/chart/LAQChart.java b/src/main/java/com/ots/project/tool/report/LAQ/chart/LAQChart.java
index 404d971..fe67dd3 100644
--- a/src/main/java/com/ots/project/tool/report/LAQ/chart/LAQChart.java
+++ b/src/main/java/com/ots/project/tool/report/LAQ/chart/LAQChart.java
@@ -48,17 +48,17 @@
 
 
     public static void main(String[] args) throws Exception {
-        String dataPath = "D:\\娴嬭瘎绯荤粺\\闇�姹俓\LAQ\\report\\LAQ琛ㄥご鏁版嵁鏂囦欢.xlsx";
-        // 鑾峰彇瀵煎叆鏁版嵁
-        File file = new File(dataPath);
-        InputStream in = new FileInputStream(file);
-        ExcelUtil<LAQTemplate> util = new ExcelUtil<>(LAQTemplate.class);
-        List<LAQTemplate> laqTemplateList = util.importExcel(in);
+//        String dataPath = "D:\\娴嬭瘎绯荤粺\\闇�姹俓\LAQ\\report\\LAQ琛ㄥご鏁版嵁鏂囦欢.xlsx";
+//        // 鑾峰彇瀵煎叆鏁版嵁
+//        File file = new File(dataPath);
+//        InputStream in = new FileInputStream(file);
+//        ExcelUtil<LAQTemplate> util = new ExcelUtil<>(LAQTemplate.class);
+//        List<LAQTemplate> laqTemplateList = util.importExcel(in);
         // 鐢熸垚鏂囦欢闆嗗悎
         List<String> fileNameList = new ArrayList<>();
         List<String> deleteStrList = new ArrayList<>();
-        for (int i = 0; i < laqTemplateList.size(); i++) {
-            LAQTemplate laqTemplate = laqTemplateList.get(i);
+        for (int i = 0; i < 1; i++) {
+//            LAQTemplate laqTemplate = laqTemplateList.get(i);
             //缁勮鎶ュ憡鎵�鐢ㄦ暟鎹�
             Map<String, Object> textMap = new HashMap<>();
 //            textMap.put("sendEmailFileName",laqTemplate.getName());
@@ -83,7 +83,7 @@
 //            String zipFileName = WordUtil.makeReportFile("D:\\娴嬭瘎绯荤粺\\闇�姹俓\LAQ\\report\\LAQ鑻辨枃鎶ュ憡-20230926.docx", template, textMap, new HashMap<>(), deleteStrList);
 //            fileNameList.add(zipFileName);
             ZipSecureFile.setMinInflateRatio(0.001);
-            try (OutputStream os = new FileOutputStream("D:\\娴嬭瘎绯荤粺\\闇�姹俓\LAQ\\report\\LAQ鑻辨枃妯℃澘-wzp-淇敼鐗�-1.docx");XWPFDocument document = new XWPFDocument(POIXMLDocument.openPackage("D:\\娴嬭瘎绯荤粺\\闇�姹俓\LAQ\\report\\LAQ鑻辨枃妯℃澘-wzp-淇敼鐗�.docx"))){
+            try (OutputStream os = new FileOutputStream("D:\\TaiOS\\LAQ-1.docx");XWPFDocument document = new XWPFDocument(POIXMLDocument.openPackage("D:\\TaiOS\\LAQ.docx"))){
                 Map<Integer,List<SeriesData>> seriesDatas = initData(textMap);
                 changeChart(document,seriesDatas,textMap);
                 document.write(os);

--
Gitblit v1.9.1