|
|
@ -3113,6 +3113,22 @@ namespace DS.WMS.Core.Op.Method
|
|
|
|
Logger.Log(NLog.LogLevel.Info, $"引入失败,更新海运出口失败,原因:{saveSeaExportRlt.Message}");
|
|
|
|
Logger.Log(NLog.LogLevel.Info, $"引入失败,更新海运出口失败,原因:{saveSeaExportRlt.Message}");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//这里生成完订单后,需要将订单的委托号回填到舱位上
|
|
|
|
|
|
|
|
var order = tenantDb.Queryable<SeaExport>().Where(x => x.Id == model.bookingOrderId).First();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//这里把订单的委托号同步到舱位
|
|
|
|
|
|
|
|
if (order != null)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
foreach (var slot in latestSlotList)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
slot.CustomerNo = order.CustomerNo;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tenantDb.Updateable<BookingSlotBase>(slot).UpdateColumns(x => new
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
x.CustomerNo
|
|
|
|
|
|
|
|
}).ExecuteCommand();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// if (generateModel.CtnList == null)
|
|
|
|
// if (generateModel.CtnList == null)
|
|
|
|
//{
|
|
|
|
//{
|
|
|
|