Commit 1be7b5b4 by lixinyi

mx2mtmap增加字段

parent 1adae59b
...@@ -166,6 +166,15 @@ public class SwiftTransfer { ...@@ -166,6 +166,15 @@ public class SwiftTransfer {
maps.put("endToEndId", endToEndId); maps.put("endToEndId", endToEndId);
} }
} }
Document document = DocumentHelper.parseText(xmlStr);
Map<String, String> parentElementMaps = XmlUtil.getParentElementMaps(document);
String bodyParentElementName = parentElementMaps.get("UserReference");
if (StringUtil.isNotEmpty(bodyParentElementName)) {
String userReference = XmlUtil.getXmlNodeValue(document, bodyParentElementName+".UserReference");
if (StringUtil.isNotEmpty(userReference)) {
maps.put("userReference", userReference);
}
}
} }
return maps; return maps;
} catch (DocumentException e) { } catch (DocumentException e) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment