Commit 4403e0af authored by zhoushiguang's avatar zhoushiguang

路口实时状态接口

parent 8d3d431e
...@@ -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({
} }
) )
......
...@@ -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;
} }
...@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment