Commit 38a437616cbc94b5d52849617867b3b6088ea500

Authored by xp.Huang
1 parent 3d0c0b65

fix: 按设备执行时,只有设备存在才执行任务

@@ -104,7 +104,10 @@ public class RpcCommandTask { @@ -104,7 +104,10 @@ public class RpcCommandTask {
104 && cancelExecuteDevices.contains(deviceId)) { 104 && cancelExecuteDevices.contains(deviceId)) {
105 continue; 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 } else { 112 } else {
110 sendRpcCommandByProducts( 113 sendRpcCommandByProducts(