Commit 6afedd78 by lixinyi

根据南商要求删除发报行修改逻辑

parent e8fcfa39
......@@ -364,14 +364,15 @@ public abstract class AbstractMx2MtCreator implements Mx2MtCreator {
receiverBic = getXmlNodeValue(appHdrParentPath, document, "AppHdr.To.FIId.FinInstnId.BICFI");
}
String service = (String) context.get(Mx2MtContextIdentifier.MX_TO_MT_SERVICE);
if(!StringUtil.isEmpty(service)&&!"swift.finplus".equals(service)){
StringBuilder replaceSenderBic = new StringBuilder(senderBic);
replaceSenderBic.replace(7,8,"0");
StringBuilder replaceReceiverBic = new StringBuilder(receiverBic);
replaceReceiverBic.replace(7,8,"0");
senderBic = replaceSenderBic.toString();
receiverBic = replaceReceiverBic.toString();
}
//根据南商要求暂时删除此逻辑
// if(!StringUtil.isEmpty(service)&&!"swift.finplus".equals(service)){
// StringBuilder replaceSenderBic = new StringBuilder(senderBic);
// replaceSenderBic.replace(7,8,"0");
// StringBuilder replaceReceiverBic = new StringBuilder(receiverBic);
// replaceReceiverBic.replace(7,8,"0");
// senderBic = replaceSenderBic.toString();
// receiverBic = replaceReceiverBic.toString();
// }
context.set(Mx2MtContextIdentifier.MX_SENDER_BIC, senderBic);
context.set(Mx2MtContextIdentifier.MX_RECEIVER_BIC, receiverBic);
String applicationMode = (String)context.get(Mx2MtConstants.APPLICATION_MODE, true);
......
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