|
@ -302,7 +302,7 @@ |
|
|
else TIMESTAMPDIFF(MINUTE,start_time,end_time) |
|
|
else TIMESTAMPDIFF(MINUTE,start_time,end_time) |
|
|
end) minuteTime |
|
|
end) minuteTime |
|
|
from dc_event |
|
|
from dc_event |
|
|
where event_type = '1' |
|
|
where event_type = '1' and direction = #{direction} |
|
|
<if test="type != null and type == '1'.toString"> |
|
|
<if test="type != null and type == '1'.toString"> |
|
|
and DATE_FORMAT(start_time,'%Y%m%d') = DATE_FORMAT(#{startTime},'%Y%m%d') |
|
|
and DATE_FORMAT(start_time,'%Y%m%d') = DATE_FORMAT(#{startTime},'%Y%m%d') |
|
|
</if> |
|
|
</if> |
|
@ -324,7 +324,7 @@ |
|
|
else TIMESTAMPDIFF(MINUTE,start_time,end_time) |
|
|
else TIMESTAMPDIFF(MINUTE,start_time,end_time) |
|
|
end) minuteTime |
|
|
end) minuteTime |
|
|
from dc_event |
|
|
from dc_event |
|
|
where event_type = '1' |
|
|
where event_type = '1' and direction = #{direction} |
|
|
<if test="type != null and type == '1'.toString"> |
|
|
<if test="type != null and type == '1'.toString"> |
|
|
and DATE_FORMAT(start_time,'%Y%m%d') = DATE_FORMAT(DATE_SUB(#{startTime},INTERVAL 1 DAY),'%Y%m%d') |
|
|
and DATE_FORMAT(start_time,'%Y%m%d') = DATE_FORMAT(DATE_SUB(#{startTime},INTERVAL 1 DAY),'%Y%m%d') |
|
|
</if> |
|
|
</if> |
|
|