huangxiaoqiang
2025-10-27 387731cab892804912e68cb91e6fb804411c4756
项目代码/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Task/TaskController.cs
@@ -28,6 +28,28 @@
    {
        return await Service.CompleteAsync(taskNum);
    }
    /// <summary>
    /// 浠诲姟鍙栨秷
    /// </summary>
    /// <param name="taskNum"></param>
    /// <returns></returns>
    [HttpPost, Route("TaskCancel"), AllowAnonymous]
    public WebResponseContent TaskCancel(int taskNum)
    {
        return Service.TaskCancel(taskNum);
    }
    /// <summary>
    /// 鑾峰彇浠诲姟淇℃伅
    /// </summary>
    /// <returns></returns>
    [HttpPost, Route("GetTaskInfo")]
    public WebResponseContent GetTaskInfo()
    {
        return Service.GetTaskInfo();
    }
    /// <summary>
    /// 璇锋眰鍏ュ簱浠诲姟
    /// </summary>
@@ -59,9 +81,21 @@
    /// <returns></returns>
    [HttpPost, AllowAnonymous, Route("RequestOutboundTaskAsync")]
    [TypeFilter(typeof(ThrottleFilter), Arguments = new object[] { 5 })]
    public async Task<WebResponseContent> RequestOutboundTaskAsync([FromBody] RequestTaskDto taskDto)
    public async Task<Dt_Task> RequestOutboundTaskAsync([FromBody] RequestTaskDto taskDto)
    {
        return await Service.RequestOutboundTaskAsync(taskDto);
    }
    /// <summary>
    /// 鍑哄簱鑷崇紦瀛樺尯
    /// </summary>
    /// <param name="request">璇锋眰鏁版嵁</param>
    /// <returns></returns>
    [HttpPost, AllowAnonymous, Route("OutBoundTaskAsync")]
    [TypeFilter(typeof(ThrottleFilter), Arguments = new object[] { 2 })]
    public Task<WebResponseContent> OutBoundTaskAsync(string palletCode)
    {
        return Service.OutBoundTaskAsync(palletCode);
    }
    /// <summary>
@@ -115,4 +149,11 @@
    {
        return await Service.AGVIsNeedRelocationAsync(taskDto);
    }
    [HttpPost, AllowAnonymous, Route("SendERPTaskCompletion")]
    [TypeFilter(typeof(ThrottleFilter), Arguments = new object[] { 5 })]
    public Task<WebResponseContent> ERPAllocate(string palletCode)
    {
        return Service.ERPAllocate(palletCode);
    }
}