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 { /// /// 下货纸比对 /// public class TaskShippingOrderCompareController : ApiController { private readonly ITaskShippingOrderCompareService _taskShippingOrderCompareService; public TaskShippingOrderCompareController(ITaskShippingOrderCompareService taskShippingOrderCompareService) { _taskShippingOrderCompareService = taskShippingOrderCompareService; } #region 执行下货纸比对 /// /// 执行下货纸比对 /// /// 订舱主键 /// 返回回执 [HttpGet] [Route("ExcuteShippingOrderCompare")] public async Task ExcuteShippingOrderCompareAsync(string bookingId) { return await _taskShippingOrderCompareService.ExcuteShippingOrderCompareAsync(bookingId); } #endregion #region 批量执行下货纸比对 /// /// 批量执行下货纸比对 /// /// 订舱主键组 /// 返回回执 [HttpPost] [Route("ExcuteShippingOrderCompareBatch")] public async Task ExcuteShippingOrderCompareBatchAsync([FromBody] string[] bookingIds) { return await _taskShippingOrderCompareService.ExcuteShippingOrderCompareBatchAsync(bookingIds); } #endregion #region 获取下货纸比对结果 /// /// 获取下货纸比对结果 /// /// 订舱主键 /// 返回回执 [HttpGet] [Route("GetShippingOrderCompareResult")] public async Task GetShippingOrderCompareResult(long bookingId) { return await _taskShippingOrderCompareService.GetShippingOrderCompareResult(bookingId); } #endregion } }