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