using DS.Module.Core; using DS.WMS.Core.TaskPlat.Dtos; using DS.WMS.Core.TaskPlat.Interface; using DS.WMS.Core.TaskPlat.Method; using Microsoft.AspNetCore.Mvc; namespace DS.WMS.TaskApi.Controllers { /// /// 起运港未提箱 /// public class TaskManagePOLCtnNotPickUpController : ApiController { private readonly ITaskPOLContainerNotPickUpService _taskPOLContainerNotPickUpService; /// /// /// /// public TaskManagePOLCtnNotPickUpController(ITaskPOLContainerNotPickUpService taskPOLContainerNotPickUpService) { _taskPOLContainerNotPickUpService = taskPOLContainerNotPickUpService; } #region 通过任务主键获取起运港未提箱详情 /// /// 通过任务主键获取起运港未提箱详情 /// /// 起运港未提箱任务主键 /// 返回回执 [HttpGet] [Route("GetInfoByTaskId")] public async Task>> GetInfoByTaskId([FromQuery] long taskPKId) { return await _taskPOLContainerNotPickUpService.GetInfoByTaskId(taskPKId); } #endregion #region 发送邮件通知给客户 /// /// 发送邮件通知给客户 /// /// 起运港未提箱主键 /// 返回回执 [HttpGet] [Route("SendEmailToCustomer")] public async Task> SendEmailToCustomer(long taskPKId) { return await _taskPOLContainerNotPickUpService.ManualSendEmailToCustomer(taskPKId); } #endregion } }