Commit 6dbc7a68bd09a2f8270d42a218d805b44e321117

Authored by 648540858
1 parent b25f3631

兼容设备通道信息中自己为自己父节点的情况

src/main/java/com/genersoft/iot/vmp/gb28181/utils/XmlUtil.java
... ... @@ -298,6 +298,9 @@ public class XmlUtil {
298 298 }else {
299 299 deviceChannel.setParentId(parentId);
300 300 }
  301 + if (deviceChannel.getParentId().equals(deviceChannel.getChannelId())) {
  302 + deviceChannel.setParentId(null);
  303 + }
301 304 }
302 305 deviceChannel.setBusinessGroupId(businessGroupID);
303 306 if (channelType.equals(ChannelType.BusinessGroup) || channelType.equals(ChannelType.VirtualOrganization)) {
... ...