|
|
|
|
using DS.Module.Core;
|
|
|
|
|
using DS.Module.DjyServiceStatus;
|
|
|
|
|
using DS.WMS.Core.Op.Dtos;
|
|
|
|
|
using DS.WMS.Core.TaskPlat.Dtos;
|
|
|
|
|
using DS.WMS.Core.TaskPlat.Interface;
|
|
|
|
|
using DS.WMS.Core.TaskPlat.Method;
|
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
|
using Microsoft.Owin.Security.Provider;
|
|
|
|
|
|
|
|
|
|
namespace DS.WMS.TaskApi.Controllers
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 任务台-BC子任务相关接口
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class TaskManageBCController : ApiController
|
|
|
|
|
{
|
|
|
|
|
private readonly ITaskManageBCService _taskManageBCService;
|
|
|
|
|
public TaskManageBCController(ITaskManageBCService taskManageBCService)
|
|
|
|
|
{
|
|
|
|
|
_taskManageBCService = taskManageBCService;
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 通过任务主键获取BC详情
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="taskId">BC任务主键</param>
|
|
|
|
|
[HttpPost("GetInfoByTaskId")]
|
|
|
|
|
public async Task<DataResult<TaskManageOrderResultDto>> GetInfoByTaskId(long taskId)
|
|
|
|
|
{
|
|
|
|
|
var result = await _taskManageBCService.GetInfoByTaskId(taskId);
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 通过任务信息(BC)生成订舱或舱位
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="model">生成订舱或者舱位请求</param>
|
|
|
|
|
/// <returns>返回回执</returns>
|
|
|
|
|
[HttpPost("CreateBookingAndSlot")]
|
|
|
|
|
public async Task<DataResult<TaskManageOrderResultDto>> CreateBookingAndSlot([FromBody] BookingOrSlotGenerateDto model)
|
|
|
|
|
{
|
|
|
|
|
var result = await _taskManageBCService.CreateBookingAndSlot(model);
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#region 获取当前比对结果
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取当前比对结果
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="taskId">BC任务主键</param>
|
|
|
|
|
/// <returns>返回回执</returns>
|
|
|
|
|
[HttpGet("GetCompareResult")]
|
|
|
|
|
public async Task<DataResult<List<CompareResultDetailInfo>>> GetCompareResult(long taskId)
|
|
|
|
|
{
|
|
|
|
|
return await _taskManageBCService.GetCompareResult(taskId);
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
}
|
|
|
|
|
}
|