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
510a330c
Commit
510a330c
authored
Aug 11, 2021
by
王亚雷
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/bugfix-20210811'
parents
0b146792
3637b8ad
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
0 deletions
+30
-0
ProductApi.java
src/main/java/com/tanpu/fund/api/ProductApi.java
+7
-0
ProductController.java
...ain/java/com/tanpu/fund/controller/ProductController.java
+5
-0
ProductService.java
src/main/java/com/tanpu/fund/service/ProductService.java
+2
-0
ProductServiceImpl.java
.../java/com/tanpu/fund/service/impl/ProductServiceImpl.java
+16
-0
No files found.
src/main/java/com/tanpu/fund/api/ProductApi.java
View file @
510a330c
...
...
@@ -20,6 +20,7 @@ import org.springframework.web.bind.annotation.PostMapping;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.multipart.MultipartFile
;
import
springfox.documentation.annotations.ApiIgnore
;
import
javax.validation.Valid
;
import
javax.validation.constraints.NotEmpty
;
...
...
@@ -134,10 +135,16 @@ public interface ProductApi {
@GetMapping
(
"/privatefund/query/samefund"
)
CommonResp
<
List
<
FundSameResp
>>
getRemmendPrivateFundList
(
@RequestParam
(
"fundId"
)
String
fundId
);
@ApiIgnore
@ApiOperation
(
value
=
"根据Id查询私有产品基本信息 - 私有基金"
)
@PostMapping
(
value
=
"/privateFundInfo/simpleList"
,
produces
=
{
"application/json"
})
CommonResp
<
List
<
FundInfoSimpleListResp
>>
privateSimpleList
(
@RequestBody
List
<
String
>
idList
);
@ApiIgnore
@ApiOperation
(
value
=
"根据Id查询无净值产品基本信息"
)
@PostMapping
(
value
=
"/noNavFund/simpleList"
,
produces
=
{
"application/json"
})
CommonResp
<
List
<
FundInfoSimpleListResp
>>
noNavFundSimpleList
(
@RequestBody
List
<
String
>
idList
);
@ApiOperation
(
"基金公司 - 私有基金"
)
@GetMapping
(
"/private/fund/company"
)
CommonResp
<
FundCompanyVO
>
getPrivateFundCompanyInfo
(
@ApiParam
(
"基金公司id"
)
@RequestParam
(
"id"
)
String
id
,
...
...
src/main/java/com/tanpu/fund/controller/ProductController.java
View file @
510a330c
...
...
@@ -185,6 +185,11 @@ public class ProductController implements ProductApi {
return
CommonResp
.
success
(
productService
.
getPrivateSimpleList
(
idList
));
}
@Override
public
CommonResp
<
List
<
FundInfoSimpleListResp
>>
noNavFundSimpleList
(
List
<
String
>
idList
)
{
return
CommonResp
.
success
(
productService
.
getNoNavFundSimpleList
(
idList
));
}
@Override
public
CommonResp
<
FundCompanyVO
>
getPrivateFundCompanyInfo
(
String
id
,
String
ifaId
,
Pageable
page
)
{
return
CommonResp
.
success
(
this
.
productPrivateService
.
getFundCompany
(
id
,
ifaId
,
page
));
...
...
src/main/java/com/tanpu/fund/service/ProductService.java
View file @
510a330c
...
...
@@ -94,4 +94,6 @@ public interface ProductService {
List
<
FundSameResp
>
getNoNetfund
(
String
fundId
);
List
<
ProductInfoVO
>
querybyids
(
List
<
String
>
ids
);
List
<
FundInfoSimpleListResp
>
getNoNavFundSimpleList
(
List
<
String
>
idList
);
}
src/main/java/com/tanpu/fund/service/impl/ProductServiceImpl.java
View file @
510a330c
...
...
@@ -2470,4 +2470,20 @@ public class ProductServiceImpl implements ProductService, Constant {
return
p
;
}).
collect
(
Collectors
.
toList
());
}
@Override
public
List
<
FundInfoSimpleListResp
>
getNoNavFundSimpleList
(
List
<
String
>
idList
)
{
if
(
CollectionUtils
.
isEmpty
(
idList
))
{
return
Lists
.
newArrayListWithCapacity
(
0
);
}
IfaImportedNonavFundExample
example
=
new
IfaImportedNonavFundExample
();
example
.
createCriteria
().
andIdIn
(
idList
);
List
<
IfaImportedNonavFund
>
ifaImportedNonavFundList
=
ifaImportedNonavFundMapper
.
selectByExample
(
example
);
return
ifaImportedNonavFundList
.
stream
().
map
(
fundInfo
->
FundInfoSimpleListResp
.
builder
()
.
id
(
fundInfo
.
getId
())
.
fundName
(
fundInfo
.
getFundName
())
.
fundShortName
(
fundInfo
.
getFundName
())
.
build
())
.
collect
(
Collectors
.
toList
());
}
}
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