mirror of
https://gitee.com/pan648540858/wvp-GB28181-pro.git
synced 2026-05-25 14:37:53 +08:00
兼容设备通道信息中自己为自己父节点的情况
This commit is contained in:
parent
b25f3631ee
commit
6dbc7a68bd
@ -298,6 +298,9 @@ public class XmlUtil {
|
|||||||
}else {
|
}else {
|
||||||
deviceChannel.setParentId(parentId);
|
deviceChannel.setParentId(parentId);
|
||||||
}
|
}
|
||||||
|
if (deviceChannel.getParentId().equals(deviceChannel.getChannelId())) {
|
||||||
|
deviceChannel.setParentId(null);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
deviceChannel.setBusinessGroupId(businessGroupID);
|
deviceChannel.setBusinessGroupId(businessGroupID);
|
||||||
if (channelType.equals(ChannelType.BusinessGroup) || channelType.equals(ChannelType.VirtualOrganization)) {
|
if (channelType.equals(ChannelType.BusinessGroup) || channelType.equals(ChannelType.VirtualOrganization)) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user