Browse Source

感知事件桩号事件排序

develop
wangsixiang 1 year ago
parent
commit
e7ddf46ccc
  1. 2
      zc-business/src/main/resources/mapper/business/DcPerceivedEventsWarningMapper.xml

2
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

Loading…
Cancel
Save