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