using DS.Module.Core;
using DS.WMS.Core.Op.Dtos;
using DS.WMS.Core.Op.Interface;
using DS.WMS.Core.TaskPlat.Dtos;
using DS.WMS.Core.TaskPlat.Interface;
using Microsoft.AspNetCore.Mvc;
namespace DS.WMS.TaskApi.Controllers
{
///
/// 截止时间变更
///
public class TaskManageCutDateChangeController : ApiController
{
private readonly ITaskManageCutDateChangeService _taskManageCutDateChangeService;
///
///
///
///
public TaskManageCutDateChangeController(ITaskManageCutDateChangeService taskManageCutDateChangeService)
{
_taskManageCutDateChangeService = taskManageCutDateChangeService;
}
#region 通过任务主键获取截止时间变更详情
///
/// 通过任务主键获取截止时间变更详情
///
/// 截止时间变更任务主键
/// 返回回执
[HttpGet]
[Route("GetInfoByTaskId")]
public async Task>> GetInfoByTaskId([FromQuery] long taskPKId)
{
return await _taskManageCutDateChangeService.GetInfoByTaskId(taskPKId);
}
#endregion
#region 检索对应的订舱订单并保存订舱ID
///
/// 检索对应的订舱订单并保存订舱ID
///
/// 截止时间变更任务主键
/// 返回回执
[HttpGet]
[Route("SearchAndMarkBookingOrder")]
public async Task> SearchAndMarkBookingOrder([FromQuery] long taskPKId)
{
return await _taskManageCutDateChangeService.SearchAndMarkBookingOrder(taskPKId);
}
#endregion
#region 发送邮件通知给客户
///
/// 发送邮件通知给客户
///
/// 截止时间变更主键
/// 返回回执
[HttpGet]
[Route("SendEmailToCustomer")]
public async Task> SendEmailToCustomer(long taskPKId)
{
return await _taskManageCutDateChangeService.ManualSendEmailToCustomer(taskPKId);
}
#endregion
}
}