From 78fc99e3aa7472378820eedd6438f6128f44d8d3 Mon Sep 17 00:00:00 2001 From: caihaohan Date: Wed, 27 Sep 2023 07:43:06 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BC=81=E6=A0=87=E5=B8=A6=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E5=AF=BC=E5=87=BA=E5=A4=9A=E5=B1=82=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E5=A4=B9Bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 企标编号有特殊字符”/“,被识别成路径了 --- .../laws/common/service/impl/LawsCommonServiceImpl.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/laws-modules/src/main/java/com/jero/modules/laws/common/service/impl/LawsCommonServiceImpl.java b/laws-modules/src/main/java/com/jero/modules/laws/common/service/impl/LawsCommonServiceImpl.java index a9e483b6..33e46434 100644 --- a/laws-modules/src/main/java/com/jero/modules/laws/common/service/impl/LawsCommonServiceImpl.java +++ b/laws-modules/src/main/java/com/jero/modules/laws/common/service/impl/LawsCommonServiceImpl.java @@ -1148,7 +1148,8 @@ public class LawsCommonServiceImpl implements ILawsCommonService { for (OSSFile file : files) { String fileNameByType = fileNameByTypeMap.get(file.getStandardFileType()); - String baseFilePath = folderName + "/" + fileNameByType; + // 企标编号中有特殊字符"/" 需要把特殊字符删掉 + String baseFilePath = folderName.replaceAll("/", "") + "/" + fileNameByType; String currentFilePath = baseFilePath; if (filePathList.contains(currentFilePath)) {