From 0afb96fc54505e715e9596bf7fa05c0541c44ea7 Mon Sep 17 00:00:00 2001 From: wet <1034391973@qq.com> Date: Mon, 31 Jul 2023 13:53:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=BA=E7=AB=99code=E6=98=A0=E5=B0=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Service/BookingOrder/BookingOrderService.cs | 3 ++- .../Service/BookingYunZong/BookingYunZong.cs | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) 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); }