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.
63 lines
2.2 KiB
C#
63 lines
2.2 KiB
C#
using DS.WMS.Core.Op.Dtos;
|
|
using DS.WMS.Core.TaskPlat.Interface;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using NPOI.SS.Formula.Functions;
|
|
|
|
namespace DS.WMS.TaskApi.Controllers
|
|
{
|
|
/// <summary>
|
|
/// 下货纸比对
|
|
/// </summary>
|
|
public class TaskShippingOrderCompareController : ApiController
|
|
{
|
|
private readonly ITaskShippingOrderCompareService _taskShippingOrderCompareService;
|
|
|
|
public TaskShippingOrderCompareController(ITaskShippingOrderCompareService taskShippingOrderCompareService)
|
|
{
|
|
_taskShippingOrderCompareService = taskShippingOrderCompareService;
|
|
}
|
|
|
|
#region 执行下货纸比对
|
|
/// <summary>
|
|
/// 执行下货纸比对
|
|
/// </summary>
|
|
/// <param name="bookingId">订舱主键</param>
|
|
/// <returns>返回回执</returns>
|
|
[HttpGet]
|
|
[Route("ExcuteShippingOrderCompare")]
|
|
public async Task<TaskManageExcuteResultDto> ExcuteShippingOrderCompareAsync(string bookingId)
|
|
{
|
|
return await _taskShippingOrderCompareService.ExcuteShippingOrderCompareAsync(bookingId);
|
|
}
|
|
#endregion
|
|
|
|
#region 批量执行下货纸比对
|
|
/// <summary>
|
|
/// 批量执行下货纸比对
|
|
/// </summary>
|
|
/// <param name="bookingIds">订舱主键组</param>
|
|
/// <returns>返回回执</returns>
|
|
[HttpPost]
|
|
[Route("ExcuteShippingOrderCompareBatch")]
|
|
public async Task<TaskManageExcuteResultDto> ExcuteShippingOrderCompareBatchAsync([FromBody] string[] bookingIds)
|
|
{
|
|
return await _taskShippingOrderCompareService.ExcuteShippingOrderCompareBatchAsync(bookingIds);
|
|
}
|
|
#endregion
|
|
|
|
#region 获取下货纸比对结果
|
|
/// <summary>
|
|
/// 获取下货纸比对结果
|
|
/// </summary>
|
|
/// <param name="bookingId">订舱主键</param>
|
|
/// <returns>返回回执</returns>
|
|
[HttpGet]
|
|
[Route("GetShippingOrderCompareResult")]
|
|
public async Task<TaskManageExcuteResultDto> GetShippingOrderCompareResult(long bookingId)
|
|
{
|
|
return await _taskShippingOrderCompareService.GetShippingOrderCompareResult(bookingId);
|
|
}
|
|
#endregion
|
|
}
|
|
}
|