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