using DS.Module.Core;
using DS.WMS.Core.Op.Dtos;
using DS.WMS.Core.TaskPlat.Dtos;
using DS.WMS.Core.TaskPlat.Interface;
using Microsoft.AspNetCore.Mvc;
namespace DS.WMS.TaskApi.Controllers
{
///
/// 货物运输计划已变更
///
public class TaskTransPlanHasChangeController : ApiController
{
private readonly ITaskTransPlanHasChangeService _taskTransPlanHasChangeService;
///
///
///
///
public TaskTransPlanHasChangeController(ITaskTransPlanHasChangeService taskTransPlanHasChangeService)
{
_taskTransPlanHasChangeService = taskTransPlanHasChangeService;
}
#region 通过任务主键获取货物运输计划已变更详情
///
/// 通过任务主键获取货物运输计划已变更详情
///
/// 货物运输计划已变更任务主键
/// 返回回执
[HttpGet("GetInfoByTaskId")]
public async Task> GetInfoByTaskId(long taskPKId)
{
return await _taskTransPlanHasChangeService.GetInfoByTaskId(taskPKId);
}
#endregion
#region 检索对应的订舱订单并保存订舱ID
///
/// 检索对应的订舱订单并保存订舱ID
///
/// 货物运输计划已变更任务主键
/// 返回回执
[HttpGet("SearchAndMarkBookingOrder")]
public async Task> SearchAndMarkBookingOrder(long taskPKId)
{
return await _taskTransPlanHasChangeService.SearchAndMarkBookingOrder(taskPKId);
}
#endregion
#region 自动转发
///
/// 自动转发
///
/// 货物运输计划已变更任务主键
/// 返回回执
[HttpGet("AutoTranmitToCustomer")]
public async Task AutoTranmitToCustomer(long taskPKId)
{
return await _taskTransPlanHasChangeService.AutoTranmitToCustomer(taskPKId);
}
#endregion
#region 发送邮件通知给客户
///
/// 发送邮件通知给客户
///
/// 货物运输计划已变更主键
/// 返回回执
[HttpGet("SendEmailToCustomer")]
public async Task SendEmailToCustomer(long taskPKId)
{
return await _taskTransPlanHasChangeService.SendEmailToCustomer(taskPKId);
}
#endregion
}
}