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
jinan
traffic-signal-platform
Commits
bb4fb909
Commit
bb4fb909
authored
Mar 28, 2025
by
黄伟铭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
预警事件中的干线预警添加干线方向
parent
9b7a6997
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
OptMonitoringVO.java
...vice/src/main/java/net/wanji/opt/vo2/OptMonitoringVO.java
+2
-0
HoloEventMapper.xml
...ize-service/src/main/resources/mapper/HoloEventMapper.xml
+2
-1
No files found.
signal-optimize-service/src/main/java/net/wanji/opt/vo2/OptMonitoringVO.java
View file @
bb4fb909
...
...
@@ -38,4 +38,6 @@ public class OptMonitoringVO {
@JsonFormat
(
shape
=
JsonFormat
.
Shape
.
STRING
,
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
timezone
=
"GMT+8"
)
private
Date
optTime
;
// todo 后续要不要加策略
@ApiModelProperty
(
value
=
"绿波带方向"
)
private
String
greenDir
;
}
signal-optimize-service/src/main/resources/mapper/HoloEventMapper.xml
View file @
bb4fb909
...
...
@@ -261,7 +261,8 @@
IFNULL(t2.type, '708') AS type,
t1.wkt,
IFNULL(TIMESTAMPDIFF(SECOND, t2.start_time, IFNULL(t2.end_time, NOW())), 0) AS duration,
DATE_FORMAT(IFNULL(t2.start_time, CURDATE()), '%H:%i:%s') AS startTime
DATE_FORMAT(IFNULL(t2.start_time, CURDATE()), '%H:%i:%s') AS startTime,
case t1.green_dir when '3,7' then 'e2w' when '1,5' then 'n2s' end as greenDir
FROM t_greenwave_info t1
LEFT JOIN (
SELECT green_id, MAX(start_time) AS start_time
...
...
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