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
2fdb4589
Commit
2fdb4589
authored
Mar 02, 2021
by
张亚辉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
私有基金净值
parent
db1394cf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
ProductServiceImpl.java
.../java/com/tanpu/fund/service/impl/ProductServiceImpl.java
+13
-2
No files found.
src/main/java/com/tanpu/fund/service/impl/ProductServiceImpl.java
View file @
2fdb4589
...
...
@@ -1374,8 +1374,7 @@ public class ProductServiceImpl implements ProductService, Constant {
detailResp
.
setNear1YearProfit
(
BigDecimalUtil
.
toString
(
fundCountList
.
get
(
0
).
getRet1y
(),
2
));
detailResp
.
setRet1y
(
BigDecimalUtil
.
toString
(
fundCountList
.
get
(
0
).
getRet1y
(),
2
));
detailResp
.
setRetYtd
(
BigDecimalUtil
.
toString
(
fundCountList
.
get
(
0
).
getRetYtd
(),
2
));
detailResp
.
setNet
(
Net
.
builder
().
netDate
(
fundCountList
.
get
(
0
).
getPriceDate
().
getTime
())
.
netValue
(
BigDecimalUtil
.
toString
(
fundCountList
.
get
(
0
).
getNetNav
(),
4
)).
build
());
}
//子策略名称
...
...
@@ -1389,6 +1388,18 @@ public class ProductServiceImpl implements ProductService, Constant {
}
}
//查询基金净值
{
PageMethod
.
startPage
(
1
,
1
);
IfaImportedFundNavExample
navExample
=
new
IfaImportedFundNavExample
();
navExample
.
createCriteria
().
andFundIdEqualTo
(
id
).
andDeleteTagEqualTo
(
BizEnums
.
DeleteTag
.
tag_init
);
List
<
IfaImportedFundNav
>
navList
=
ifaImportedFundNavMapper
.
selectByExample
(
navExample
);
if
(
CollectionUtils
.
isNotEmpty
(
navList
))
{
detailResp
.
setNet
(
Net
.
builder
().
netDate
(
navList
.
get
(
0
).
getPriceDate
().
getTime
())
.
netValue
(
BigDecimalUtil
.
toString
(
navList
.
get
(
0
).
getCumulativeNav
(),
4
)).
build
());
}
}
detailResp
.
setProductType
(
Constant
.
THREE_NUM
);
return
detailResp
;
...
...
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