From c4cf0217d93cac696b9acb4c2613c6069d7dc270 Mon Sep 17 00:00:00 2001 From: zhc077 <565291854@qq.com> Date: Fri, 22 Nov 2024 15:37:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E6=A1=A3=E7=94=9F=E6=88=90=E5=90=88?= =?UTF-8?q?=E5=B9=B6=2011.22?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../org/jeecg/modules/word/WordExportUtil_test.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/jeecg-boot/jeecg-module-system/jeecg-system-start/src/test/java/org/jeecg/modules/word/WordExportUtil_test.java b/jeecg-boot/jeecg-module-system/jeecg-system-start/src/test/java/org/jeecg/modules/word/WordExportUtil_test.java index 4b40998..6f67b5f 100644 --- a/jeecg-boot/jeecg-module-system/jeecg-system-start/src/test/java/org/jeecg/modules/word/WordExportUtil_test.java +++ b/jeecg-boot/jeecg-module-system/jeecg-system-start/src/test/java/org/jeecg/modules/word/WordExportUtil_test.java @@ -100,23 +100,23 @@ public class WordExportUtil_test { @Test public void test4() { - File newFile = new File("C:\\Users\\YX\\Desktop\\testword\\xiangmushu\\合并1122v4.docx"); + /*File newFile = new File("C:\\Users\\YX\\Desktop\\testword\\xiangmushu\\合并1122v4.docx"); List srcfile = new ArrayList<>(); File file1 = new File("C:\\Users\\YX\\Desktop\\testword\\xiangmushu\\正文V14.docx"); File file2 = new File("C:\\Users\\YX\\Desktop\\testword\\xiangmushu\\正文V15.docx"); // File file3 = new File("C:\\Users\\YX\\Desktop\\testword\\xiangmushu\\yiJianModel.doc"); srcfile.add(file1); - srcfile.add(file2); + srcfile.add(file2);*/ List wordList = new ArrayList<>(); try { - FileInputStream fis = new FileInputStream("C:\\Users\\YX\\Desktop\\testword\\xiangmushu\\正文V14.docx"); + FileInputStream fis = new FileInputStream("D:\\正文V14.docx"); wordList.add(new XWPFDocument(fis)); - FileInputStream fis2 = new FileInputStream("C:\\Users\\YX\\Desktop\\testword\\xiangmushu\\正文V15.docx"); + FileInputStream fis2 = new FileInputStream("D\\正文V15.docx"); wordList.add(new XWPFDocument(fis2)); XWPFDocument mergeWordObj = WordUtils.mergeWord(wordList); - FileOutputStream fos = new FileOutputStream("C:\\Users\\YX\\Desktop\\testword\\xiangmushu\\合并1122v4.docx"); + FileOutputStream fos = new FileOutputStream("D:\\合并1122v4.docx"); mergeWordObj.write(fos); fos.close(); } catch (Exception e) {