From 95eb8a2a75cbeebcb3393d404c1952bd59b8989a Mon Sep 17 00:00:00 2001
From: wzp <2040239371@qq.com>
Date: 星期五, 01 八月 2025 13:50:16 +0800
Subject: [PATCH] feat: 新增第三方接口访问

---
 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