|
|
|
@ -2788,7 +2788,7 @@ namespace DS.WMS.Core.Op.Method
|
|
|
|
|
DeliveryPlace = bookingSlotBase.PlaceDelivery,
|
|
|
|
|
DeliveryPlaceId = bookingSlotBase.PlaceDeliveryId.HasValue ? bookingSlotBase.PlaceDeliveryId.Value : 0,
|
|
|
|
|
|
|
|
|
|
//CtnInfo = new List<OpCtn>()
|
|
|
|
|
CtnInfo = new List<OpCtnReq>()
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
if (bookingSlotBase.ETD.HasValue)
|
|
|
|
@ -2800,13 +2800,28 @@ namespace DS.WMS.Core.Op.Method
|
|
|
|
|
bkModel.AccountDate = DateTime.Now.ToString("yyyy-MM");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var ctnList = model.slots.SelectMany(b => b.CtnList).ToList();
|
|
|
|
|
|
|
|
|
|
bkModel.CtnList = ctnList.GroupBy(a => a.CtnCode).Select(a =>
|
|
|
|
|
{
|
|
|
|
|
var currList = a.ToList();
|
|
|
|
|
|
|
|
|
|
return new OpCtnReq
|
|
|
|
|
{
|
|
|
|
|
CtnCode = a.Key,
|
|
|
|
|
CtnAll = currList.FirstOrDefault().CtnAll,
|
|
|
|
|
CtnNum = currList.Sum(b => b.CtnNum)
|
|
|
|
|
};
|
|
|
|
|
}).ToList();
|
|
|
|
|
|
|
|
|
|
var saveSeaExportRlt = _seaExportCommonService.SeaExportOpenEdit(bkModel).GetAwaiter().GetResult();
|
|
|
|
|
|
|
|
|
|
if (!saveSeaExportRlt.Succeeded)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
Logger.Log(NLog.LogLevel.Info, $"引入失败,更新海运出口失败,原因:{saveSeaExportRlt.Message}");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// if (generateModel.CtnList == null)
|
|
|
|
|
//{
|
|
|
|
|
// var ctnList = (await GetAvailableCtnsBySlot(bookingSlotBase.Id)).Data;
|
|
|
|
@ -2818,7 +2833,7 @@ namespace DS.WMS.Core.Op.Method
|
|
|
|
|
// generateModel.CtnList = ctnList;
|
|
|
|
|
//}
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
catch (Exception ex)
|
|
|
|
|
{
|
|
|
|
|
Logger.Log(NLog.LogLevel.Info, $"引入失败,原因:{ex.Message}");
|
|
|
|
|
|
|
|
|
|