From 9ffd908ca57a1c6917611187e8551960737c2b53 Mon Sep 17 00:00:00 2001 From: wanghaomei <86whm@163.com> Date: Wed, 17 Jul 2024 09:33:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=95=E7=8B=AC=E7=9A=84=E8=AE=A2=E8=88=B1?= =?UTF-8?q?=E7=BC=96=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Myshipping.Application/Entity/BookingCustomerOrder.cs | 6 ++++++ .../BookingCustomerOrderService.cs | 8 ++++++++ .../Service/BookingCustomerOrder/Dto/Dtos.cs | 10 ++++++++++ 3 files changed, 24 insertions(+) diff --git a/Myshipping.Application/Entity/BookingCustomerOrder.cs b/Myshipping.Application/Entity/BookingCustomerOrder.cs index 4c92bd0a..59916c24 100644 --- a/Myshipping.Application/Entity/BookingCustomerOrder.cs +++ b/Myshipping.Application/Entity/BookingCustomerOrder.cs @@ -908,6 +908,12 @@ namespace Myshipping.Application.Entity /// 父级订单编号 /// public string ParentBookingNO { get; set; } + + /// + /// 订舱编号 + /// + public string CustNO { get; set; } + } /// diff --git a/Myshipping.Application/Service/BookingCustomerOrder/BookingCustomerOrderService.cs b/Myshipping.Application/Service/BookingCustomerOrder/BookingCustomerOrderService.cs index db8daf36..a1d384bb 100644 --- a/Myshipping.Application/Service/BookingCustomerOrder/BookingCustomerOrderService.cs +++ b/Myshipping.Application/Service/BookingCustomerOrder/BookingCustomerOrderService.cs @@ -2400,6 +2400,10 @@ namespace Myshipping.Application await _repOrder.AsUpdateable(bkOrder).UpdateColumns(x => new { x.CUSTNO, x.BSSTATUS }).ExecuteCommandAsync(); CustomerBookingSyncHelper.SendCustomerBookingSync(bkOrder.Id, BookingOrderSyncTypeEnum.CC.ToString()); _logger.LogInformation($"回写订舱号并回推客户端:{bkOrder.Id} {custNO}"); + + //2024年7月17日,增加了单独的订舱编号字段,方便运营端查询 + model.CustNO = custNO; + await _rep.AsUpdateable(model).UpdateColumns(x => new { x.CustNO }).ExecuteCommandAsync(); } } else if (model.CARRIERID == "EMC") @@ -2416,6 +2420,10 @@ namespace Myshipping.Application CustomerBookingSyncHelper.SendCustomerBookingSync(bkOrder.Id, BookingOrderSyncTypeEnum.CC.ToString()); _logger.LogInformation($"回写订舱号并回推客户端:{bkOrder.Id} {bkOrder.CUSTNO}"); + //2024年7月17日,增加了单独的订舱编号字段,方便运营端查询 + model.CustNO = custNO; + await _rep.AsUpdateable(model).UpdateColumns(x => new { x.CustNO }).ExecuteCommandAsync(); + //有多票订舱编号,后台自动创建数据并对应 custNOArr.RemoveAt(0); if (custNOArr.Count > 0) diff --git a/Myshipping.Application/Service/BookingCustomerOrder/Dto/Dtos.cs b/Myshipping.Application/Service/BookingCustomerOrder/Dto/Dtos.cs index 0acd53b1..70e1e3a3 100644 --- a/Myshipping.Application/Service/BookingCustomerOrder/Dto/Dtos.cs +++ b/Myshipping.Application/Service/BookingCustomerOrder/Dto/Dtos.cs @@ -119,6 +119,11 @@ namespace Myshipping.Application /// 父级订单编号 /// public string ParentBookingNO { get; set; } + + /// + /// 订舱编号 + /// + public string CustNO { get; set; } } //dto @@ -787,6 +792,11 @@ namespace Myshipping.Application /// 父级订单编号 /// public string ParentBookingNO { get; set; } + + /// + /// 订舱编号 + /// + public string CustNO { get; set; } } //保存dto