1
huangxiaoqiang
2 天以前 af5847927931d3f491d7be5e0178cff3c37ac6f9
ÏîÄ¿´úÂë/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Task/TaskController.cs
@@ -23,7 +23,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 +34,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 +44,7 @@
    /// èŽ·å–ä»»åŠ¡ä¿¡æ¯
    /// </summary>
    /// <returns></returns>
    [HttpPost, Route("GetTaskInfo")]
    [HttpPost, HttpGet, Route("GetTaskInfo")]
    public WebResponseContent GetTaskInfo()
    {
        return Service.GetTaskInfo();
@@ -55,7 +55,7 @@
    /// </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)
    {
@@ -67,7 +67,7 @@
    /// </summary>
    /// <param name="input">请求数据</param>
    /// <returns></returns>
    [HttpPost, AllowAnonymous, Route("RequestLocationAsync")]
    [HttpPost, HttpGet, AllowAnonymous, Route("RequestLocationAsync")]
    [TypeFilter(typeof(ThrottleFilter), Arguments = new object[] { 5 })]
    public async Task<WebResponseContent> RequestLocationAsync([FromBody] RequestTaskDto input)
    {
@@ -79,7 +79,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)
    {
@@ -87,15 +87,29 @@
    }
    /// <summary>
    /// ç©ºæ‰˜ç›˜æ»¡ç›˜å‡ºåº“请求
    /// å‡ºåº“至缓存区
    /// </summary>
    /// <param name="request">请求数据</param>
    /// <returns></returns>
    [HttpPost, AllowAnonymous, Route("OtherOutBoundTaskAsync")]
    [HttpPost, HttpGet, AllowAnonymous, Route("OutBoundTaskAsync")]
    [TypeFilter(typeof(ThrottleFilter), Arguments = new object[] { 2 })]
    public Task<WebResponseContent> OtherOutBoundTaskAsync(string palletCode)
    public Task<WebResponseContent> OutBoundTaskAsync(string palletCode)
    {
        return Service.OtherOutBoundTaskAsync(palletCode);
        return Service.OutBoundTaskAsync(palletCode);
    }
    [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>
@@ -150,10 +164,9 @@
        return await Service.AGVIsNeedRelocationAsync(taskDto);
    }
    [HttpPost, AllowAnonymous, Route("SendERPTaskCompletion")]
    [TypeFilter(typeof(ThrottleFilter), Arguments = new object[] { 5 })]
    public Task<WebResponseContent> SendERPTaskCompletion(string palletCode)
    [HttpPost, AllowAnonymous, Route("GetTaskData")]
    public async Task<WebResponseContent> GetTaskData()
    {
        return Service.SendERPTaskCompletion(palletCode);
        return await Service.GetTaskData();
    }
}