Commit 3f19e221 by gechengyang

优化mt COV报文转mx时MtType没有cov的情况

parent ce33ee2c
......@@ -50,8 +50,13 @@ public class Mt2MxCreatorManager {
}
creator.postProcess();
SwiftTranslationReport str = context.get(SwiftTranslationReport.class);
//设置报文MT类型 modified by gechengyang 20230829
String covStr="";
if(abstractMT!=null){
str.setMtType(abstractMT.getMessageType());
if(abstractMT.getSwiftMessage().isCOV()){
covStr="COV";
}
str.setMtType(abstractMT.getMessageType()+covStr);
}
return str;
}
......
......@@ -92,6 +92,11 @@ public class Mt2MxTest {
}
@Test
public void testPacs009001_COV() {
test("/swiftTxt/MT202_COV.txt", null);
}
@Test
public void testPacs009001_tag72() {
test("/swiftTxt/MT202_tag72.txt", null);
}
......
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