Commit 077a3b13 authored by zp's avatar zp

分页信息

parent 1a530d00
...@@ -186,5 +186,6 @@ public interface ProductApi { ...@@ -186,5 +186,6 @@ public interface ProductApi {
@ApiOperation("公募基金模糊匹配") @ApiOperation("公募基金模糊匹配")
@GetMapping("/public/like") @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);
} }
...@@ -235,7 +235,7 @@ public class ProductController implements ProductApi { ...@@ -235,7 +235,7 @@ public class ProductController implements ProductApi {
} }
@Override @Override
public CommonResp<List<Type>> getFundLikeShortNameInfo(String productName) { public CommonResp<List<Type>> getFundLikeShortNameInfo(String productName, Pageable page) {
return CommonResp.success(this.productService.getFundLikeShortName(productName)); return CommonResp.success(this.productService.getFundLikeShortName(productName, page));
} }
} }
...@@ -86,5 +86,5 @@ public interface ProductService { ...@@ -86,5 +86,5 @@ public interface ProductService {
Long getFundRankCountInfo(FundRankReq req); Long getFundRankCountInfo(FundRankReq req);
List<Type> getFundLikeShortName(String productName); List<Type> getFundLikeShortName(String productName, Pageable page);
} }
...@@ -2294,7 +2294,9 @@ public class ProductServiceImpl implements ProductService, Constant { ...@@ -2294,7 +2294,9 @@ public class ProductServiceImpl implements ProductService, Constant {
} }
@Override @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 + "%"); return this.fundInfoCustomMapper.getFundInfoLikeName("%" + productName + "%");
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment