yangpeixing
10 天以前 4fc31b41c205507607c91ab3afe10fbc06a9aa09
ÏîÄ¿´úÂë/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Task/TaskController.cs
@@ -1,4 +1,5 @@
using WIDESEA_DTO;
using Org.BouncyCastle.Asn1.Mozilla;
using WIDESEA_DTO;
namespace WIDESEA_WMSServer.Controllers.Task;
@@ -23,7 +24,7 @@
    /// </summary>
    /// <param name="saveModel">任务号</param>
    /// <returns>成功或失败</returns>
    [HttpGet, Route("CompleteTaskAsync"), AllowAnonymous]
    [HttpGet,HttpPost, Route("CompleteTaskAsync"), AllowAnonymous]
    public async Task<WebResponseContent> CompleteTaskAsync(int taskNum)
    {
        return await Service.CompleteAsync(taskNum);
@@ -34,7 +35,7 @@
    /// </summary>
    /// <param name="taskNum"></param>
    /// <returns></returns>
    [HttpPost, Route("TaskCancel"), AllowAnonymous]
    [HttpPost, HttpGet,Route("TaskCancel"), AllowAnonymous]
    public WebResponseContent TaskCancel(int taskNum)
    {
        return Service.TaskCancel(taskNum);
@@ -44,7 +45,7 @@
    /// èŽ·å–ä»»åŠ¡ä¿¡æ¯
    /// </summary>
    /// <returns></returns>
    [HttpPost, Route("GetTaskInfo")]
    [HttpPost, HttpGet, Route("GetTaskInfo")]
    public WebResponseContent GetTaskInfo()
    {
        return Service.GetTaskInfo();
@@ -55,23 +56,18 @@
    /// </summary>
    /// <param name="input">请求数据</param>
    /// <returns></returns>
    [HttpPost, AllowAnonymous, Route("RequestInboundTaskAsync")]
    [HttpPost, HttpGet, AllowAnonymous, Route("RequestInboundTaskAsync")]
    [TypeFilter(typeof(ThrottleFilter), Arguments = new object[] { 5 })]
    public async Task<WebResponseContent> RequestInboundTaskAsync([FromBody] RequestTaskDto input)
    {
        return await Service.RequestInboundTaskAsync(input);
    }
    /// <summary>
    /// æ›´æ–°è´§ä½ä»»åŠ¡çŠ¶æ€åˆ°ä¸‹ä¸€ä¸ªèŠ‚ç‚¹
    /// </summary>
    /// <param name="input">请求数据</param>
    /// <returns></returns>
    [HttpPost, AllowAnonymous, Route("RequestLocationAsync")]
    [HttpPost, HttpGet, AllowAnonymous, Route("RequestRelocationTaskAsync")]
    [TypeFilter(typeof(ThrottleFilter), Arguments = new object[] { 5 })]
    public async Task<WebResponseContent> RequestLocationAsync([FromBody] RequestTaskDto input)
    public Task<WebResponseContent> RequestRelocationTaskAsync(string SourceAddress, string TargetAddress)
    {
        return await Service.RequestLocationAsync(input);
        return Service.RequestRelocationTaskAsync(SourceAddress, TargetAddress);
    }
    /// <summary>
@@ -79,7 +75,7 @@
    /// </summary>
    /// <param name="request">请求数据</param>
    /// <returns></returns>
    [HttpPost, AllowAnonymous, Route("RequestOutboundTaskAsync")]
    [HttpPost, HttpGet, AllowAnonymous, Route("RequestOutboundTaskAsync")]
    [TypeFilter(typeof(ThrottleFilter), Arguments = new object[] { 5 })]
    public async Task<Dt_Task> RequestOutboundTaskAsync([FromBody] RequestTaskDto taskDto)
    {
@@ -91,11 +87,25 @@
    /// </summary>
    /// <param name="request">请求数据</param>
    /// <returns></returns>
    [HttpPost, AllowAnonymous, Route("OutBoundTaskAsync")]
    [HttpPost, HttpGet, AllowAnonymous, Route("OutBoundTaskAsync")]
    [TypeFilter(typeof(ThrottleFilter), Arguments = new object[] { 2 })]
    public Task<WebResponseContent> OutBoundTaskAsync(string palletCode)
    public Task<WebResponseContent> OutBoundTaskAsync(string palletCode, string remark, int doubleTray)
    {
        return Service.OutBoundTaskAsync(palletCode);
        return Service.OutBoundTaskAsync(palletCode, remark, doubleTray);
    }
    [HttpPost, HttpGet, AllowAnonymous, Route("OtherOutBoundTaskAsync")]
    [TypeFilter(typeof(ThrottleFilter), Arguments = new object[] { 2 })]
    public Task<WebResponseContent> OtherOutBoundTaskAsync([FromBody] List<DtStockInfoDetail> details)
    {
        return Service.OtherOutBoundTaskAsync(details);
    }
    [HttpPost, HttpGet, AllowAnonymous, Route("HandAllocateOutBoundTaskAsync")]
    [TypeFilter(typeof(ThrottleFilter), Arguments = new object[] { 2 })]
    public Task<WebResponseContent> HandAllocateOutBoundTaskAsync([FromBody] List<DtStockInfoDetail> details)
    {
        return Service.HandAllocateOutBoundTaskAsync(details);
    }
    /// <summary>
@@ -144,16 +154,20 @@
    }
    [HttpPost, AllowAnonymous, Route("AGVIsNeedRelocationAsync")]
    [TypeFilter(typeof(ThrottleFilter), Arguments = new object[] { 5 })]
    public async Task<WebResponseContent> AGVIsNeedRelocationAsync([FromBody] RequestTaskDto taskDto)
    {
        return await Service.AGVIsNeedRelocationAsync(taskDto);
    }
    [HttpPost, AllowAnonymous, Route("SendERPTaskCompletion")]
    [TypeFilter(typeof(ThrottleFilter), Arguments = new object[] { 5 })]
    public Task<WebResponseContent> ERPAllocate(string palletCode)
    [HttpPost, AllowAnonymous, Route("UpdateStartLocationInfo")]
    public async Task<WebResponseContent> UpdateStartLocationInfo([FromBody]Dt_Task task)
    {
        return Service.ERPAllocate(palletCode);
        return await Service.UpdateStartLocationInfo(task);
    }
    [HttpPost,HttpGet, AllowAnonymous, Route("RequestLocation")]
    public Task<WebResponseContent> RequestLocation(string palletCode)
    {
        return Service.RequestLocation(palletCode);
    }
}