修改EDI 去掉 PIL关于场站EDI的判断

optimize
jianghaiqing 2 years ago
parent 937f2381a2
commit 10124bde64

@ -385,11 +385,12 @@ namespace Myshipping.Application.EDI.PIL
if (string.IsNullOrEmpty(bill.ORDERNO)) if (string.IsNullOrEmpty(bill.ORDERNO))
{ error = error + "|订舱单号不能为空"; } { error = error + "|订舱单号不能为空"; }
if (bill.PORTLOADID == "CNTAO") //2023-03-21 跟韩工确认PIL不需要判断场站EDI去掉验证
{ //if (bill.PORTLOADID == "CNTAO")
if (string.IsNullOrEmpty(bill.YARD) || string.IsNullOrEmpty(bill.YARDEDICODE)) //{
{ error = error + "|场站和场站EDI代码不能为空"; } // if (string.IsNullOrEmpty(bill.YARD) || string.IsNullOrEmpty(bill.YARDEDICODE))
} // { error = error + "|场站和场站EDI代码不能为空"; }
//}
if (string.IsNullOrEmpty(bill.MBLNO)) if (string.IsNullOrEmpty(bill.MBLNO))
{ error = error + "|主提单号不能为空"; } { error = error + "|主提单号不能为空"; }

@ -3532,7 +3532,7 @@ namespace Myshipping.Application
} }
//起运港是CNTAO并且船公司是太平需要判断场站EDI //起运港是CNTAO并且船公司是太平需要判断场站EDI
if ((order.PORTLOADID == "CNTAO" && ediRouteEnum == EDIRouteEnum.PIL) || ediRouteEnum == EDIRouteEnum.WY) if (ediRouteEnum == EDIRouteEnum.WY)
{ {
//场站 //场站
var ediYardList = _cache.GetAllMappingYard().GetAwaiter().GetResult() var ediYardList = _cache.GetAllMappingYard().GetAwaiter().GetResult()

Loading…
Cancel
Save