|
|
|
@ -1,7 +1,9 @@
|
|
|
|
|
using DS.Module.Core.Attributes;
|
|
|
|
|
using DS.WMS.Core.Op.Dtos;
|
|
|
|
|
using DS.WMS.Core.Op.Interface;
|
|
|
|
|
using DS.WMS.Core.TaskPlat.Dtos;
|
|
|
|
|
using DS.WMS.Core.TaskPlat.Interface;
|
|
|
|
|
using DS.WMS.Core.TaskPlat.Method;
|
|
|
|
|
using Microsoft.AspNetCore.Authorization;
|
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
|
using ThirdParty.Json.LitJson;
|
|
|
|
@ -14,10 +16,12 @@ namespace DS.WMS.TaskApi.Controllers
|
|
|
|
|
public class TaskDraftCompareController : ApiController
|
|
|
|
|
{
|
|
|
|
|
private readonly ITaskDraftCompareService _taskDraftCompareService;
|
|
|
|
|
private readonly IOpFileService _opFileService;
|
|
|
|
|
|
|
|
|
|
public TaskDraftCompareController(ITaskDraftCompareService taskDraftCompareService)
|
|
|
|
|
public TaskDraftCompareController(ITaskDraftCompareService taskDraftCompareService, IOpFileService opFileService)
|
|
|
|
|
{
|
|
|
|
|
_taskDraftCompareService = taskDraftCompareService;
|
|
|
|
|
_opFileService = opFileService;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#region 执行邮件Draft比对
|
|
|
|
@ -41,7 +45,7 @@ namespace DS.WMS.TaskApi.Controllers
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="bookingId">订舱主键</param>
|
|
|
|
|
/// <returns>返回回执</returns>
|
|
|
|
|
[HttpPost("GetDraftCompareResultInfo")]
|
|
|
|
|
[HttpGet("GetDraftCompareResultInfo")]
|
|
|
|
|
public async Task<TaskManageExcuteResultDto> GetDraftCompareResultInfo([FromQuery] long bookingId)
|
|
|
|
|
{
|
|
|
|
|
return await _taskDraftCompareService.GetDraftCompareResultInfo(bookingId);
|
|
|
|
@ -71,10 +75,23 @@ namespace DS.WMS.TaskApi.Controllers
|
|
|
|
|
/// <param name="model">请求详情</param>
|
|
|
|
|
/// <returns>返回回执</returns>
|
|
|
|
|
[HttpPost("SaveDraftCompareManual")]
|
|
|
|
|
public async Task SaveDraftCompareManual(TaskDraftCompareFeedBackDto model)
|
|
|
|
|
public async Task SaveDraftCompareManual([FromBody] TaskDraftCompareFeedBackDto model)
|
|
|
|
|
{
|
|
|
|
|
await _taskDraftCompareService.SaveDraftCompareManual(model);
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region 根据文件ID下载附件
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 根据文件ID下载附件
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="taskId">文件主键</param>
|
|
|
|
|
/// <returns>返回数据流</returns>
|
|
|
|
|
[HttpGet("DownloadFile")]
|
|
|
|
|
public async Task<IActionResult> DownloadFile([FromQuery] long Id)
|
|
|
|
|
{
|
|
|
|
|
return await _opFileService.DownloadFile(Id.ToString());
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|