|
|
|
@ -492,7 +492,7 @@ namespace Myshipping.Application.Event
|
|
|
|
|
//生成id并插入客户订舱数据
|
|
|
|
|
custOrder.Id = YitIdHelper.NextId();
|
|
|
|
|
custOrder.BOOKINGNO = item.GetStringValue("BookingNO");
|
|
|
|
|
custOrder.BSNO = item.GetStringValue("CustOrderId");
|
|
|
|
|
custOrder.BSNO = item.GetStringValue("custOrderId");
|
|
|
|
|
custOrder.ParentBookingNO = parentBookingNO;
|
|
|
|
|
JObject jobjExt = null;
|
|
|
|
|
if (!string.IsNullOrEmpty(custOrder.ExtendData))
|
|
|
|
@ -505,6 +505,7 @@ namespace Myshipping.Application.Event
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
jobjExt["CustNO"] = item.GetStringValue("CustNO");
|
|
|
|
|
custOrder.ExtendData = jobjExt.ToString();
|
|
|
|
|
|
|
|
|
|
await repoCutomerOrder.InsertAsync(custOrder);
|
|
|
|
|
|
|
|
|
@ -522,8 +523,10 @@ namespace Myshipping.Application.Event
|
|
|
|
|
custOrder.BookingId = ord.Id;
|
|
|
|
|
await repoCutomerOrder.AsUpdateable(custOrder).UpdateColumns(x => new { x.BookingId }).ExecuteCommandAsync();
|
|
|
|
|
|
|
|
|
|
ord.BSNO = item.GetStringValue("OrderId");
|
|
|
|
|
await repoOrder.AsUpdateable(ord).UpdateColumns(x => new { x.BSNO }).ExecuteCommandAsync();
|
|
|
|
|
//订舱编号和客户端BSNO
|
|
|
|
|
ord.BSNO = item.GetStringValue("orderId");
|
|
|
|
|
ord.CUSTNO = item.GetStringValue("custNO");
|
|
|
|
|
await repoOrder.AsUpdateable(ord).UpdateColumns(x => new { x.BSNO, x.CUSTNO }).ExecuteCommandAsync();
|
|
|
|
|
|
|
|
|
|
_logger.LogInformation($"生成了订舱台账数据 {ord.Id}");
|
|
|
|
|
|
|
|
|
|