dengjunjie
2026-03-02 e1f772ef890e46813b62a08aa8e77a258f6add2c
´úÂë¹ÜÀí/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/WMS/WMSController.cs
@@ -5,6 +5,7 @@
using System.Threading.Tasks;
using WIDESEAWCS_Core;
using WIDESEAWCS_DTO.WMS;
using WIDESEAWCS_IBasicInfoService;
using WIDESEAWCS_ITaskInfoService;
namespace WIDESEAWCS_Server.Controllers.WMS
@@ -14,9 +15,11 @@
    public class WMSController : ControllerBase
    {
        private readonly ITaskService _taskService;
        public WMSController(ITaskService taskService)
        private readonly IStationMangerService _stationMangerService;
        public WMSController(ITaskService taskService, IStationMangerService stationMangerService)
        {
            _taskService = taskService;
            _stationMangerService = stationMangerService;
        }
        /// <summary>
        /// WMS下发任务
@@ -24,9 +27,26 @@
        /// <param name="taskDTOs"></param>
        /// <returns></returns>
        [HttpPost, Route("ReceiveTask"), AllowAnonymous]
        public WebResponseContent ReceiveWMSTask([FromBody] List<WMSTasksDTO> taskDTOs)
        public object ReceiveWMSTask([FromBody] List<WMSTasksDTO> taskDTOs)
        {
            return _taskService.ReceiveWMSTask(taskDTOs);
            WebResponseContent content = _taskService.ReceiveWMSTask(taskDTOs);
            if (!content.Status)
            {
                return new
                {
                    code = "404",
                    msg = content.Message
                };
            }
            else
            {
                return new
                {
                    code = "0",
                    msg = content.Message,
                    data = content.Data
                };
            }
        }
        /// <summary>
@@ -118,7 +138,8 @@
        /// </summary>
        /// <param name="AreaCode">区域号</param>
        /// <returns></returns>
        public object  LocationInquiry(string AreaCode)
        [HttpPost, Route("LocationInquiry"), AllowAnonymous]
        public object LocationInquiry(string AreaCode)
        {
            WebResponseContent content = _taskService.LocationInquiry(AreaCode);
            if (!content.Status)