| | |
| | | } |
| | | |
| | | //如果关风机 |
| | | if (DeviceStatus.F_CLOSE.equals(exeDevice.getTargetStatus())) { |
| | | if (DeviceStatus.F_CLOSE.getCode().equals(exeDevice.getTargetStatus())) { |
| | | temp = modbusTcpLink.getDeviceModbus().getStop(); |
| | | modbusTcpLink.setAddrExe(this.getAddrExe(temp)); |
| | | |
| | |
| | | |
| | | |
| | | //如果开窗 |
| | | if (DeviceStatus.W_OPEN.equals(exeDevice.getTargetStatus())) { |
| | | if (DeviceStatus.W_OPEN.getCode().equals(exeDevice.getTargetStatus())) { |
| | | temp = modbusTcp.getDeviceModbus().getOpen(); |
| | | modbusTcp.setAddrExe(this.getAddrExe(temp)); |
| | | |
| | |
| | | } |
| | | |
| | | //如果是关窗户 |
| | | if (DeviceStatus.W_CLOSE.equals(exeDevice.getTargetStatus())) { |
| | | if (DeviceStatus.W_CLOSE.getCode().equals(exeDevice.getTargetStatus())) { |
| | | |
| | | //先关风机 |
| | | temp = modbusTcpLink.getDeviceModbus().getStop(); |