diff --git a/zc-business/src/main/resources/mapper/business/DcPerceivedEventsWarningMapper.xml b/zc-business/src/main/resources/mapper/business/DcPerceivedEventsWarningMapper.xml index 1703737b..1708b67a 100644 --- a/zc-business/src/main/resources/mapper/business/DcPerceivedEventsWarningMapper.xml +++ b/zc-business/src/main/resources/mapper/business/DcPerceivedEventsWarningMapper.xml @@ -691,7 +691,7 @@ FROM dc_warning AS w LEFT JOIN dc_stake_mark AS sm ON w.stake_mark = sm.stake_mark and w.direction=sm.direction LEFT JOIN dc_road_section AS s ON sm.section_id = s.id - WHERE w.warning_source != 6 AND DATE(w.warning_time) = DATE(#{currently}) + WHERE w.warning_source != 6 AND warning_time >= #{currently} AND warning_time < #{currently} + INTERVAL 1 DAY GROUP BY w.warning_state,s.section_name ORDER BY s.start_stake_mark