Browse Source

修复级联通道回复错误

ui-optimization
648540858 3 years ago
parent
commit
59c79c08e1
  1. 1
      src/main/java/com/genersoft/iot/vmp/gb28181/transmit/event/request/impl/message/notify/cmd/CatalogNotifyMessageHandler.java
  2. 2
      src/main/java/com/genersoft/iot/vmp/storager/impl/VideoManagerStoragerImpl.java

1
src/main/java/com/genersoft/iot/vmp/gb28181/transmit/event/request/impl/message/notify/cmd/CatalogNotifyMessageHandler.java

@ -96,7 +96,6 @@ public class CatalogNotifyMessageHandler extends SIPRequestProcessorParent imple
if (channelReduces.size() > 0) { if (channelReduces.size() > 0) {
for (ChannelReduce channelReduce : channelReduces) { for (ChannelReduce channelReduce : channelReduces) {
DeviceChannel deviceChannel = storager.queryChannel(channelReduce.getDeviceId(), channelReduce.getChannelId()); DeviceChannel deviceChannel = storager.queryChannel(channelReduce.getDeviceId(), channelReduce.getChannelId());
// TODO 目前暂时认为这里只用通道没有目录
deviceChannel.setParental(0); deviceChannel.setParental(0);
deviceChannel.setParentId(channelReduce.getCatalogId()); deviceChannel.setParentId(channelReduce.getCatalogId());

2
src/main/java/com/genersoft/iot/vmp/storager/impl/VideoManagerStoragerImpl.java

@ -584,7 +584,7 @@ public class VideoManagerStoragerImpl implements IVideoManagerStorager {
@Override @Override
public List<ChannelReduce> queryChannelListInParentPlatform(String platformId) { public List<ChannelReduce> queryChannelListInParentPlatform(String platformId) {
return deviceChannelMapper.queryChannelListInAll(null, null, null, platformId, null); return deviceChannelMapper.queryChannelListInAll(null, null, null, platformId, platformId);
} }
@Override @Override

Loading…
Cancel
Save