xml解析修改

3.2.4.44
宇宙皮皮娃 2 years ago
parent 530fdce2ee
commit e7b0da17f4

@ -470,19 +470,19 @@ public class BasicServiceImpl implements BasicService {
XmlUtil xml=XmlUtil.of(message); XmlUtil xml=XmlUtil.of(message);
//id-消息流水号 //id-消息流水号
String serialId=null; String serialId=null;
Node serialIdNode = xml.getNode("/PRPA_HIP1069/id/@extension"); Node serialIdNode = xml.getNode("/PRPA_HIP1070/id/@extension");
if(Func.isNotEmpty(serialIdNode)){ if(Func.isNotEmpty(serialIdNode)){
serialId=serialIdNode.getNodeValue(); serialId=serialIdNode.getNodeValue();
} }
//接受方 //接受方
String receive=null; String receive=null;
Node receiveNode = xml.getNode("/PRPA_HIP1069/receiver/device/id/item/@extension"); Node receiveNode = xml.getNode("/PRPA_HIP1070/receiver/device/id/item/@extension");
if(Func.isNotEmpty(receiveNode)){ if(Func.isNotEmpty(receiveNode)){
receive=receiveNode.getNodeValue(); receive=receiveNode.getNodeValue();
} }
//发送方 //发送方
String send=null; String send=null;
Node sendNode = xml.getNode("/PRPA_HIP1069/sender/device/id/item/@extension"); Node sendNode = xml.getNode("/PRPA_HIP1070/sender/device/id/item/@extension");
if(Func.isNotEmpty(sendNode)){ if(Func.isNotEmpty(sendNode)){
send=sendNode.getNodeValue(); send=sendNode.getNodeValue();
} }

Loading…
Cancel
Save