|
|
|
@ -208,6 +208,9 @@ public class PsdcDeviceServiceImpl implements IPsdcDeviceService { |
|
|
|
|
psdcControlLogMapper.insert(new PsdcControlLog(deviceId, null, null, "设定温度", null, controlMethod, 3, "未找到该设备", controlBy)); |
|
|
|
|
throw new ControlException("控制失败,未找到该设备"); |
|
|
|
|
} |
|
|
|
|
if (psdcDevice.getIsControl() != 2 ){ |
|
|
|
|
throw new ControlException("该设备无法控制,请联系管理员"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
AtomicInteger atomicInteger = new AtomicInteger(0); |
|
|
|
|
|
|
|
|
@ -253,6 +256,7 @@ public class PsdcDeviceServiceImpl implements IPsdcDeviceService { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//TODO 发送MQTT指令
|
|
|
|
|
// psdcControlLogMapper.insert(new PsdcControlLog(deviceId,psdcDevice.getDeviceName(),psdcDevice.getDeviceSn(),controlContext,value,controlMethod,2,"控制成功",controlBy));
|
|
|
|
|
// psdcControlLogMapper.insert(new PsdcControlLog(deviceId,psdcDevice.getDeviceName(),psdcDevice.getDeviceSn(),controlContext,value,controlMethod,3,"等待终端响应超时",controlBy));
|
|
|
|
|