diff --git a/zc-business/src/main/resources/mapper/business/DcTrafficIncidentsMapper.xml b/zc-business/src/main/resources/mapper/business/DcTrafficIncidentsMapper.xml index 1587360d..d4eacf37 100644 --- a/zc-business/src/main/resources/mapper/business/DcTrafficIncidentsMapper.xml +++ b/zc-business/src/main/resources/mapper/business/DcTrafficIncidentsMapper.xml @@ -302,7 +302,7 @@ else TIMESTAMPDIFF(MINUTE,start_time,end_time) end) minuteTime from dc_event - where event_type = '1' + where event_type = '1' and direction = #{direction} and DATE_FORMAT(start_time,'%Y%m%d') = DATE_FORMAT(#{startTime},'%Y%m%d') @@ -324,7 +324,7 @@ else TIMESTAMPDIFF(MINUTE,start_time,end_time) end) minuteTime from dc_event - where event_type = '1' + where event_type = '1' and direction = #{direction} and DATE_FORMAT(start_time,'%Y%m%d') = DATE_FORMAT(DATE_SUB(#{startTime},INTERVAL 1 DAY),'%Y%m%d')