Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in
Toggle navigation
T
tamp_fund
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
周鹏
tamp_fund
Commits
4545a249
Commit
4545a249
authored
Jan 05, 2022
by
钱坤
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复example空列表问题
parent
969bbbb2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
ProductPrivateServiceImpl.java
...om/tanpu/fund/service/impl/ProductPrivateServiceImpl.java
+6
-0
No files found.
src/main/java/com/tanpu/fund/service/impl/ProductPrivateServiceImpl.java
View file @
4545a249
...
@@ -362,12 +362,18 @@ public class ProductPrivateServiceImpl implements ProductPrivateService, Constan
...
@@ -362,12 +362,18 @@ public class ProductPrivateServiceImpl implements ProductPrivateService, Constan
}
}
private
List
<
PersonnelInfo
>
getPersonnelInfos
(
List
<
String
>
ids
)
{
private
List
<
PersonnelInfo
>
getPersonnelInfos
(
List
<
String
>
ids
)
{
if
(
CollectionUtils
.
isEmpty
(
ids
))
{
return
new
ArrayList
<>();
}
PersonnelInfoExample
example1
=
new
PersonnelInfoExample
();
PersonnelInfoExample
example1
=
new
PersonnelInfoExample
();
example1
.
createCriteria
().
andIdIn
(
ids
);
example1
.
createCriteria
().
andIdIn
(
ids
);
return
this
.
personnelInfoMapper
.
selectByExample
(
example1
);
return
this
.
personnelInfoMapper
.
selectByExample
(
example1
);
}
}
private
Map
<
String
,
PersonnelInfo
>
getPersonnelInfoMap
(
List
<
String
>
ids
)
{
private
Map
<
String
,
PersonnelInfo
>
getPersonnelInfoMap
(
List
<
String
>
ids
)
{
if
(
CollectionUtils
.
isEmpty
(
ids
))
{
return
new
HashMap
<>();
}
List
<
PersonnelInfo
>
personnelInfos
=
getPersonnelInfos
(
ids
);
List
<
PersonnelInfo
>
personnelInfos
=
getPersonnelInfos
(
ids
);
return
personnelInfos
.
stream
().
collect
(
Collectors
.
toMap
(
PersonnelInfo:
:
getId
,
s
->
s
));
return
personnelInfos
.
stream
().
collect
(
Collectors
.
toMap
(
PersonnelInfo:
:
getId
,
s
->
s
));
}
}
...
...
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