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
a25cd0f5
Commit
a25cd0f5
authored
Apr 27, 2021
by
张亚辉
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'v1.3.3' into dev
parents
4a49d6e6
9c7c463f
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 @
a25cd0f5
...
...
@@ -198,4 +198,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 @
a25cd0f5
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
;
...
...
@@ -252,4 +253,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 @
a25cd0f5
...
...
@@ -92,4 +92,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 @
a25cd0f5
...
...
@@ -2450,4 +2450,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