Commit b974a2c9 by chengzhuoshen

1.mx2MtMap增加mt报文

2.修改配置文件
parent 376f6c7a
...@@ -30,6 +30,7 @@ public class MxMessageReader { ...@@ -30,6 +30,7 @@ public class MxMessageReader {
return null; return null;
} }
Map<String, String> infMap = new HashMap(); Map<String, String> infMap = new HashMap();
infMap.put("swtMsg", str.getMessage());
AbstractMT abstractMT = AbstractMT.parse(mtStr); AbstractMT abstractMT = AbstractMT.parse(mtStr);
SwiftBlock5 swiftBlock5 = abstractMT.getSwiftMessage().getBlock5(); SwiftBlock5 swiftBlock5 = abstractMT.getSwiftMessage().getBlock5();
if (swiftBlock5 != null && swiftBlock5.getTags().size() > 0) { if (swiftBlock5 != null && swiftBlock5.getTags().size() > 0) {
...@@ -448,11 +449,11 @@ public class MxMessageReader { ...@@ -448,11 +449,11 @@ public class MxMessageReader {
} }
if (failureFlag) { if (failureFlag) {
infMap.put("errorCode", "E"); // infMap.put("errCde", "E"); //
} else { } else {
infMap.put("errorCode", "S"); // infMap.put("errCde", "S"); //
} }
infMap.put("errorDsp", errorDsp); infMap.put("errDsp", errorDsp);
return infMap; return infMap;
} catch (IOException e) { } catch (IOException e) {
throw new SwiftException(e.getMessage()); throw new SwiftException(e.getMessage());
......
#APPLICATION HEADER #APPLICATION HEADER
rBic=appHdr.fr.fiId.finInstnId.bicfi?appHdr.fr.orgId.id.orgId.anyBIC frBic=appHdr.fr.fiId.finInstnId.bicfi?appHdr.fr.orgId.id.orgId.anyBIC
toBic=appHdr.to.fiId.finInstnId.bicfi?appHdr.to.orgId.id.orgId.anyBIC toBic=appHdr.to.fiId.finInstnId.bicfi?appHdr.to.orgId.id.orgId.anyBIC
bizMsgIdr=fiCdtTrf.cdtTrfTxInf.pmtId.instrId?fiCdtTrf.grpHdr.msgId?appHdr.bizMsgIdr bizMsgIdr=fiCdtTrf.cdtTrfTxInf.pmtId.instrId?fiCdtTrf.grpHdr.msgId?appHdr.bizMsgIdr
msgDefIdr=appHdr.msgDefIdr msgDefIdr=appHdr.msgDefIdr
......
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