Browse Source

多级虚拟组织处理修复

pull/451/head
648540858 3 years ago
parent
commit
a012007f36
  1. 2
      src/main/java/com/genersoft/iot/vmp/gb28181/utils/XmlUtil.java

2
src/main/java/com/genersoft/iot/vmp/gb28181/utils/XmlUtil.java

@ -213,7 +213,7 @@ public class XmlUtil {
deviceChannel.setParentId(XmlUtil.getText(itemDevice, "ParentID")); deviceChannel.setParentId(XmlUtil.getText(itemDevice, "ParentID"));
String parentId = XmlUtil.getText(itemDevice, "ParentID"); String parentId = XmlUtil.getText(itemDevice, "ParentID");
if (parentId.contains("/")) { if (parentId.contains("/")) {
String lastParentId = parentId.substring(parentId.lastIndexOf("/")); String lastParentId = parentId.substring(parentId.lastIndexOf("/") + 1);
deviceChannel.setParentId(lastParentId); deviceChannel.setParentId(lastParentId);
}else { }else {
deviceChannel.setParentId(parentId); deviceChannel.setParentId(parentId);

Loading…
Cancel
Save