|
@@ -11,6 +11,8 @@ import org.springframework.data.redis.core.StringRedisTemplate;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
+import java.net.URLDecoder;
|
|
|
+import java.nio.charset.StandardCharsets;
|
|
|
import java.time.LocalDateTime;
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.List;
|
|
@@ -37,7 +39,8 @@ public class BidFilesServiceImpl extends ServiceImpl<BidFilesMapper, BidFiles> i
|
|
|
BidFiles base = new BidFiles();
|
|
|
|
|
|
base.setProjectId(fileImportDTO.getProjectId());
|
|
|
- String[] split = fileImportDTO.getBaseFile().split("/");
|
|
|
+ String decode = URLDecoder.decode(fileImportDTO.getBaseFile(), StandardCharsets.UTF_8);
|
|
|
+ String[] split = decode.split("/");
|
|
|
base.setFname(split[split.length - 1]);
|
|
|
base.setFile(fileImportDTO.getBaseFile());
|
|
|
base.setFileType(1);
|
|
@@ -48,7 +51,8 @@ public class BidFilesServiceImpl extends ServiceImpl<BidFilesMapper, BidFiles> i
|
|
|
for(String file : fileImportDTO.getCompareFiles()){
|
|
|
BidFiles bf = new BidFiles();
|
|
|
bf.setProjectId(fileImportDTO.getProjectId());
|
|
|
- String[] split1 = file.split("/");
|
|
|
+ String decode1 = URLDecoder.decode(file, StandardCharsets.UTF_8);
|
|
|
+ String[] split1 = decode1.split("/");
|
|
|
bf.setFname(split1[split1.length - 1]);
|
|
|
bf.setFile(file);
|
|
|
bf.setFileType(2);
|