From ee0031a0ffa724e10a3ff812a457c643f9bcb58c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=87=E5=AE=99=E7=9A=AE=E7=9A=AE=E5=A8=83?= <2964346877@qq.com> Date: Tue, 30 Apr 2024 09:11:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=AD=E8=A5=BF=E7=BB=93=E5=90=88=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=90=8C=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- data-config/query-config.json | 2 +- .../server/message/busservice/impl/ZxjhBusinessServiceImpl.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/data-config/query-config.json b/data-config/query-config.json index 3ed7cbf..fdae3fb 100644 --- a/data-config/query-config.json +++ b/data-config/query-config.json @@ -1,7 +1,7 @@ { "disDates": "2023-01-01 00:00:00", "disDatee": "2023-12-31 11:59:59", - "downPath": "", + "downPath": "D:\\pdfs", "url": "http://192.168.12.121:3000/ws/service?wsdl", "targetNamespace": "http://ws.sie.com", "method": "service", diff --git a/src/main/java/com/docus/server/message/busservice/impl/ZxjhBusinessServiceImpl.java b/src/main/java/com/docus/server/message/busservice/impl/ZxjhBusinessServiceImpl.java index f1fcffa..34fe828 100644 --- a/src/main/java/com/docus/server/message/busservice/impl/ZxjhBusinessServiceImpl.java +++ b/src/main/java/com/docus/server/message/busservice/impl/ZxjhBusinessServiceImpl.java @@ -302,7 +302,7 @@ public class ZxjhBusinessServiceImpl implements ZxjhBusinessService { //本地文件名 String fileName = UUID.randomUUID()+end; // 假设要下载的文件名为example.pdf //文件本地存储路径 - String localFilePath = downPath + fileName; + String localFilePath = downPath +File.separator+ fileName; URI uri = new URI(sourcePath); String host = uri.getHost();