From aa34980973439be8e475fc311eb9fd01099a89fb Mon Sep 17 00:00:00 2001 From: lau572 <1010031226@qq.com> Date: Thu, 18 Jan 2024 09:24:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=8B=E6=95=85=E7=B1=BB=E5=9E=8B=E5=88=86?= =?UTF-8?q?=E6=9E=90=E6=8E=A5=E5=8F=A3=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/mapper/business/DcTrafficIncidentsMapper.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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')