Commit 50c786df authored by Eddie.Wu's avatar Eddie.Wu

Merge branch 'dev_mysql_chase_bug_1' into 'dev_mysql'

fix bug

See merge request root/atms!443
parents d295d6fc 22508b10
......@@ -25,7 +25,6 @@
when tbf.segment3 like '4010%' and rc.id is null then 1
when tbf.segment3 like '800201%' and rc.id is null then 1
when tbf.segment3 like '800209%' and rc.id is null then 1
<![CDATA[WHEN rc.id IS NOT NULL and (rc.start_date > #{queryDate} or rc.end_date < #{queryDate}) then 1]]>
<![CDATA[WHEN rc.id IS NOT NULL and rc.start_date <= #{queryDate} and rc.end_date >= #{queryDate} THEN 2]]>
else 3 end as emptyCode
from trial_balance_final as tbf
......@@ -39,6 +38,8 @@
rc.tb_segment5 = tbf.segment5
and
rc.tb_segment6 = tbf.segment6
<![CDATA[ and rc.start_date <= #{queryDate}]]>
and rc.end_date >= #{queryDate}
where
tbf.project_id = #{projectId}
and tbf.period = #{period}
......
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