Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
scrm
/
rpc-scrm-equity
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 1464adcd
authored
Dec 18, 2025
by
春觉晓
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
权益合同打印文件名特殊字符替换
1 parent
ef29a9b0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
rpc-scrm-equity/src/main/java/cn/com/glsx/scrm/equity/service/ServicePackageService.java
rpc-scrm-equity/src/main/java/cn/com/glsx/scrm/equity/service/ServicePackageService.java
View file @
1464adc
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment