Commit 982f885a authored by duanruiming's avatar duanruiming

[update] 万集标准类型优化

parent bd3e8970
...@@ -108,15 +108,15 @@ public class WanJiControlCommandServiceImpl implements ControlCommandService { ...@@ -108,15 +108,15 @@ public class WanJiControlCommandServiceImpl implements ControlCommandService {
controlCommandVO.setCrossCode(crossId); controlCommandVO.setCrossCode(crossId);
controlCommandVO.setCommand(command); controlCommandVO.setCommand(command);
controlCommandVO.setDuration(999); controlCommandVO.setDuration(999);
if (Objects.equals(Constants.CLOSE_LIGHT_CONTROL, command)) { if (Objects.equals(Constants.CLOSE_LIGHT_CONTROL, commandType)) {
controlCommandVO.setControlType(Constants.CLOSE_LIGHT_CONTROL); controlCommandVO.setControlType(Constants.CLOSE_LIGHT_CONTROL);
jsonViewObject = utcFeignClientService.closeLightControl(controlCommandVO); jsonViewObject = utcFeignClientService.closeLightControl(controlCommandVO);
} }
if (Objects.equals(Constants.YELLOW_LIGHT_CONTROL, command)) { if (Objects.equals(Constants.YELLOW_LIGHT_CONTROL, commandType)) {
controlCommandVO.setControlType(Constants.YELLOW_LIGHT_CONTROL); controlCommandVO.setControlType(Constants.YELLOW_LIGHT_CONTROL);
jsonViewObject = utcFeignClientService.closeLightControl(controlCommandVO); jsonViewObject = utcFeignClientService.closeLightControl(controlCommandVO);
} }
if (Objects.equals(Constants.ALL_RED_CONTROL, command)) { if (Objects.equals(Constants.ALL_RED_CONTROL, commandType)) {
controlCommandVO.setControlType(Constants.ALL_RED_CONTROL); controlCommandVO.setControlType(Constants.ALL_RED_CONTROL);
jsonViewObject = utcFeignClientService.closeLightControl(controlCommandVO); jsonViewObject = utcFeignClientService.closeLightControl(controlCommandVO);
} }
......
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