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.

78 lines
2.8 KiB
C#

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
{
/// <summary>
/// 货物运输计划已变更
/// </summary>
public class TaskTransPlanHasChangeController : ApiController
{
private readonly ITaskTransPlanHasChangeService _taskTransPlanHasChangeService;
/// <summary>
///
/// </summary>
/// <param name="taskManageCutDateChangeService"></param>
public TaskTransPlanHasChangeController(ITaskTransPlanHasChangeService taskTransPlanHasChangeService)
{
_taskTransPlanHasChangeService = taskTransPlanHasChangeService;
}
#region 通过任务主键获取货物运输计划已变更详情
/// <summary>
/// 通过任务主键获取货物运输计划已变更详情
/// </summary>
/// <param name="taskPKId">货物运输计划已变更任务主键</param>
/// <returns>返回回执</returns>
[HttpGet("GetInfoByTaskId")]
public async Task<DataResult<TaskTransPlanHasChangeShowDto>> GetInfoByTaskId(long taskPKId)
{
return await _taskTransPlanHasChangeService.GetInfoByTaskId(taskPKId);
}
#endregion
#region 检索对应的订舱订单并保存订舱ID
/// <summary>
/// 检索对应的订舱订单并保存订舱ID
/// </summary>
/// <param name="taskPKId">货物运输计划已变更任务主键</param>
/// <returns>返回回执</returns>
[HttpGet("SearchAndMarkBookingOrder")]
public async Task<DataResult<SeaExportOrderExtension>> SearchAndMarkBookingOrder(long taskPKId)
{
return await _taskTransPlanHasChangeService.SearchAndMarkBookingOrder(taskPKId);
}
#endregion
#region 自动转发
/// <summary>
/// 自动转发
/// </summary>
/// <param name="taskPKId">货物运输计划已变更任务主键</param>
/// <returns>返回回执</returns>
[HttpGet("AutoTranmitToCustomer")]
public async Task<DataResult> AutoTranmitToCustomer(long taskPKId)
{
return await _taskTransPlanHasChangeService.AutoTranmitToCustomer(taskPKId);
}
#endregion
#region 发送邮件通知给客户
/// <summary>
/// 发送邮件通知给客户
/// </summary>
/// <param name="taskPKId">货物运输计划已变更主键</param>
/// <returns>返回回执</returns>
[HttpGet("SendEmailToCustomer")]
public async Task<DataResult> SendEmailToCustomer(long taskPKId)
{
return await _taskTransPlanHasChangeService.SendEmailToCustomer(taskPKId);
}
#endregion
}
}