Commit 077a3b13 authored by zp's avatar zp

分页信息

parent 1a530d00
......@@ -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);
}
......@@ -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));
}
}
......@@ -86,5 +86,5 @@ public interface ProductService {
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 {
}
@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 + "%");
}
......
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