修复添加业务分组失败

This commit is contained in:
648540858
2022-09-08 17:51:12 +08:00
parent 394c40d8bb
commit feb9996538
3 changed files with 341 additions and 448 deletions

View File

@@ -428,7 +428,6 @@ public class StreamPushServiceImpl implements IStreamPushService {
platformId, platformForEvent.get(platformId), CatalogEvent.ADD);
}
}
}
}

View File

@@ -695,7 +695,7 @@ public class VideoManagerStorageImpl implements IVideoManagerStorage {
return 0;
}
if (platform.getTreeType().equals(TreeType.BUSINESS_GROUP)) {
if (platformCatalog.getPlatformId().equals(platformCatalog.getParentId())) {
if (platform.getDeviceGBId().equals(platformCatalog.getParentId())) {
// 第一层节点
platformCatalog.setBusinessGroupId(platformCatalog.getId());
platformCatalog.setParentId(platform.getDeviceGBId());