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
077a3b13
Commit
077a3b13
authored
Mar 23, 2021
by
zp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
分页信息
parent
1a530d00
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
5 deletions
+8
-5
ProductApi.java
src/main/java/com/tanpu/fund/api/ProductApi.java
+2
-1
ProductController.java
...ain/java/com/tanpu/fund/controller/ProductController.java
+2
-2
ProductService.java
src/main/java/com/tanpu/fund/service/ProductService.java
+1
-1
ProductServiceImpl.java
.../java/com/tanpu/fund/service/impl/ProductServiceImpl.java
+3
-1
No files found.
src/main/java/com/tanpu/fund/api/ProductApi.java
View file @
077a3b13
...
...
@@ -186,5 +186,6 @@ public interface ProductApi {
@ApiOperation
(
"公募基金模糊匹配"
)
@GetMapping
(
"/public/like"
)
CommonResp
<
List
<
Type
>>
getFundLikeShortNameInfo
(
@Valid
@NotEmpty
(
message
=
"产品名称不能为空"
)
@RequestParam
(
"productName"
)
String
productName
);
CommonResp
<
List
<
Type
>>
getFundLikeShortNameInfo
(
@Valid
@NotEmpty
(
message
=
"产品名称不能为空"
)
@RequestParam
(
"productName"
)
String
productName
,
Pageable
page
);
}
src/main/java/com/tanpu/fund/controller/ProductController.java
View file @
077a3b13
...
...
@@ -235,7 +235,7 @@ public class ProductController implements ProductApi {
}
@Override
public
CommonResp
<
List
<
Type
>>
getFundLikeShortNameInfo
(
String
productName
)
{
return
CommonResp
.
success
(
this
.
productService
.
getFundLikeShortName
(
productName
));
public
CommonResp
<
List
<
Type
>>
getFundLikeShortNameInfo
(
String
productName
,
Pageable
page
)
{
return
CommonResp
.
success
(
this
.
productService
.
getFundLikeShortName
(
productName
,
page
));
}
}
src/main/java/com/tanpu/fund/service/ProductService.java
View file @
077a3b13
...
...
@@ -86,5 +86,5 @@ public interface ProductService {
Long
getFundRankCountInfo
(
FundRankReq
req
);
List
<
Type
>
getFundLikeShortName
(
String
productName
);
List
<
Type
>
getFundLikeShortName
(
String
productName
,
Pageable
page
);
}
src/main/java/com/tanpu/fund/service/impl/ProductServiceImpl.java
View file @
077a3b13
...
...
@@ -2294,7 +2294,9 @@ public class ProductServiceImpl implements ProductService, Constant {
}
@Override
public
List
<
Type
>
getFundLikeShortName
(
String
productName
)
{
public
List
<
Type
>
getFundLikeShortName
(
String
productName
,
Pageable
page
)
{
PageMethod
.
startPage
(
page
.
getPageNumber
(),
page
.
getPageSize
());
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