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("AutoUpdateOrderCutDateAndTranmitToCustomer")] public async Task AutoUpdateOrderCutDateAndTranmitToCustomer([FromQuery] long taskPKId) { return await _taskManageCutDateChangeService.AutoUpdateOrderCutDateAndTranmitToCustomer(taskPKId); } #endregion #region 发送邮件通知给客户 /// /// 发送邮件通知给客户 /// /// 截止时间变更主键 /// 返回回执 [HttpGet] [Route("SendEmailToCustomer")] public async Task SendEmailToCustomer(long taskPKId) { return await _taskManageCutDateChangeService.SendEmailToCustomer(taskPKId); } #endregion } }