Commit f9b3422e authored by 钱坤's avatar 钱坤

改用update_time吧,因为生产上已经有索引了

parent c0acea28
...@@ -73,10 +73,10 @@ ...@@ -73,10 +73,10 @@
res.cumulative_nav_withdrawal as cumulativeNavWithdrawal, res.cumulative_nav_withdrawal as cumulativeNavWithdrawal,
res.ishigh_or_low as ishighOrLow, res.ishigh_or_low as ishighOrLow,
res.tohigh_nav_ratio as tohighNavRatio, res.tohigh_nav_ratio as tohighNavRatio,
res.create_time as createTime res.update_time as createTime
from from
(SELECT fund_id, max(price_date) as price_date FROM fund_nav WHERE (SELECT fund_id, max(price_date) as price_date FROM fund_nav WHERE
create_time <![CDATA[ >]]> #{start, jdbcType=TIMESTAMP} and delete_tag = 0 update_time <![CDATA[ >]]> #{start, jdbcType=TIMESTAMP} and delete_tag = 0
and nav is not null and cumulative_nav is not null and nav is not null and cumulative_nav is not null
GROUP by fund_id) t GROUP by fund_id) t
left join fund_nav res on t.fund_id = res.fund_id and t.price_date = res.price_date left join fund_nav res on t.fund_id = res.fund_id and t.price_date = res.price_date
......
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