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
4ae3ed85
Commit
4ae3ed85
authored
Mar 23, 2021
by
zp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
净值
parent
920caac9
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
19 additions
and
0 deletions
+19
-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
FundInfoCustomMapper.java
...pu/fund/mapper/generator/custom/FundInfoCustomMapper.java
+3
-0
ProductService.java
src/main/java/com/tanpu/fund/service/ProductService.java
+2
-0
ProductServiceImpl.java
.../java/com/tanpu/fund/service/impl/ProductServiceImpl.java
+5
-0
No files found.
src/main/java/com/tanpu/fund/api/ProductApi.java
View file @
4ae3ed85
...
...
@@ -183,4 +183,8 @@ public interface ProductApi {
@ApiOperation
(
"私募排行统计"
)
@PostMapping
(
"/private/rank/count"
)
CommonResp
<
Long
>
getFundRankCountInfo
(
@RequestBody
FundRankReq
req
);
@ApiOperation
(
"公募基金模糊匹配"
)
@GetMapping
(
"/public/like"
)
CommonResp
<
List
<
Type
>>
getFundLikeShortNameInfo
(
@Valid
@NotEmpty
(
message
=
"产品名称不能为空"
)
@RequestParam
(
"productName"
)
String
productName
);
}
src/main/java/com/tanpu/fund/controller/ProductController.java
View file @
4ae3ed85
...
...
@@ -233,4 +233,9 @@ public class ProductController implements ProductApi {
public
CommonResp
<
Long
>
getFundRankCountInfo
(
FundRankReq
req
)
{
return
CommonResp
.
success
(
this
.
productService
.
getFundRankCountInfo
(
req
));
}
@Override
public
CommonResp
<
List
<
Type
>>
getFundLikeShortNameInfo
(
String
productName
)
{
return
CommonResp
.
success
(
this
.
productService
.
getFundLikeShortName
(
productName
));
}
}
src/main/java/com/tanpu/fund/mapper/generator/custom/FundInfoCustomMapper.java
View file @
4ae3ed85
...
...
@@ -54,4 +54,7 @@ public interface FundInfoCustomMapper {
@Select
(
"select t.id as id, t.fund_name as `value` from ifa_imported_fund_info t where t.id in(${list})"
)
List
<
Type
>
getSimplePrivateFundList
(
@Param
(
"list"
)
String
list
);
@Select
(
"select t.id as id,t.fund_short_name as value from tx_fund_info t where t.fund_short_name like #{productName}"
)
List
<
Type
>
getFundInfoLikeName
(
@Param
(
"productName"
)
String
productName
);
}
src/main/java/com/tanpu/fund/service/ProductService.java
View file @
4ae3ed85
...
...
@@ -85,4 +85,6 @@ public interface ProductService {
Page
<
FundRankResp
>
getFundRank
(
FundRankReq
req
);
Long
getFundRankCountInfo
(
FundRankReq
req
);
List
<
Type
>
getFundLikeShortName
(
String
productName
);
}
src/main/java/com/tanpu/fund/service/impl/ProductServiceImpl.java
View file @
4ae3ed85
...
...
@@ -2293,4 +2293,9 @@ public class ProductServiceImpl implements ProductService, Constant {
}
@Override
public
List
<
Type
>
getFundLikeShortName
(
String
productName
)
{
return
this
.
fundInfoCustomMapper
.
getFundInfoLikeName
(
"%"
+
productName
+
"%"
);
}
}
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