Commit 846b8ad4 authored by 张亚辉's avatar 张亚辉

最新净值

parent d8fa4600
...@@ -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