| | |
| | | // 设备 |
| | | Integer deviceNo = node.getDeviceNo(); |
| | | Element nodeTag = parent.addElement("node"); |
| | | nodeTag.addAttribute("name", deviceNo == 0 ? dataId.toString() : dataId.toString() + "-" + deviceNo); |
| | | nodeTag.addAttribute("real_name", deviceNo == 0 ? product.getName() : product.getName() + "-" + deviceNo); |
| | | nodeTag.addAttribute("name", dataId.toString() + "-" + deviceNo); |
| | | nodeTag.addAttribute("real_name", product.getName() + "-" + deviceNo); |
| | | nodeTag.addAttribute("name_path", product.getNamePath()); |
| | | nodeTag.addAttribute("type", "node"); |
| | | |