From b7c0212cc6871d14a9fcd95a2049496735d93426 Mon Sep 17 00:00:00 2001
From: maven <2163098428@qq.com>
Date: 星期日, 28 九月 2025 14:35:37 +0800
Subject: [PATCH] yys 修改报告模板
---
cnas-require/src/main/java/com/ruoyi/require/service/impl/InternalWastesServiceImpl.java | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/cnas-require/src/main/java/com/ruoyi/require/service/impl/InternalWastesServiceImpl.java b/cnas-require/src/main/java/com/ruoyi/require/service/impl/InternalWastesServiceImpl.java
index 9d58f8b..cbe5f27 100644
--- a/cnas-require/src/main/java/com/ruoyi/require/service/impl/InternalWastesServiceImpl.java
+++ b/cnas-require/src/main/java/com/ruoyi/require/service/impl/InternalWastesServiceImpl.java
@@ -31,7 +31,7 @@
* 瀹夊叏鍐呭姟涓夊簾鐧昏 鏈嶅姟瀹炵幇绫�
* </p>
*
- * @author 鑺杞欢锛堟睙鑻忥級鏈夐檺鍏徃
+ * @author
* @since 2024-11-19 06:39:27
*/
@Service
@@ -138,8 +138,6 @@
detail.setIndex(index);
index++;
}
-
-
// 鑾峰彇璺緞
InputStream inputStream = this.getClass().getResourceAsStream("/static/internal-wastes.docx");
Configure configure = Configure.builder()
@@ -161,6 +159,7 @@
template.write(os);
os.flush();
os.close();
+ inputStream.close();
} catch (Exception e) {
e.printStackTrace();
throw new RuntimeException("瀵煎嚭澶辫触");
--
Gitblit v1.9.3