|
|
|
@ -687,7 +687,16 @@ namespace Myshipping.Application
|
|
|
|
|
{
|
|
|
|
|
#region 推送舱位、推送订舱
|
|
|
|
|
//推送舱位
|
|
|
|
|
var bookingSlotId = await GenerateBookingSlot(bcOrder, bcCtnList, fileList);
|
|
|
|
|
long bookingSlotId = 0;
|
|
|
|
|
|
|
|
|
|
if(bcOrder.BOOKING_SLOT_ID.HasValue && bcOrder.BOOKING_SLOT_ID.Value > 0)
|
|
|
|
|
{
|
|
|
|
|
bookingSlotId = bcOrder.BOOKING_SLOT_ID.Value;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
bookingSlotId = await GenerateBookingSlot(bcOrder, bcCtnList, fileList);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (bookingSlotId > 0)
|
|
|
|
|
{
|
|
|
|
@ -696,6 +705,7 @@ namespace Myshipping.Application
|
|
|
|
|
|
|
|
|
|
if (bookingOrderId > 0)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
//更新库存
|
|
|
|
|
//_bookingSlotService.
|
|
|
|
|
var bcEntity = _taskBCInfoRepository.AsQueryable().First(a => a.PK_ID == bcOrder.PK_ID);
|
|
|
|
@ -722,6 +732,10 @@ namespace Myshipping.Application
|
|
|
|
|
|
|
|
|
|
}).ExecuteCommand();
|
|
|
|
|
|
|
|
|
|
var currBCOrder = _taskBCInfoRepository.AsQueryable().First(a => a.PK_ID == bcEntity.PK_ID);
|
|
|
|
|
|
|
|
|
|
if (currBCOrder != null)
|
|
|
|
|
await GenerateSendEmail(currBCOrder);
|
|
|
|
|
|
|
|
|
|
var taskEntity = _taskBaseRepository.AsQueryable().First(u => u.PK_ID == bcEntity.TASK_ID);
|
|
|
|
|
|
|
|
|
|