You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
1.9 KiB
C#

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
{
/// <summary>
/// 起运港未提箱
/// </summary>
public class TaskManagePOLCtnNotPickUpController : ApiController
{
private readonly ITaskPOLContainerNotPickUpService _taskPOLContainerNotPickUpService;
/// <summary>
///
/// </summary>
/// <param name="taskManageCutDateChangeService"></param>
public TaskManagePOLCtnNotPickUpController(ITaskPOLContainerNotPickUpService taskPOLContainerNotPickUpService)
{
_taskPOLContainerNotPickUpService = taskPOLContainerNotPickUpService;
}
#region 通过任务主键获取起运港未提箱详情
/// <summary>
/// 通过任务主键获取起运港未提箱详情
/// </summary>
/// <param name="taskPKId">起运港未提箱任务主键</param>
/// <returns>返回回执</returns>
[HttpGet]
[Route("GetInfoByTaskId")]
public async Task<DataResult<List<TaskPOLContainerNotPickUpShowDto>>> GetInfoByTaskId([FromQuery] long taskPKId)
{
return await _taskPOLContainerNotPickUpService.GetInfoByTaskId(taskPKId);
}
#endregion
#region 发送邮件通知给客户
/// <summary>
/// 发送邮件通知给客户
/// </summary>
/// <param name="taskPKId">起运港未提箱主键</param>
/// <returns>返回回执</returns>
[HttpGet]
[Route("SendEmailToCustomer")]
public async Task<DataResult<TaskTransferMsgDto>> SendEmailToCustomer(long taskPKId)
{
return await _taskPOLContainerNotPickUpService.ManualSendEmailToCustomer(taskPKId);
}
#endregion
}
}