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

结构优化
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,11 +154,11 @@ public class DeviceServiceImpl implements IDeviceService {
logger.error("[命令发送失败] 查询设备信息: {}", e.getMessage()); logger.error("[命令发送失败] 查询设备信息: {}", e.getMessage());
} }
sync(device); sync(device);
}
List<Integer> ids = deviceChannelMapper.getCommonChannelIdList(device.getDeviceId()); List<Integer> ids = deviceChannelMapper.getCommonChannelIdList(device.getDeviceId());
if (!ids.isEmpty()) { if (!ids.isEmpty()) {
commonGbChannelService.onlineForList(ids); commonGbChannelService.onlineForList(ids);
} }
}
// 上线添加订阅 // 上线添加订阅
if (device.getSubscribeCycleForCatalog() > 0) { if (device.getSubscribeCycleForCatalog() > 0) {
// 查询在线设备那些开启了订阅,为设备开启定时的目录订阅 // 查询在线设备那些开启了订阅,为设备开启定时的目录订阅