修复二级目录添加失败的问题

This commit is contained in:
648540858 2022-08-02 11:34:56 +08:00
parent 0d2d73117e
commit cbab9c9be1
2 changed files with 2 additions and 2 deletions

View File

@ -47,7 +47,7 @@ public interface PlatformCatalogMapper {
PlatformCatalog selectDefaultByPlatFormId(String platformId);
@Select("SELECT pc.* FROM platform_catalog pc WHERE pc.id = #{id}")
@Select("SELECT pc.* FROM platform_catalog pc WHERE pc.id = #{id}")
PlatformCatalog selectParentCatalog(String id);
@Select("SELECT pc.id as channelId, pc.name, pc.civilCode, pc.businessGroupId,'1' as parental, pc.parentId " +

View File

@ -708,7 +708,7 @@ public class VideoManagerStorageImpl implements IVideoManagerStorage {
platformCatalog.setParentId(platform.getDeviceGBId());
}else {
// 获取顶层的
PlatformCatalog topCatalog = getTopCatalog(platformCatalog.getParentId(), platformCatalog.getPlatformId());
PlatformCatalog topCatalog = getTopCatalog(platformCatalog.getParentId(), platform.getDeviceGBId());
platformCatalog.setBusinessGroupId(topCatalog.getId());
}
}