pan
2025-11-16 cf83e0828b286b61b69a15005e6247d8b03f4cd8
项目代码/WMS无仓储版/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/TaskInfo/TaskController.cs
@@ -1,6 +1,7 @@
锘縰sing Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using System.Threading.Tasks;
using WIDESEA_Common.CommonEnum;
using WIDESEA_Core;
using WIDESEA_Core.Attributes;
@@ -23,14 +24,28 @@
        {
        }
        [HttpPost, Route("Test"), AllowAnonymous, MethodParamsValidate]
        [HttpPost, Route("PalletOutboundTask"), AllowAnonymous, MethodParamsValidate]
        public async Task<WebResponseContent> PalletOutboundTask(string endStation, string palletCode = "")
        {
            var result=await Service.PalletOutboundTask(endStation, palletCode);
            var result = await Service.PalletOutboundTask(endStation, palletCode);
            return result;
        }
        /// <summary>
        /// 鐢熸垚鍑哄簱浠诲姟
        /// </summary>
        /// <param name="keys"></param>
        /// <returns></returns>
        [HttpPost, HttpGet, Route("GenerateOutboundTasks"), AllowAnonymous]
        public async Task<WebResponseContent> GenerateOutboundTasks([FromBody] int[] keys)
        {
            return await Service.GenerateOutboundTasksAsync(keys);
        }
    }
}