Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in
Toggle navigation
T
tamp_fund
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
周鹏
tamp_fund
Commits
f9b3422e
Commit
f9b3422e
authored
Feb 19, 2022
by
钱坤
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
改用update_time吧,因为生产上已经有索引了
parent
c0acea28
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
FundInfoCustomMapper.xml
...main/resources/mybatis/customize/FundInfoCustomMapper.xml
+2
-2
No files found.
src/main/resources/mybatis/customize/FundInfoCustomMapper.xml
View file @
f9b3422e
...
@@ -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.
cre
ate_time as createTime
res.
upd
ate_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
cre
ate_time
<![CDATA[ >]]>
#{start, jdbcType=TIMESTAMP} and delete_tag = 0
upd
ate_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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment