Commit 2253e8b0 authored by duanruiming's avatar duanruiming

[update] 优化相位锁定

parent 02e0e6fc
...@@ -71,7 +71,7 @@ public class WanJiControlCommandServiceImpl implements ControlCommandService { ...@@ -71,7 +71,7 @@ public class WanJiControlCommandServiceImpl implements ControlCommandService {
String manufacturerIdCode = crossInfoCache.getManufacturerCodeByCrossId(commandVO.getCrossCode()); String manufacturerIdCode = crossInfoCache.getManufacturerCodeByCrossId(commandVO.getCrossCode());
LockControlVO lockControlVO = new LockControlVO(); LockControlVO lockControlVO = new LockControlVO();
lockControlVO.setCrossCode(commandVO.getCrossCode()); lockControlVO.setCrossCode(commandVO.getCrossCode());
lockControlVO.setCommand(lockControlVO.getCommand()); lockControlVO.setCommand(commandVO.getCommand());
lockControlVO.setDuration(commandVO.getDuration()); lockControlVO.setDuration(commandVO.getDuration());
lockControlVO.setPhaseList(commandVO.getPhaseList()); lockControlVO.setPhaseList(commandVO.getPhaseList());
JsonViewObject jsonViewObject = utcFeignClientCache.getUtcFeignClientService(manufacturerIdCode).lockControl(lockControlVO); JsonViewObject jsonViewObject = utcFeignClientCache.getUtcFeignClientService(manufacturerIdCode).lockControl(lockControlVO);
......
...@@ -22,7 +22,7 @@ public class ControlCommandVO { ...@@ -22,7 +22,7 @@ public class ControlCommandVO {
@Pattern(regexp = "^[A-Za-z0-9]{11}$", message = "路口编号只能包含英文、数字,必须11个字符") @Pattern(regexp = "^[A-Za-z0-9]{11}$", message = "路口编号只能包含英文、数字,必须11个字符")
private String crossCode; private String crossCode;
@ApiModelProperty(value = "1是;0否") @ApiModelProperty(value = "控制类型")
@NotNull(message = "控制类型不可为空,1是;0否") @NotNull(message = "控制类型不可为空,1是;0否")
@Max(value = 1, message = "控制类型:1是;0否") @Max(value = 1, message = "控制类型:1是;0否")
@Min(value = 0, message = "控制类型:1是;0否") @Min(value = 0, message = "控制类型:1是;0否")
......
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