修复设备上线通用通道不上线的问题

结构优化
648540858 2024-01-18 10:16:09 +08:00
parent f38d561e60
commit 8795281443
1 changed files with 4 additions and 4 deletions

View File

@ -154,10 +154,10 @@ public class DeviceServiceImpl implements IDeviceService {
logger.error("[命令发送失败] 查询设备信息: {}", e.getMessage()); logger.error("[命令发送失败] 查询设备信息: {}", e.getMessage());
} }
sync(device); sync(device);
List<Integer> ids = deviceChannelMapper.getCommonChannelIdList(device.getDeviceId()); }
if (!ids.isEmpty()) { List<Integer> ids = deviceChannelMapper.getCommonChannelIdList(device.getDeviceId());
commonGbChannelService.onlineForList(ids); if (!ids.isEmpty()) {
} commonGbChannelService.onlineForList(ids);
} }
// 上线添加订阅 // 上线添加订阅
if (device.getSubscribeCycleForCatalog() > 0) { if (device.getSubscribeCycleForCatalog() > 0) {