1
huangxiaoqiang
9 天以前 dda095e27b535d5748340f127c5f83c0d1324226
ÏîÄ¿´úÂë/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,15 @@
    }
    /// <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);
    }
    /// <summary>
@@ -152,8 +152,8 @@
    [HttpPost, AllowAnonymous, Route("SendERPTaskCompletion")]
    [TypeFilter(typeof(ThrottleFilter), Arguments = new object[] { 5 })]
    public Task<WebResponseContent> SendERPTaskCompletion(string palletCode)
    public Task<WebResponseContent> ERPAllocate(DtStockInfo stockInfo)
    {
        return Service.SendERPTaskCompletion(palletCode);
        return Service.ERPAllocate(stockInfo);
    }
}