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

pull/647/head
648540858 2022-10-19 11:20:23 +08:00
parent b25f3631ee
commit 6dbc7a68bd
1 changed files with 3 additions and 0 deletions

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)) {