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

This commit is contained in:
648540858 2022-10-19 11:20:23 +08:00
parent b25f3631ee
commit 6dbc7a68bd

View File

@ -298,6 +298,9 @@ public class XmlUtil {
}else {
deviceChannel.setParentId(parentId);
}
if (deviceChannel.getParentId().equals(deviceChannel.getChannelId())) {
deviceChannel.setParentId(null);
}
}
deviceChannel.setBusinessGroupId(businessGroupID);
if (channelType.equals(ChannelType.BusinessGroup) || channelType.equals(ChannelType.VirtualOrganization)) {