作者 shenhailong

处理 转运生成报文 回执 主单加-

@@ -29,6 +29,8 @@ public class MT8205ServiceImp extends CustomXmlMaker implements MT8205Service { @@ -29,6 +29,8 @@ public class MT8205ServiceImp extends CustomXmlMaker implements MT8205Service {
29 @Override 29 @Override
30 public Map<String, Object> create8205(Map<String, Object> map) throws IOException, ParseException { 30 public Map<String, Object> create8205(Map<String, Object> map) throws IOException, ParseException {
31 ObjectMapper objectMapper = new ObjectMapper(); 31 ObjectMapper objectMapper = new ObjectMapper();
  32 +
  33 +
32 // 转运记录 34 // 转运记录
33 CUSTOM_MT8205 customMt8205 = objectMapper.convertValue(map.get("mt8205"), CUSTOM_MT8205.class); 35 CUSTOM_MT8205 customMt8205 = objectMapper.convertValue(map.get("mt8205"), CUSTOM_MT8205.class);
34 // 关区代码 36 // 关区代码
@@ -38,8 +40,11 @@ public class MT8205ServiceImp extends CustomXmlMaker implements MT8205Service { @@ -38,8 +40,11 @@ public class MT8205ServiceImp extends CustomXmlMaker implements MT8205Service {
38 // 封装实体 40 // 封装实体
39 map.put("mt8205", customMt8205); 41 map.put("mt8205", customMt8205);
40 map.put("orgCode", orgCode); 42 map.put("orgCode", orgCode);
  43 + // 回执主单号带-
  44 + String originawbano = customMt8205.getOriginawbano();
41 // 处理主单号 - 45 // 处理主单号 -
42 - customMt8205.setOriginawbano(ReturnUtil.awbaReplace(customMt8205.getOriginawbano())); 46 + customMt8205.setOriginawbano(ReturnUtil.awbaReplace(originawbano));
  47 +
43 // 处理主单号 - 48 // 处理主单号 -
44 customMt8205.setTransawbano(ReturnUtil.awbaReplace(customMt8205.getTransawbano())); 49 customMt8205.setTransawbano(ReturnUtil.awbaReplace(customMt8205.getTransawbano()));
45 // 生成报文头部 50 // 生成报文头部
@@ -66,7 +71,7 @@ public class MT8205ServiceImp extends CustomXmlMaker implements MT8205Service { @@ -66,7 +71,7 @@ public class MT8205ServiceImp extends CustomXmlMaker implements MT8205Service {
66 // 航班承运人 71 // 航班承运人
67 nmmsCustomResponse.setCarrier(customMt8205.getOrigincarrier()); 72 nmmsCustomResponse.setCarrier(customMt8205.getOrigincarrier());
68 // 主单号 73 // 主单号
69 - nmmsCustomResponse.setAwbano(customMt8205.getOriginawbano()); 74 + nmmsCustomResponse.setAwbano(originawbano);
70 // 分单号 75 // 分单号
71 nmmsCustomResponse.setAwbhno(AwbaUtils.awbh(customMt8205.getOriginawbhno())); 76 nmmsCustomResponse.setAwbhno(AwbaUtils.awbh(customMt8205.getOriginawbhno()));
72 // 件数 77 // 件数