Commit fa26e36f by gechengyang

提交南洋国际支付前置分支

parent 0b2a99c0
......@@ -34,16 +34,7 @@ public class Element2MxCreatorManager {
public String element2Mx(String jsonStr) throws SwiftException {
Map<String, Object> elementMaps = (Map<String, Object>)JSONObject.parse(jsonStr);
String messageType = (String)elementMaps.get("messageType");
if (StringUtil.isEmpty(messageType)) {
throw new SwiftException("找不到MX类型");
}
AbstractElement2MxCreator creator = getCreator(messageType);
creator.setElementMaps(elementMaps);
creator.preProcess();
creator.build();
creator.postProcess();
return creator.getXmlStr();
return element2Mx(elementMaps);
}
public AbstractElement2MxCreator getCreator(String messageType) {
......
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