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
82f44dde
Commit
82f44dde
authored
Apr 26, 2021
by
zp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
829b1fd2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
0 deletions
+18
-0
ProductApi.java
src/main/java/com/tanpu/fund/api/ProductApi.java
+4
-0
ProductController.java
...ain/java/com/tanpu/fund/controller/ProductController.java
+5
-0
ProductService.java
src/main/java/com/tanpu/fund/service/ProductService.java
+3
-0
ProductServiceImpl.java
.../java/com/tanpu/fund/service/impl/ProductServiceImpl.java
+6
-0
No files found.
src/main/java/com/tanpu/fund/api/ProductApi.java
View file @
82f44dde
...
...
@@ -44,6 +44,10 @@ public interface ProductApi {
@GetMapping
(
"/product/list"
)
CommonResp
<
List
<
ProductInfoVO
>>
getProductList
(
@ApiParam
(
"产品id"
)
@RequestParam
(
"ids"
)
List
<
String
>
ids
);
@ApiOperation
(
"获取产品详情"
)
@GetMapping
(
"/product/not/net"
)
CommonResp
<
List
<
ProductInfoVO
>>
getProductListNotNetInfo
(
@ApiParam
(
"产品id"
)
@RequestParam
(
"ids"
)
List
<
String
>
ids
);
@ApiOperation
(
"单位净值"
)
@GetMapping
(
"/unit/net"
)
CommonResp
<
UnitNetVO
>
getUnitNetInfo
(
@ApiParam
(
"产品id"
)
@RequestParam
(
"id"
)
String
id
,
@ApiParam
(
"对比基金id"
)
@RequestParam
(
value
=
"ratioId"
,
required
=
false
)
String
ratioId
,
...
...
src/main/java/com/tanpu/fund/controller/ProductController.java
View file @
82f44dde
...
...
@@ -47,6 +47,11 @@ public class ProductController implements ProductApi {
return
CommonResp
.
success
(
this
.
productService
.
getProductDetail
(
id
));
}
@Override
public
CommonResp
<
List
<
ProductInfoVO
>>
getProductListNotNetInfo
(
List
<
String
>
ids
)
{
return
CommonResp
.
success
();
}
@Override
public
CommonResp
<
List
<
ProductInfoVO
>>
getProductList
(
List
<
String
>
ids
)
{
return
CommonResp
.
success
(
this
.
productService
.
getProductList
(
ids
));
...
...
src/main/java/com/tanpu/fund/service/ProductService.java
View file @
82f44dde
...
...
@@ -38,6 +38,7 @@ public interface ProductService {
Page
<
NetVO
>
getNetList
(
NetReq
req
);
List
<
BonusRatioVO
>
getBonusRatio
(
String
id
);
List
<
TrackRecordVO
>
getTrackRecord
(
String
id
);
...
...
@@ -68,6 +69,8 @@ public interface ProductService {
List
<
ProductInfoVO
>
getPrivateFundList
(
List
<
String
>
ids
);
List
<
ProductInfoVO
>
getProductListNotNet
(
List
<
String
>
ids
);
List
<
FundInfoSimpleListResp
>
getSimpleList
(
List
<
String
>
idList
);
List
<
FundInfoSimpleListResp
>
getPrivateSimpleList
(
List
<
String
>
idList
);
...
...
src/main/java/com/tanpu/fund/service/impl/ProductServiceImpl.java
View file @
82f44dde
...
...
@@ -1552,6 +1552,12 @@ public class ProductServiceImpl implements ProductService, Constant {
multiply100
(
fundCount
.
getStddevIncep
()),
multiply100
(
fundCount
.
getSharperatioIncep
()),
multiply100
(
fundCount
.
getRetIncepA
())));
}
@Override
public
List
<
ProductInfoVO
>
getProductListNotNet
(
List
<
String
>
ids
)
{
return
null
;
}
@Override
public
List
<
ProductInfoVO
>
getPrivateFundList
(
List
<
String
>
ids
)
{
...
...
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