Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
邬吉朋
relation
Commits
bd61555c
Commit
bd61555c
authored
Aug 05, 2025
by
wujipeng
Browse files
画布文件上传解析优化
parent
9f7624dc
Changes
1
Show whitespace changes
Inline
Side-by-side
src/main/java/com/platform/service/impl/AnalysisServiceImpl.java
View file @
bd61555c
...
@@ -120,6 +120,19 @@ public class AnalysisServiceImpl implements AnalysisService {
...
@@ -120,6 +120,19 @@ public class AnalysisServiceImpl implements AnalysisService {
.
build
());
.
build
());
}
}
}
}
if
(
StringUtils
.
isNotEmpty
(
folderName
))
{
String
userName
=
trimChineseNameFromFilename
(
folderName
);
Map
<
String
,
String
>
idCardInfo
=
IdCardUtils
.
parseIdCardInfo
(
folderName
);
if
(!
ObjectUtils
.
isEmpty
(
idCardInfo
))
{
userService
.
save
(
UserEntity
.
builder
().
userName
(
userName
)
.
age
(
Integer
.
parseInt
(
idCardInfo
.
get
(
"age"
)))
.
idCard
(
idCardInfo
.
get
(
"idCard"
))
.
sex
(
idCardInfo
.
get
(
"sex"
))
.
idType
(
"身份证"
)
.
caseId
(
caseId
)
.
build
());
}
}
if
(
errorCount
==
0
){
if
(
errorCount
==
0
){
return
Result
.
data
(
fileUploadList
);
return
Result
.
data
(
fileUploadList
);
}
else
{
}
else
{
...
@@ -254,16 +267,6 @@ public class AnalysisServiceImpl implements AnalysisService {
...
@@ -254,16 +267,6 @@ public class AnalysisServiceImpl implements AnalysisService {
if
(
StringUtils
.
isNotEmpty
(
folderName
))
{
if
(
StringUtils
.
isNotEmpty
(
folderName
))
{
String
userName
=
trimChineseNameFromFilename
(
folderName
);
String
userName
=
trimChineseNameFromFilename
(
folderName
);
Map
<
String
,
String
>
idCardInfo
=
IdCardUtils
.
parseIdCardInfo
(
folderName
);
if
(!
ObjectUtils
.
isEmpty
(
idCardInfo
))
{
userService
.
save
(
UserEntity
.
builder
().
userName
(
userName
)
.
age
(
Integer
.
parseInt
(
idCardInfo
.
get
(
"age"
)))
.
idCard
(
idCardInfo
.
get
(
"idCard"
))
.
sex
(
idCardInfo
.
get
(
"sex"
))
.
idType
(
"身份证"
)
.
caseId
(
caseId
)
.
build
());
}
if
(!
excelData
.
isEmpty
())
{
if
(!
excelData
.
isEmpty
())
{
List
<
String
>
paymentBankNames
=
excelData
.
stream
().
map
(
ExcelDataEntity:
:
getPaymentBankName
).
distinct
().
collect
(
Collectors
.
toList
());
List
<
String
>
paymentBankNames
=
excelData
.
stream
().
map
(
ExcelDataEntity:
:
getPaymentBankName
).
distinct
().
collect
(
Collectors
.
toList
());
List
<
UserAccountEntity
>
userAccountList
=
Lists
.
newArrayList
();
List
<
UserAccountEntity
>
userAccountList
=
Lists
.
newArrayList
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
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 comment