From b7ed14f6524bc6b7e3ded5ef6a7530426941af08 Mon Sep 17 00:00:00 2001
From: sinake <sinake1@qq.com>
Date: 星期三, 26 八月 2026 17:49:42 +0800
Subject: [PATCH] 遗体器官获取伦理审查表新增日志
---
ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceEthicalreviewopinionsController.java | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceEthicalreviewopinionsController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceEthicalreviewopinionsController.java
index af373f7..c980a4b 100644
--- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceEthicalreviewopinionsController.java
+++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceEthicalreviewopinionsController.java
@@ -213,16 +213,19 @@
}
if(filePath.substring(0,1).equals("/"))
filePath=filePath.substring(1);
+ filePath = RuoYiConfig.getProfile()+"\\template\\";
String content ="";
Template t = null;
try {
//content = Files.readString(Paths.get(filePath+"閬椾綋鍣ㄥ畼鑾峰彇浼︾悊瀹℃煡琛ㄩ椤�.xml"), StandardCharsets.UTF_8);
- Path path = Paths.get(filePath1 + "閬椾綋鍣ㄥ畼鑾峰彇浼︾悊瀹℃煡琛ㄩ椤�.xml");
+ Path path = Paths.get(filePath + "閬椾綋鍣ㄥ畼鑾峰彇浼︾悊瀹℃煡琛ㄩ椤�.xml");
+ logger.info(filePath + "閬椾綋鍣ㄥ畼鑾峰彇浼︾悊瀹℃煡琛ㄩ椤�.xml ;"+Files.exists(path));
if(Files.exists(path)) {
byte[] bytes = Files.readAllBytes(path);
content = new String(bytes, StandardCharsets.UTF_8);
}else{
- path = Paths.get(filePath + "閬椾綋鍣ㄥ畼鑾峰彇浼︾悊瀹℃煡琛ㄩ椤�.xml");
+ logger.info(filePath1 + "閬椾綋鍣ㄥ畼鑾峰彇浼︾悊瀹℃煡琛ㄩ椤�.xml ;"+Files.exists(path));
+ path = Paths.get(filePath1 + "閬椾綋鍣ㄥ畼鑾峰彇浼︾悊瀹℃煡琛ㄩ椤�.xml");
byte[] bytes = Files.readAllBytes(path);
content = new String(bytes, StandardCharsets.UTF_8);
}
--
Gitblit v1.9.3