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
9c66eeef
Commit
9c66eeef
authored
Aug 28, 2025
by
wujipeng
Browse files
文件解析优化
parent
029e3e71
Changes
1
Show whitespace changes
Inline
Side-by-side
src/main/java/com/platform/service/impl/AnalysisServiceImpl.java
View file @
9c66eeef
...
@@ -188,7 +188,9 @@ public class AnalysisServiceImpl implements AnalysisService {
...
@@ -188,7 +188,9 @@ public class AnalysisServiceImpl implements AnalysisService {
.
type
(
"2"
)
.
type
(
"2"
)
.
build
());
.
build
());
}
}
if
(!
userList
.
isEmpty
()){
userService
.
saveUserBatch
(
userList
);
userService
.
saveUserBatch
(
userList
);
}
}
else
{
}
else
{
List
<
ExcelDataEntity
>
excelData1
=
Lists
.
newArrayList
();
List
<
ExcelDataEntity
>
excelData1
=
Lists
.
newArrayList
();
for
(
ExcelDataEntity
excelDataEntity
:
excelData
)
{
for
(
ExcelDataEntity
excelDataEntity
:
excelData
)
{
...
@@ -215,8 +217,10 @@ public class AnalysisServiceImpl implements AnalysisService {
...
@@ -215,8 +217,10 @@ public class AnalysisServiceImpl implements AnalysisService {
.
type
(
"2"
)
.
type
(
"2"
)
.
build
());
.
build
());
}
}
if
(!
userList
.
isEmpty
()){
userService
.
saveUserBatch
(
userList
);
userService
.
saveUserBatch
(
userList
);
}
}
}
//保存账户
//保存账户
groupedMap
.
forEach
((
paymentAccount
,
paymentBankName
)
->
userAccountList
.
add
(
UserAccountEntity
.
builder
().
userName
(
folderName
).
account
(
paymentBankName
).
caseId
(
caseId
).
code
(
paymentAccount
).
build
()));
groupedMap
.
forEach
((
paymentAccount
,
paymentBankName
)
->
userAccountList
.
add
(
UserAccountEntity
.
builder
().
userName
(
folderName
).
account
(
paymentBankName
).
caseId
(
caseId
).
code
(
paymentAccount
).
build
()));
if
(!
userAccountList
.
isEmpty
())
{
if
(!
userAccountList
.
isEmpty
())
{
...
@@ -259,9 +263,11 @@ public class AnalysisServiceImpl implements AnalysisService {
...
@@ -259,9 +263,11 @@ public class AnalysisServiceImpl implements AnalysisService {
}
}
if
(
filterIndex
.
contains
(
2
))
{
if
(
filterIndex
.
contains
(
2
))
{
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
if
(!
ObjectUtils
.
isEmpty
(
excelDatum
.
getTime
())){
String
formattedDate
=
sdf
.
format
(
excelDatum
.
getTime
());
String
formattedDate
=
sdf
.
format
(
excelDatum
.
getTime
());
key
.
append
(
formattedDate
);
key
.
append
(
formattedDate
);
}
}
}
if
(
filterIndex
.
contains
(
3
))
{
if
(
filterIndex
.
contains
(
3
))
{
key
.
append
(
excelDatum
.
getAmount
());
key
.
append
(
excelDatum
.
getAmount
());
}
}
...
...
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