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
e25c4200
Commit
e25c4200
authored
Feb 06, 2021
by
张亚辉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
私有基金
parent
176fdfdd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
12 deletions
+5
-12
PrivateFundDetailResp.java
.../com/tanpu/fund/api/model/resp/PrivateFundDetailResp.java
+2
-0
ProductServiceImpl.java
.../java/com/tanpu/fund/service/impl/ProductServiceImpl.java
+3
-12
No files found.
src/main/java/com/tanpu/fund/api/model/resp/PrivateFundDetailResp.java
View file @
e25c4200
...
...
@@ -19,6 +19,8 @@ import lombok.NoArgsConstructor;
public
class
PrivateFundDetailResp
{
@ApiModelProperty
(
"基金ID"
)
private
String
fundId
;
@ApiModelProperty
(
"备案编号"
)
private
String
registerNumber
;
@ApiModelProperty
(
"基金名称"
)
private
String
fundName
;
@ApiModelProperty
(
"近一年收益"
)
...
...
src/main/java/com/tanpu/fund/service/impl/ProductServiceImpl.java
View file @
e25c4200
...
...
@@ -1303,25 +1303,16 @@ public class ProductServiceImpl implements ProductService, Constant {
example
.
createCriteria
().
andFundIdEqualTo
(
id
).
andDeleteTagEqualTo
(
BizEnums
.
DeleteTag
.
tag_init
);
List
<
IfaImportedFundCount
>
fundCountList
=
ifaImportedFundCountMapper
.
selectByExample
(
example
);
//查询净值
PageMethod
.
startPage
(
1
,
1
);
IfaImportedFundNavExample
navExample
=
new
IfaImportedFundNavExample
();
navExample
.
createCriteria
().
andFundIdEqualTo
(
id
).
andDeleteTagEqualTo
(
BizEnums
.
DeleteTag
.
tag_init
);
navExample
.
setOrderByClause
(
"price_date desc"
);
List
<
IfaImportedFundNav
>
navList
=
ifaImportedFundNavMapper
.
selectByExample
(
navExample
);
PrivateFundDetailResp
detailResp
=
PrivateFundDetailResp
.
builder
()
.
fundId
(
fundInfo
.
getId
())
.
fundName
(
fundInfo
.
getFundName
())
.
registerNumber
(
fundInfo
.
getRegisterNumber
())
.
build
();
if
(
CollectionUtils
.
isNotEmpty
(
fundCountList
))
{
detailResp
.
setNear1YearProfit
(
BigDecimalUtil
.
toString
(
fundCountList
.
get
(
0
).
getRet1y
(),
2
));
}
if
(
CollectionUtils
.
isNotEmpty
(
navList
))
{
detailResp
.
setNet
(
Net
.
builder
().
netDate
(
navList
.
get
(
0
).
getPriceDate
().
getTime
())
.
netValue
(
BigDecimalUtil
.
toString
(
navList
.
get
(
0
).
getNav
())).
build
());
detailResp
.
setNet
(
Net
.
builder
().
netDate
(
fundCountList
.
get
(
0
).
getPriceDate
().
getTime
())
.
netValue
(
BigDecimalUtil
.
toString
(
fundCountList
.
get
(
0
).
getNetNav
())).
build
());
}
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