|
@ -257,7 +257,7 @@ |
|
|
LEFT JOIN |
|
|
LEFT JOIN |
|
|
(select t2.section_id, count(*) num |
|
|
(select t2.section_id, count(*) num |
|
|
from dc_event t1 |
|
|
from dc_event t1 |
|
|
left join dc_stake_mark t2 on t1.stake_mark = t2.id and t1.direction = t2.direction |
|
|
left join dc_stake_mark t2 on t1.stake_mark = t2.stake_mark and t1.direction = t2.direction |
|
|
where |
|
|
where |
|
|
t1.event_type = '1' and t1.direction = #{direction} |
|
|
t1.event_type = '1' and t1.direction = #{direction} |
|
|
<if test="type != null and type == '1'.toString"> |
|
|
<if test="type != null and type == '1'.toString"> |
|
@ -277,7 +277,7 @@ |
|
|
LEFT JOIN |
|
|
LEFT JOIN |
|
|
(select t2.section_id, count(*) lastNum |
|
|
(select t2.section_id, count(*) lastNum |
|
|
from dc_event t1 |
|
|
from dc_event t1 |
|
|
left join dc_stake_mark t2 on t1.stake_mark = t2.id and t1.direction = t2.direction |
|
|
left join dc_stake_mark t2 on t1.stake_mark = t2.stake_mark and t1.direction = t2.direction |
|
|
where |
|
|
where |
|
|
t1.event_type = '1' and t1.direction = #{direction} |
|
|
t1.event_type = '1' and t1.direction = #{direction} |
|
|
<if test="type != null and type == '1'.toString"> |
|
|
<if test="type != null and type == '1'.toString"> |
|
|