diff --git a/zc-business/src/main/resources/mapper/business/DcPerceivedEventsWarningMapper.xml b/zc-business/src/main/resources/mapper/business/DcPerceivedEventsWarningMapper.xml index fcde4c70..660425ea 100644 --- a/zc-business/src/main/resources/mapper/business/DcPerceivedEventsWarningMapper.xml +++ b/zc-business/src/main/resources/mapper/business/DcPerceivedEventsWarningMapper.xml @@ -49,7 +49,7 @@ select s.section_name sectionName,COUNT(1) number from dc_warning as w left JOIN dc_stake_mark as mark ON mark.stake_mark=w.stake_mark and mark.direction=w.direction LEFT JOIN dc_road_section as s ON mark.section_id=s.id - where mark.stake_mark is not null and DATE_FORMAT(w.warning_time,'%Y-%m-%d')='2024-02-26' + where mark.stake_mark is not null and DATE_FORMAT(w.warning_time,'%Y-%m-%d')=DATE_FORMAT(#{warningTime},'%Y-%m-%d') group by sectionName HAVING number !=0 order by number desc