diff --git a/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs b/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs index eff80da6..55d8eb2f 100644 --- a/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs +++ b/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs @@ -1890,12 +1890,13 @@ namespace Myshipping.Application { throw Oops.Bah("订阅港前数据提单号或场站不能为空!"); } + var YARDID = _cache.GetAllMappingYard().Result.Where(x => x.Module == "BillTrace" && x.Code == item.YardCode).Select(x => x.MapCode).FirstOrDefault(); billTraceList.Add(new BillTraceList { BusinessId = item.BusinessId, MBLNO = item.MBLNO, YARD = item.YARD == "" ? null : item.YARD, - YardCode = item.YardCode == "" ? null : item.YardCode, + YardCode = YARDID == "" ? null : YARDID, CARRIER = item.CARRIER == "" ? null : item.CARRIER, CARRIERID = item.CARRIERID == "" ? null : item.CARRIERID, isBook = item.isBook diff --git a/Myshipping.Application/Service/BookingYunZong/BookingYunZong.cs b/Myshipping.Application/Service/BookingYunZong/BookingYunZong.cs index fcf850be..8857b8b6 100644 --- a/Myshipping.Application/Service/BookingYunZong/BookingYunZong.cs +++ b/Myshipping.Application/Service/BookingYunZong/BookingYunZong.cs @@ -78,8 +78,10 @@ namespace Myshipping.Application { if (!string.IsNullOrEmpty(item.YARDID) && !string.IsNullOrEmpty(item.MBLNO)) { + + var YARDID= _cache.GetAllMappingYard().Result.Where(x => x.Module == "BillTrace" && x.Code == item.YARDID).Select(x => x.MapCode).FirstOrDefault(); JObject jobjczTemp = new JObject(); - jobjczTemp.Add("web_code", new JValue(item.YARDID)); + jobjczTemp.Add("web_code", new JValue(YARDID)); jobjczTemp.Add("bno", new JValue(item.MBLNO.Trim())); jarrCZTemos.Add(jobjczTemp); }