Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
traffic-signal-platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
signal
traffic-signal-platform
Commits
81f14b22
Commit
81f14b22
authored
Jan 14, 2025
by
zhouleilei
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
2b8b80e5
6e05e8dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
11 deletions
+6
-11
HoloEventMapper.xml
...ize-service/src/main/resources/mapper/HoloEventMapper.xml
+6
-11
No files found.
signal-optimize-service/src/main/resources/mapper/HoloEventMapper.xml
View file @
81f14b22
...
@@ -103,18 +103,13 @@
...
@@ -103,18 +103,13 @@
ifnull(t2.count, 0) count, ifnull(t2.duration, 0) duration, t1.`name` name
ifnull(t2.count, 0) count, ifnull(t2.duration, 0) duration, t1.`name` name
from t_base_cross_info t1
from t_base_cross_info t1
left join
left join
(select
t1.cross_id, t1.type, t1.
place_desc,
(select
cross_id, type,
place_desc,
count(*) count,
count(*) count,
sum(TIMESTAMPDIFF(SECOND, t1.start_time, ifnull(t1.end_time,now()))) duration
sum(TIMESTAMPDIFF(SECOND, start_time, ifnull(end_time,now()))) duration
from t_event_info t1
from t_event_info
left join (
where type in (701, 702, 703, 707) and start_time > DATE_FORMAT(now(),'%Y-%m-%d 00:00:00')
select t2.cross_id, MAX(t2.start_time) start_time
group by cross_id, type
from t_event_info t2
order by duration desc) t2
where t2.type in (701, 702, 703, 707) and t2.start_time > DATE_FORMAT(now(),'%Y-%m-%d 00:00:00')
group by t2.cross_id
) t2 on t1.cross_id = t2.cross_id and t1.start_time and t2.start_time
where t1.start_time > DATE_FORMAT(now(),'%Y-%m-%d 00:00:00')
group by t1.cross_id) t2
on t2.cross_id = t1.id
on t2.cross_id = t1.id
where t1.is_signal = 1
where t1.is_signal = 1
order by t2.duration desc
order by t2.duration desc
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment