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
42996ee2
Commit
42996ee2
authored
Mar 02, 2021
by
张亚辉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
净值
parent
2fdb4589
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
ProductServiceImpl.java
.../java/com/tanpu/fund/service/impl/ProductServiceImpl.java
+15
-2
No files found.
src/main/java/com/tanpu/fund/service/impl/ProductServiceImpl.java
View file @
42996ee2
...
...
@@ -149,8 +149,20 @@ public class ProductServiceImpl implements ProductService, Constant {
Map<String, List<IndexesProfile>> indexIdMap = getIndexIdMap(ls);
getProductCode(indexIdMap, vo, fundInfo);*/
// 最新净值
vo
.
setNet
(
getNewNet
(
fundInfo
.
getId
()));
//查询净值 最新净值 累计净值取分红不投
{
PageMethod
.
startPage
(
1
,
1
);
FundNavExample
navExample
=
new
FundNavExample
();
navExample
.
createCriteria
().
andFundIdEqualTo
(
id
).
andDeleteTagEqualTo
(
BizEnums
.
DeleteTag
.
tag_init
);
navExample
.
setOrderByClause
(
"price_date dec"
);
List
<
FundNav
>
fundNavList
=
fundNavMapper
.
selectByExample
(
navExample
);
if
(
CollectionUtils
.
isNotEmpty
(
fundNavList
))
{
vo
.
setNet
(
Net
.
builder
().
netDate
(
fundNavList
.
get
(
0
).
getPriceDate
().
getTime
())
.
netValue
(
BigDecimalUtil
.
toString
(
fundNavList
.
get
(
0
).
getNav
(),
4
))
.
cumulativeNav
(
BigDecimalUtil
.
toString
(
fundNavList
.
get
(
0
).
getCumulativeNavWithdrawal
(),
4
))
.
build
());
}
}
// 起投金额
Map
<
String
,
FundRateMapping
>
rateMappingMap
=
getStringFundRateMappingMap
(
Lists
.
newArrayList
(
id
));
...
...
@@ -1393,6 +1405,7 @@ public class ProductServiceImpl implements ProductService, Constant {
PageMethod
.
startPage
(
1
,
1
);
IfaImportedFundNavExample
navExample
=
new
IfaImportedFundNavExample
();
navExample
.
createCriteria
().
andFundIdEqualTo
(
id
).
andDeleteTagEqualTo
(
BizEnums
.
DeleteTag
.
tag_init
);
navExample
.
setOrderByClause
(
"price_date"
);
List
<
IfaImportedFundNav
>
navList
=
ifaImportedFundNavMapper
.
selectByExample
(
navExample
);
if
(
CollectionUtils
.
isNotEmpty
(
navList
))
{
detailResp
.
setNet
(
Net
.
builder
().
netDate
(
navList
.
get
(
0
).
getPriceDate
().
getTime
())
...
...
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