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
3d07337d
Commit
3d07337d
authored
Mar 04, 2021
by
zp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
自选
parent
4bc264b8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
ProductPrivateServiceImpl.java
...om/tanpu/fund/service/impl/ProductPrivateServiceImpl.java
+6
-2
No files found.
src/main/java/com/tanpu/fund/service/impl/ProductPrivateServiceImpl.java
View file @
3d07337d
...
@@ -172,6 +172,8 @@ public class ProductPrivateServiceImpl implements ProductPrivateService, Constan
...
@@ -172,6 +172,8 @@ public class ProductPrivateServiceImpl implements ProductPrivateService, Constan
List
<
String
>
fundIds
=
managerMappings
.
stream
().
map
(
FundManagerMapping:
:
getFundId
).
distinct
()
List
<
String
>
fundIds
=
managerMappings
.
stream
().
map
(
FundManagerMapping:
:
getFundId
).
distinct
()
.
collect
(
Collectors
.
toList
());
.
collect
(
Collectors
.
toList
());
fundIds
.
add
(
id
);
FundCountExample
example2
=
new
FundCountExample
();
FundCountExample
example2
=
new
FundCountExample
();
example2
.
createCriteria
()
example2
.
createCriteria
()
.
andFundIdIn
(
fundIds
)
.
andFundIdIn
(
fundIds
)
...
@@ -236,14 +238,15 @@ public class ProductPrivateServiceImpl implements ProductPrivateService, Constan
...
@@ -236,14 +238,15 @@ public class ProductPrivateServiceImpl implements ProductPrivateService, Constan
vo
.
setInceptionDate
(
LongUtil
.
timeLong
(
fundInfo
.
getInceptionDate
()));
vo
.
setInceptionDate
(
LongUtil
.
timeLong
(
fundInfo
.
getInceptionDate
()));
}
}
// 设置代表基金id 其他基金信息
// 设置代表基金id 其他基金信息
getDelegateById
(
i
.
getId
(),
map
,
infoMap
,
fundCountMap
,
vo
);
getDelegateById
(
i
.
getId
(),
map
,
infoMap
,
fundCountMap
,
vo
,
isCheckSet
);
}
}
return
vo
;
return
vo
;
}).
collect
(
Collectors
.
toList
());
}).
collect
(
Collectors
.
toList
());
}
}
private
void
getDelegateById
(
String
personalId
,
Map
<
String
,
List
<
FundManagerMapping
>>
map
,
private
void
getDelegateById
(
String
personalId
,
Map
<
String
,
List
<
FundManagerMapping
>>
map
,
Map
<
String
,
FundInfo
>
infoMap
,
Map
<
String
,
FundCount
>
fundCountMap
,
FundManagerVO
vo
)
{
Map
<
String
,
FundInfo
>
infoMap
,
Map
<
String
,
FundCount
>
fundCountMap
,
FundManagerVO
vo
,
Set
<
String
>
isCheckSet
)
{
if
(
CollectionUtils
.
isNotEmpty
(
map
.
get
(
personalId
)))
{
if
(
CollectionUtils
.
isNotEmpty
(
map
.
get
(
personalId
)))
{
List
<
FundManagerMapping
>
mappings
=
map
.
get
(
personalId
);
List
<
FundManagerMapping
>
mappings
=
map
.
get
(
personalId
);
...
@@ -266,6 +269,7 @@ public class ProductPrivateServiceImpl implements ProductPrivateService, Constan
...
@@ -266,6 +269,7 @@ public class ProductPrivateServiceImpl implements ProductPrivateService, Constan
vo
.
setFundInfoVOS
(
list
.
stream
().
map
(
l
->
{
vo
.
setFundInfoVOS
(
list
.
stream
().
map
(
l
->
{
FundInfoVO
infoVO
=
new
FundInfoVO
();
FundInfoVO
infoVO
=
new
FundInfoVO
();
String
fundId
=
l
.
getFundId
();
String
fundId
=
l
.
getFundId
();
infoVO
.
setIsCheck
(
isCheckSet
.
contains
(
fundId
)
?
1
:
0
);
infoVO
.
setFundId
(
fundId
);
infoVO
.
setFundId
(
fundId
);
if
(
infoMap
.
get
(
fundId
)
!=
null
)
{
if
(
infoMap
.
get
(
fundId
)
!=
null
)
{
FundInfo
fundInfo
=
infoMap
.
get
(
fundId
);
FundInfo
fundInfo
=
infoMap
.
get
(
fundId
);
...
...
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