Skip to content

Commit

Permalink
兼容设备通道信息中自己为自己父节点的情况
Browse files Browse the repository at this point in the history
  • Loading branch information
648540858 committed Oct 19, 2022
1 parent b25f363 commit 6dbc7a6
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,9 @@ public static DeviceChannel channelContentHander(Element itemDevice, Device devi
}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)) {
Expand Down

0 comments on commit 6dbc7a6

Please sign in to comment.