合并主线

结构优化
648540858 2024-01-16 14:56:22 +08:00
parent 8d7d2a3045
commit 9c3eb1493d
2 changed files with 1 additions and 21 deletions

View File

@ -695,7 +695,7 @@ public class SIPCommanderFroPlatform implements ISIPCommanderForPlatform {
}else {
subChannels = channelList.subList(index, channelList.size());
}
logger.info("[发送NOTIFY通知]类型: {},发送数量: {}", type, channels.size());
logger.info("[发送NOTIFY通知]类型: {},发送数量: {}", type, channelList.size());
Integer finalIndex = index;
String catalogXmlContent = getCatalogXmlContentForCatalogOther(parentPlatform, subChannels, type);
sendNotify(parentPlatform, catalogXmlContent, subscribeInfo, eventResult -> {

View File

@ -154,26 +154,6 @@ public class PlatformChannelServiceImpl implements IPlatformChannelService {
return platformChannelMapper.queryChannelByPlatformIdAndChannelDeviceId(platformId, channelId);
}
@Override
public int delAllChannelForGB(String platformId, String catalogId) {
int result;
if (platformId == null) {
return 0;
}
ParentPlatform platform = platformMapper.getParentPlatByServerGBId(platformId);
if (platform == null) {
return 0;
}
if (ObjectUtils.isEmpty(catalogId)) {
catalogId = null;
}
List<DeviceChannel> deviceChannels = platformChannelMapper.queryAllChannelInCatalog(platformId, catalogId);
eventPublisher.catalogEventPublish(platformId, deviceChannels, CatalogEvent.DEL);
return platformChannelMapper.delChannelForGBByCatalogId(platformId, catalogId);
}
@Override
public List<CommonGbChannel> queryCommonGbChannellList(Integer platformId) {
return platformChannelMapper.queryCommonGbChannellList(platformId);