Commit 4ae3ed85 authored by zp's avatar zp

净值

parent 920caac9
......@@ -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);
}
......@@ -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));
}
}
......@@ -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);
}
......@@ -85,4 +85,6 @@ public interface ProductService {
Page<FundRankResp> getFundRank(FundRankReq req);
Long getFundRankCountInfo(FundRankReq req);
List<Type> getFundLikeShortName(String productName);
}
......@@ -2293,4 +2293,9 @@ public class ProductServiceImpl implements ProductService, Constant {
}
@Override
public List<Type> getFundLikeShortName(String 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