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
9c7c463f
Commit
9c7c463f
authored
Apr 27, 2021
by
张亚辉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
无净值基金
parent
f354a8ea
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
0 deletions
+34
-0
ProductApi.java
src/main/java/com/tanpu/fund/api/ProductApi.java
+4
-0
ProductController.java
...ain/java/com/tanpu/fund/controller/ProductController.java
+9
-0
ProductService.java
src/main/java/com/tanpu/fund/service/ProductService.java
+2
-0
ProductServiceImpl.java
.../java/com/tanpu/fund/service/impl/ProductServiceImpl.java
+19
-0
No files found.
src/main/java/com/tanpu/fund/api/ProductApi.java
View file @
9c7c463f
...
...
@@ -194,4 +194,8 @@ public interface ProductApi {
@GetMapping
(
"/noNetfund/query/samefund"
)
CommonResp
<
List
<
FundSameResp
>>
getNoNetfund
(
@RequestParam
(
"fundId"
)
String
fundId
);
@ApiOperation
(
"无净值基金-根据ID查询列表"
)
@GetMapping
(
"/noNetfund/querybyids"
)
CommonResp
<
List
<
ProductInfoVO
>>
querybyids
(
@RequestParam
(
"list"
)
List
<
String
>
ids
);
}
src/main/java/com/tanpu/fund/controller/ProductController.java
View file @
9c7c463f
package
com
.
tanpu
.
fund
.
controller
;
import
cn.hutool.core.collection.CollectionUtil
;
import
com.tanpu.common.auth.mapping.TanpuInterfaceLoginAuth
;
import
com.tanpu.common.model.Page
;
import
com.tanpu.common.model.Pageable
;
...
...
@@ -246,4 +247,12 @@ public class ProductController implements ProductApi {
}
return
CommonResp
.
success
(
this
.
productService
.
getNoNetfund
(
fundId
));
}
@Override
public
CommonResp
<
List
<
ProductInfoVO
>>
querybyids
(
List
<
String
>
ids
)
{
if
(
CollectionUtil
.
isEmpty
(
ids
))
{
return
CommonResp
.
error
(
CommonResp
.
PARAMETER_INVALID_STATUS_CODE
,
CommonResp
.
PARAMETER_INVALID_MESSAGE
);
}
return
CommonResp
.
success
(
this
.
productService
.
querybyids
(
ids
));
}
}
src/main/java/com/tanpu/fund/service/ProductService.java
View file @
9c7c463f
...
...
@@ -89,4 +89,6 @@ public interface ProductService {
List
<
Type
>
getFundLikeShortName
(
String
productName
,
Pageable
page
);
List
<
FundSameResp
>
getNoNetfund
(
String
fundId
);
List
<
ProductInfoVO
>
querybyids
(
List
<
String
>
ids
);
}
src/main/java/com/tanpu/fund/service/impl/ProductServiceImpl.java
View file @
9c7c463f
...
...
@@ -2431,4 +2431,23 @@ public class ProductServiceImpl implements ProductService, Constant {
return
new
ArrayList
<>(
0
);
}
@Override
public
List
<
ProductInfoVO
>
querybyids
(
List
<
String
>
ids
)
{
IfaImportedNonavFundExample
example
=
new
IfaImportedNonavFundExample
();
example
.
createCriteria
().
andIdIn
(
ids
).
andDeleteTagEqualTo
(
BizEnums
.
DeleteTag
.
tag_init
);
List
<
IfaImportedNonavFund
>
ifaImportedNonavFundList
=
ifaImportedNonavFundMapper
.
selectByExample
(
example
);
if
(
CollectionUtils
.
isNotEmpty
(
ifaImportedNonavFundList
))
{
return
new
ArrayList
<>(
0
);
}
return
ifaImportedNonavFundList
.
stream
().
map
(
item
->
{
ProductInfoVO
p
=
new
ProductInfoVO
();
p
.
setProductName
(
item
.
getFundName
());
p
.
setFundName
(
item
.
getFundName
());
p
.
setFundId
(
item
.
getId
());
p
.
setDesc
(
item
.
getSummary
());
return
p
;
}).
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