作者 朱兆平

解决放行回执分单回执解析成主单回执BUG

@@ -216,6 +216,27 @@ public class CustomXmlHandleThread implements Runnable{ @@ -216,6 +216,27 @@ public class CustomXmlHandleThread implements Runnable{
216 216
217 switch (msgType){ 217 switch (msgType){
218 case "MT9999": 218 case "MT9999":
  219 + if (customReception.getWayBillSecond()!=null && customReception.getWayBillSecond().contains(secondSplit)){
  220 + PREPARESECONDARY preparesecondary = new PREPARESECONDARY(customReception);
  221 + int pre_i = preparesecondary.secondAnalysisReception();
  222 +
  223 + if (pre_i>0){
  224 + i=1;
  225 + }else {
  226 + ARRIVEDSECONDARY arrivedsecondary = new ARRIVEDSECONDARY(customReception);
  227 + int arr_i=arrivedsecondary.secondAnalysisReception();
  228 +
  229 + if (arr_i>0){
  230 + i= 1;
  231 + }else {
  232 + Originmanifestsecondary originmanifestsecondary = new Originmanifestsecondary(customReception);
  233 + int org_i=originmanifestsecondary.secondAnalysisReception();
  234 + if (org_i>0){
  235 + i=1;
  236 + }
  237 + }
  238 + }
  239 + }else{
219 ORIGINMANIFESTMASTER originmanifestmaster = new ORIGINMANIFESTMASTER(customReception); 240 ORIGINMANIFESTMASTER originmanifestmaster = new ORIGINMANIFESTMASTER(customReception);
220 PREPAREMASTER preparemaster= new PREPAREMASTER(customReception); 241 PREPAREMASTER preparemaster= new PREPAREMASTER(customReception);
221 ARRIVEDMASTER arrivedmaster9999 = new ARRIVEDMASTER(customReception); 242 ARRIVEDMASTER arrivedmaster9999 = new ARRIVEDMASTER(customReception);
@@ -226,6 +247,7 @@ public class CustomXmlHandleThread implements Runnable{ @@ -226,6 +247,7 @@ public class CustomXmlHandleThread implements Runnable{
226 }else { 247 }else {
227 i=arrivedmaster9999.masterAnalysisReception(); 248 i=arrivedmaster9999.masterAnalysisReception();
228 } 249 }
  250 + }
229 break; 251 break;
230 case "MT3201": 252 case "MT3201":
231 if (customReception.getWayBillSecond()!=null && customReception.getWayBillSecond().contains(secondSplit)){ 253 if (customReception.getWayBillSecond()!=null && customReception.getWayBillSecond().contains(secondSplit)){