修改EDI,增加需要场站EDI的精确判断,PIL&CNTAO

optimize
jianghaiqing 2 years ago
parent ac38b8d3c0
commit 30ada3bb2a

@ -2452,6 +2452,9 @@ namespace Myshipping.Application
var primaryModel = order.Adapt<MsOpSeaeEDIBaseModel>();
//起运港是CNTAO并且船公司是太平需要判断场站EDI
if (order.PORTLOADID == "CNTAO" && ediRouteEnum == EDIRouteEnum.PIL)
{
//场站
var ediYardList = _cache.GetAllMappingYard().GetAwaiter().GetResult()
.Where(t => t.Module.Equals(CONST_MAPPING_MODULE, StringComparison.OrdinalIgnoreCase)).ToList();
@ -2466,6 +2469,7 @@ namespace Myshipping.Application
primaryModel.YARDEDICODE = currYardInfo.MapCode?.Trim();
primaryModel.YARD = currYardInfo.MapName?.Trim();
}
}
primaryModel.CARRIEREDICODE = ediSOSICfg.MapCode;
primaryModel.ORDERNO = order.BOOKINGNO;

Loading…
Cancel
Save