Commit 1978d8b6 authored by duanruiming's avatar duanruiming

[update] 实时灯态5s推送一次

parent 09734f43
...@@ -16,8 +16,8 @@ public class StepControlVO { ...@@ -16,8 +16,8 @@ public class StepControlVO {
@ApiModelProperty(value = "路口编号", notes = "路口编号") @ApiModelProperty(value = "路口编号", notes = "路口编号")
@NotBlank(message = "路口编号不能为空") @NotBlank(message = "路口编号不能为空")
private String code; private String code;
@ApiModelProperty(value = "1 开始步进 0 取消步进", notes = "1 开始步进 0 取消步进")
private int stepNum;
@ApiModelProperty(value = "0 顺序步进 n 跳过n个相位", notes = "0 顺序步进 n 跳过n个相位") @ApiModelProperty(value = "0 顺序步进 n 跳过n个相位", notes = "0 顺序步进 n 跳过n个相位")
private int stepNum;
@ApiModelProperty(value = "1 开始步进 0 取消步进", notes = "1 开始步进 0 取消步进")
private Integer command; private Integer command;
} }
...@@ -35,7 +35,7 @@ public class SignalStatusTask { ...@@ -35,7 +35,7 @@ public class SignalStatusTask {
} }
// 灯态,5秒一次 // 灯态,5秒一次
@Scheduled(fixedRate = 1 * 60 * 1000) @Scheduled(fixedRate = 5 * 1000)
public void lightStatus() { public void lightStatus() {
try { try {
......
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