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
1911a79b
Commit
1911a79b
authored
Feb 27, 2021
by
张亚辉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
文章产品
parent
a72d888d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
ProductServiceImpl.java
.../java/com/tanpu/fund/service/impl/ProductServiceImpl.java
+6
-6
No files found.
src/main/java/com/tanpu/fund/service/impl/ProductServiceImpl.java
View file @
1911a79b
...
...
@@ -1153,16 +1153,16 @@ public class ProductServiceImpl implements ProductService, Constant {
Map
<
String
,
FundRateMapping
>
rateMappingMap
=
getStringFundRateMappingMap
(
list
);
// 查询研报信息是否有研报
Map
<
String
,
Object
>
fundInfoReport
=
getFundReport
(
Lists
.
newArrayList
(
fundInfoMap
.
keySet
()));
//
Map<String, Object> fundInfoReport = getFundReport(Lists.newArrayList(fundInfoMap.keySet()));
return
fundCounts
.
stream
().
map
(
p
->
getProductInfoVO
(
fundInfoMap
,
rateMappingMap
,
p
,
fundInfoReport
.
keySet
()
,
productType
))
return
fundCounts
.
stream
().
map
(
p
->
getProductInfoVO
(
fundInfoMap
,
rateMappingMap
,
p
,
null
,
productType
))
.
collect
(
Collectors
.
toList
());
}
private
Map
<
String
,
Object
>
getFundReport
(
List
<
String
>
list
)
{
String
ids
=
list
.
stream
().
collect
(
Collectors
.
joining
(
"','"
,
"'"
,
"'"
));
return
fundInfoCustomMapper
.
getFundInfoReport
(
ids
);
}
//
private Map<String, Object> getFundReport(List<String> list) {
//
String ids = list.stream().collect(Collectors.joining("','", "'", "'"));
//
return fundInfoCustomMapper.getFundInfoReport(ids);
//
}
private
ProductInfoVO
getProductInfoVO
(
Map
<
String
,
FundInfo
>
fundInfoMap
,
Map
<
String
,
FundRateMapping
>
rateMappingMap
,
FundCount
fundCount
,
...
...
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