|
|
|
@ -1491,7 +1491,7 @@ namespace Myshipping.Application
|
|
|
|
|
return dto;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var list =_repAllocation.AsQueryable().Where(a => a.BOOKING_SLOT_ID == id).ToList();
|
|
|
|
|
var list = _repAllocation.AsQueryable().Where(a => a.BOOKING_SLOT_ID == id).ToList();
|
|
|
|
|
|
|
|
|
|
dto = new BookingSlotWithOrderDto
|
|
|
|
|
{
|
|
|
|
@ -1544,6 +1544,43 @@ namespace Myshipping.Application
|
|
|
|
|
return dto;
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 校验是否可以生成订舱订单
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="id">舱位主键</param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpGet("/BookingSlot/ValidateCreateBookingOrder")]
|
|
|
|
|
public async Task<TaskManageOrderResultDto> ValidateCreateBookingOrder(long id)
|
|
|
|
|
{
|
|
|
|
|
TaskManageOrderResultDto result = new TaskManageOrderResultDto();
|
|
|
|
|
|
|
|
|
|
var slotInfo = await _repBase.AsQueryable().FirstAsync(a => a.Id == id);
|
|
|
|
|
|
|
|
|
|
if (slotInfo == null)
|
|
|
|
|
{
|
|
|
|
|
throw Oops.Oh($"获取舱位失败,舱位不存在或已作废");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//if(so)
|
|
|
|
|
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 批量发送邮件提醒(发送客户)
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="ids">舱位主键组</param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpPost("/BookingSlot/SendEmail")]
|
|
|
|
|
public async Task<TaskManageOrderResultDto> SendEmail([FromBody]long[] ids)
|
|
|
|
|
{
|
|
|
|
|
TaskManageOrderResultDto result = new TaskManageOrderResultDto();
|
|
|
|
|
|
|
|
|
|
result.succ = true;
|
|
|
|
|
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|