Commit 40b95287 authored by 张亚辉's avatar 张亚辉

Merge branch 'v2.0.0' into dev

parents 5422f046 846b8ad4
...@@ -185,7 +185,7 @@ public interface ProductApi { ...@@ -185,7 +185,7 @@ public interface ProductApi {
CommonResp<Long> getFundRankCountInfo(@RequestBody FundRankReq req); CommonResp<Long> getFundRankCountInfo(@RequestBody FundRankReq req);
@ApiOperation("公募基金模糊匹配") @ApiOperation("公募基金模糊匹配")
@GetMapping("/public/like") @GetMapping("/private/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); Pageable page);
} }
...@@ -55,6 +55,6 @@ public interface FundInfoCustomMapper { ...@@ -55,6 +55,6 @@ 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})") @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); 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}") @Select("select t.id as id,t.fund_short_name as value from fund_info t where t.fund_short_name like #{productName}")
List<Type> getFundInfoLikeName(@Param("productName") String productName); List<Type> getFundInfoLikeName(@Param("productName") String productName);
} }
...@@ -10,8 +10,8 @@ management.endpoints.web.base-path = /myhealth ...@@ -10,8 +10,8 @@ management.endpoints.web.base-path = /myhealth
management.endpoint.health.enabled=true management.endpoint.health.enabled=true
management.endpoint.health.show-details=always management.endpoint.health.show-details=always
spring.datasource.url=jdbc:mysql://118.190.63.109:3306/tamp_fund?autoReconnect=true&characterEncoding=utf-8&serverTimezone=GMT%2B8&useSSL=false spring.datasource.url=jdbc:mysql://rm-uf6r22t3d798q4kmkao.mysql.rds.aliyuncs.com:3306/tamp_fund?autoReconnect=true&characterEncoding=utf-8&serverTimezone=GMT%2B8&useSSL=false
spring.datasource.username=root spring.datasource.username=tamp_admin
spring.datasource.password= @imeng123 spring.datasource.password= @imeng123
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
......
...@@ -41,12 +41,11 @@ ...@@ -41,12 +41,11 @@
res.ishigh_or_low as ishighOrLow, res.ishigh_or_low as ishighOrLow,
res.tohigh_nav_ratio as tohighNavRatio res.tohigh_nav_ratio as tohighNavRatio
from from
(SELECT * FROM fund_nav WHERE fund_id in (SELECT fund_id, max(price_date) as price_date FROM fund_nav WHERE fund_id in
<foreach close=")" collection="list" item="fundId" open="(" separator=","> <foreach close=")" collection="list" item="fundId" open="(" separator=",">
#{fundId} #{fundId}
</foreach> </foreach> GROUP by fund_id) t
order BY price_date desc) res left join fund_nav res on t.fund_id = res.fund_id and t.price_date = res.price_date
GROUP BY res.fund_id
</select> </select>
<select id="getPrivateFundInfoNewNet" parameterType="java.lang.String" resultType="com.tanpu.fund.entity.generator.FundNav"> <select id="getPrivateFundInfoNewNet" parameterType="java.lang.String" resultType="com.tanpu.fund.entity.generator.FundNav">
......
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