From 112d964cbc94154dd4ca75851231d0c477ebc571 Mon Sep 17 00:00:00 2001 From: zhuo <2089219845@qq.com> Date: 星期二, 20 五月 2025 10:29:22 +0800 Subject: [PATCH] 其他功能合并 --- 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