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
f18f31ef
Commit
f18f31ef
authored
Aug 01, 2025
by
wujipeng
Browse files
excel解析增加人员所属案件id
parent
1ded015f
Changes
2
Show whitespace changes
Inline
Side-by-side
src/main/java/com/platform/service/impl/AnalysisServiceImpl.java
View file @
f18f31ef
...
@@ -217,8 +217,15 @@ public class AnalysisServiceImpl implements AnalysisService {
...
@@ -217,8 +217,15 @@ public class AnalysisServiceImpl implements AnalysisService {
}
}
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
());
userAccountService
.
saveUserBatch
(
paymentBankNames
.
stream
().
map
(
paymentBankName
->
UserAccountEntity
List
<
UserAccountEntity
>
userAccountList
=
Lists
.
newArrayList
();
.
builder
().
userName
(
userName
).
account
(
paymentBankName
).
caseId
(
caseId
).
build
()).
collect
(
Collectors
.
toList
()));
for
(
String
paymentBankName
:
paymentBankNames
)
{
userAccountList
.
add
(
UserAccountEntity
.
builder
()
.
userName
(
userName
)
.
account
(
paymentBankName
)
.
caseId
(
caseId
)
.
build
());
}
userAccountService
.
saveUserBatch
(
userAccountList
);
}
}
}
}
...
...
src/main/resources/com/platform/mapper/UserAccountMapper.xml
View file @
f18f31ef
...
@@ -4,9 +4,9 @@
...
@@ -4,9 +4,9 @@
<mapper
namespace=
"com.platform.mapper.UserAccountMapper"
>
<mapper
namespace=
"com.platform.mapper.UserAccountMapper"
>
<insert
id=
"saveUserBatch"
>
<insert
id=
"saveUserBatch"
>
insert IGNORE into user_account (user_name, account) values
insert IGNORE into user_account (user_name, account
, case_id
) values
<foreach
item=
"item"
collection=
"userAccountList"
separator=
","
>
<foreach
item=
"item"
collection=
"userAccountList"
separator=
","
>
(#{item.userName}, #{item.account})
(#{item.userName}, #{item.account}
, #{item.caseId}
)
</foreach>
</foreach>
</insert>
</insert>
</mapper>
</mapper>
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