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
ebea1ef6
Commit
ebea1ef6
authored
Feb 28, 2025
by
zhouleilei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
时间分组优化
parent
32bb47a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
HoloEventMapper.xml
...ize-service/src/main/resources/mapper/HoloEventMapper.xml
+4
-4
No files found.
signal-optimize-service/src/main/resources/mapper/HoloEventMapper.xml
View file @
ebea1ef6
...
...
@@ -211,10 +211,10 @@
sum( TIMESTAMPDIFF( SECOND, start_time, ifnull( end_time, now())) ) duration,
count(*) as count,
case
when #{timeType}=5 then DATE_FORMAT(
concat( date( start_time ), ' ', HOUR ( start_time ), ':', floor( MINUTE ( start_time ) / 10 ) * 10 ),
'%H:%i' )
when #{timeType}=1 then DATE_FORMAT(
concat( date( start_time ), ' ', HOUR ( start_time ), ':', floor( MINUTE ( start_time ) / 15 ) * 15 ),
'%H:%i' )
when #{timeType}=2 then DATE_FORMAT(
concat( date( start_time ), ' ', HOUR ( start_time ), ':', floor( MINUTE ( start_time ) / 30 ) * 30 ),
'%H:%i' )
when #{timeType}=3 then DATE_FORMAT(
start_time, '%H:00
' )
when #{timeType}=5 then DATE_FORMAT(
DATE_ADD( start_time, INTERVAL ( 10 - ( MINUTE ( start_time ) % 10 )) % 10 MINUTE ),
'%H:%i' )
when #{timeType}=1 then DATE_FORMAT(
DATE_ADD( start_time, INTERVAL ( 15 - ( MINUTE ( start_time ) % 15 )) % 15 MINUTE ),
'%H:%i' )
when #{timeType}=2 then DATE_FORMAT(
DATE_ADD( start_time, INTERVAL ( 30 - ( MINUTE ( start_time ) % 30 )) % 30 MINUTE ),
'%H:%i' )
when #{timeType}=3 then DATE_FORMAT(
DATE_ADD( start_time, INTERVAL ( 60 - ( MINUTE ( start_time ) % 60 )) % 60 MINUTE ), '%H:%i
' )
end as time_axis_start
FROM
t_event_info
...
...
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