Showing
1 changed file
with
2 additions
and
1 deletions
... | ... | @@ -436,7 +436,8 @@ public class SceneLinkageServiceImpl extends AbstractBaseService<SceneLinkageMap |
436 | 436 | return null; |
437 | 437 | } |
438 | 438 | |
439 | - List<DeviceDTO> organizationDevices = findDeviceList(currentSceneId, tenantId, customerId); | |
439 | + SceneLinkage self = baseMapper.selectById(currentSceneId); | |
440 | + List<DeviceDTO> organizationDevices = findDeviceList(self.getOrganizationId(), tenantId, customerId); | |
440 | 441 | List<String> allDevices = new ArrayList<>(); |
441 | 442 | for (DeviceDTO item : organizationDevices) { |
442 | 443 | allDevices.add(item.getTbDeviceId()); | ... | ... |