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
ec7a762a
Commit
ec7a762a
authored
Jan 15, 2025
by
zhoushiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
路口实时状态接口
parent
4403e0af
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
8 deletions
+10
-8
EventAlarmInfo.java
...ce/src/main/java/net/wanji/opt/entity/EventAlarmInfo.java
+1
-1
HoloEventMapper.xml
...ize-service/src/main/resources/mapper/HoloEventMapper.xml
+9
-7
No files found.
signal-optimize-service/src/main/java/net/wanji/opt/entity/EventAlarmInfo.java
View file @
ec7a762a
...
...
@@ -50,7 +50,7 @@ public class EventAlarmInfo {
@ApiModelProperty
(
value
=
"持续时间,单位秒"
)
private
Integer
duration
;
@ApiModelProperty
(
value
=
"路口状态
701:空放 702:失衡 703:溢出 -1:正常
"
)
@ApiModelProperty
(
value
=
"路口状态
0正常 1失衡 2拥堵 3溢出 5空放
"
)
private
Integer
status
;
}
signal-optimize-service/src/main/resources/mapper/HoloEventMapper.xml
View file @
ec7a762a
...
...
@@ -116,7 +116,9 @@
</select>
<!-- 查询路口未结束的报警状态 -->
<select
id=
"findNotFinishAlarmInfo"
parameterType=
"String"
resultMap=
"eventAlarm"
>
select DISTINCT ifnull(a.type,-1) as status,
select
DISTINCT
case when a.type=701 then 5 when a.type=702 then 1 when a.type=703 then 3 when a.type=707 then 2 else ifnull(a.type,0) end as status,
c.id as cross_id,
c.name as cross_name ,
b.label as current_algo,
...
...
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