Browse Source

事故类型分析接口修改

develop
lau572 1 year ago
parent
commit
aa34980973
  1. 4
      zc-business/src/main/resources/mapper/business/DcTrafficIncidentsMapper.xml

4
zc-business/src/main/resources/mapper/business/DcTrafficIncidentsMapper.xml

@ -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>

Loading…
Cancel
Save