Showing
1 changed file
with
4 additions
and
1 deletions
... | ... | @@ -104,7 +104,10 @@ public class RpcCommandTask { |
104 | 104 | && cancelExecuteDevices.contains(deviceId)) { |
105 | 105 | continue; |
106 | 106 | } |
107 | - sendRpcCommand(cmdJsonNode, tenantId, deviceId, securityUser, taskCenterId); | |
107 | + DeviceDTO dto = tkDeviceService.findDeviceInfoByTbDeviceId(tenantId, deviceId); | |
108 | + if (null != dto) { | |
109 | + sendRpcCommand(cmdJsonNode, tenantId, deviceId, securityUser, taskCenterId); | |
110 | + } | |
108 | 111 | } |
109 | 112 | } else { |
110 | 113 | sendRpcCommandByProducts( | ... | ... |