Commit 03996d34 by 叶立庆

Merge branch 'v5.5.1' into 'master'

v5.5.1发起合并请求到master分支

See merge request !1
2 parents fb493193 20d44b09
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
</parent> </parent>
<groupId>cn.com.glsx.scrm</groupId> <groupId>cn.com.glsx.scrm</groupId>
<artifactId>rpc-scrm-equity-api</artifactId> <artifactId>rpc-scrm-equity-api</artifactId>
<version>5.3.0-SNAPSHOT</version> <version>5.5.1-SNAPSHOT</version>
<name>rpc-scrm-equity-api</name> <name>rpc-scrm-equity-api</name>
<properties> <properties>
<deploy.scanPackage>cn.com.glsx.scrm.equity.remote</deploy.scanPackage> <deploy.scanPackage>cn.com.glsx.scrm.equity.remote</deploy.scanPackage>
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
<dependency> <dependency>
<groupId>cn.com.glsx.scrm</groupId> <groupId>cn.com.glsx.scrm</groupId>
<artifactId>rpc-scrm-equity-api</artifactId> <artifactId>rpc-scrm-equity-api</artifactId>
<version>5.3.0-SNAPSHOT</version> <version>5.5.1-SNAPSHOT</version>
</dependency> </dependency>
</dependencies> </dependencies>
</plugin> </plugin>
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<dependency> <dependency>
<groupId>cn.com.glsx.scrm</groupId> <groupId>cn.com.glsx.scrm</groupId>
<artifactId>rpc-scrm-equity-api</artifactId> <artifactId>rpc-scrm-equity-api</artifactId>
<version>5.3.0-SNAPSHOT</version> <version>5.5.1-SNAPSHOT</version>
<exclusions> <exclusions>
<exclusion> <exclusion>
<artifactId>bcprov-jdk15on</artifactId> <artifactId>bcprov-jdk15on</artifactId>
......
...@@ -2266,19 +2266,23 @@ public class ServicePackageService { ...@@ -2266,19 +2266,23 @@ public class ServicePackageService {
.concat(fileName); .concat(fileName);
} }
private String getPdfFileName(String customerName,String packageName) { private String getPdfFileName(String customerName, String packageName) {
String fileName;
if (StringUtils.isNotBlank(packageName)) { if (StringUtils.isNotBlank(packageName)) {
return customerName fileName = customerName
.concat(packageName) .concat(packageName)
.concat(UUID.randomUUID().toString().replace("-", "").substring(16)) .concat(UUID.randomUUID().toString().replace("-", "").substring(16))
.concat(".") .concat(".")
.concat("pdf"); .concat("pdf");
} else { } else {
return customerName fileName = customerName
.concat(UUID.randomUUID().toString().replace("-", "").substring(16)) .concat(UUID.randomUUID().toString().replace("-", "").substring(16))
.concat(".") .concat(".")
.concat("pdf"); .concat("pdf");
} }
//将文件命中,包含 / 的特殊字符串转为 %
fileName = fileName.replace("/","-");
return fileName;
} }
private String cutSpecialContent(String specialContent1, int spebrLen) { private String cutSpecialContent(String specialContent1, int spebrLen) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!