...
|
...
|
@@ -34,12 +34,16 @@ public class MT520XServiceImp extends CustomXmlMaker implements MT520XService{ |
|
|
|
|
|
Map<String, Object> hashMap = new HashMap();
|
|
|
|
|
|
// 处理主单号-
|
|
|
String awba = ReturnUtil.awbaReplace(customMt520X.getAwba());
|
|
|
hashMap.put("awba", awba);
|
|
|
// 关区代码
|
|
|
String customCode = customMt520X.getCustomcode();
|
|
|
// 报文头时间 精确到毫秒
|
|
|
hashMap.put("sendTime", DateUtil.getCurrentTime17());
|
|
|
// 封装实体
|
|
|
hashMap.put("mt", customMt520X);
|
|
|
|
|
|
hashMap.put("orgCode", orgCode);
|
|
|
if ("MT5201".equals(customMt520X.getRcfdep())){
|
|
|
// 生成报文头部
|
...
|
...
|
@@ -51,6 +55,7 @@ public class MT520XServiceImp extends CustomXmlMaker implements MT520XService{ |
|
|
hashMap.put("msessageType", msessageType);
|
|
|
hashMap.put("senderId", senderId);
|
|
|
hashMap.put("receiverID", receiverID);
|
|
|
|
|
|
Map<String, Object> maps = new HashMap<>();
|
|
|
if (makeXmlToFile("/manifest/MT5201.ftlx", msgId+".xml", hashMap, "./send/add/")>0){
|
|
|
|
...
|
...
|
@@ -143,6 +148,11 @@ public class MT520XServiceImp extends CustomXmlMaker implements MT520XService{ |
|
|
map.put("customCode", customCode);
|
|
|
// 报文头时间 精确到毫秒
|
|
|
map.put("sendTime", DateUtil.getCurrentTime17());
|
|
|
|
|
|
// 处理主单号-
|
|
|
String awba = ReturnUtil.awbaReplace(map.get("awba").toString());
|
|
|
map.put("awbas", awba);
|
|
|
|
|
|
if ("MT5201".equals(map.get("rcfdep").toString())){
|
|
|
// 生成报文头部
|
|
|
String msgId = makeMsgID("MT5201", orgsn, map.get("awba").toString());
|
...
|
...
|
|