Commit efdd8a3e authored by duanruiming's avatar duanruiming

[update] 统一特殊控制类型码值

parent 82f74dc6
...@@ -71,7 +71,7 @@ public class FeignProxyServiceImpl implements FeignProxyService { ...@@ -71,7 +71,7 @@ public class FeignProxyServiceImpl implements FeignProxyService {
String resultMessage = ""; String resultMessage = "";
Integer controlType = commandVO.getControlType(); Integer controlType = commandVO.getControlType();
JsonViewObject jsonViewObject = JsonViewObject.newInstance(); JsonViewObject jsonViewObject = JsonViewObject.newInstance();
if (1 == controlType) { if (3 == controlType) {
jsonViewObject = utcFeignClients.allRedControl(commandVO); jsonViewObject = utcFeignClients.allRedControl(commandVO);
resultMessage = ControlModeEnum.FULL_RED.getName(); resultMessage = ControlModeEnum.FULL_RED.getName();
} }
...@@ -79,7 +79,7 @@ public class FeignProxyServiceImpl implements FeignProxyService { ...@@ -79,7 +79,7 @@ public class FeignProxyServiceImpl implements FeignProxyService {
jsonViewObject = utcFeignClients.yellowLightControl(commandVO); jsonViewObject = utcFeignClients.yellowLightControl(commandVO);
resultMessage = ControlModeEnum.YELLOW_FLASH.getName(); resultMessage = ControlModeEnum.YELLOW_FLASH.getName();
} }
if (3 == controlType) { if (1 == controlType) {
jsonViewObject = utcFeignClients.closeLightControl(commandVO); jsonViewObject = utcFeignClients.closeLightControl(commandVO);
resultMessage = ControlModeEnum.OFF_LIGHT.getName(); resultMessage = ControlModeEnum.OFF_LIGHT.getName();
} }
......
...@@ -348,13 +348,13 @@ public class DTControlCommandServiceImpl implements ControlCommandService { ...@@ -348,13 +348,13 @@ public class DTControlCommandServiceImpl implements ControlCommandService {
if (commandVO.getCommand() == 0) { if (commandVO.getCommand() == 0) {
controlmodel = ControlModelEnum.FIXED_CYCLE.getDtControlHex(); // 取消控制,设置为固定配时 controlmodel = ControlModelEnum.FIXED_CYCLE.getDtControlHex(); // 取消控制,设置为固定配时
} else { } else {
if (commandVO.getControlType() == 1) { // 全红 if (commandVO.getControlType() == 3) { // 全红
controlmodel = ControlModelEnum.RED_CONTROL.getDtControlHex(); controlmodel = ControlModelEnum.RED_CONTROL.getDtControlHex();
} }
if (commandVO.getControlType() == 2) { // 黄闪 if (commandVO.getControlType() == 2) { // 黄闪
controlmodel = ControlModelEnum.YELLOW_CONTROL.getDtControlHex(); controlmodel = ControlModelEnum.YELLOW_CONTROL.getDtControlHex();
} }
if (commandVO.getControlType() == 3) { // 关灯 if (commandVO.getControlType() == 1) { // 关灯
controlmodel = ControlModelEnum.CLOSED_CONTROL.getDtControlHex(); controlmodel = ControlModelEnum.CLOSED_CONTROL.getDtControlHex();
} }
} }
......
...@@ -28,7 +28,7 @@ public class ControlCommandVO { ...@@ -28,7 +28,7 @@ public class ControlCommandVO {
@Min(value = 0, message = "控制类型:1是;0否") @Min(value = 0, message = "控制类型:1是;0否")
private Integer command; private Integer command;
@ApiModelProperty(value = "1全红 2黄闪 3关灯") @ApiModelProperty(value = "1关灯 2黄闪 3全红")
private Integer controlType; private Integer controlType;
@ApiModelProperty(value = "持续时间") @ApiModelProperty(value = "持续时间")
......
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