wankeda
2025-05-26 0864509e1eb593c3dedb66196ec19fe51437922b
代码管理/NEWCode/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/PDA/PDAController.cs
@@ -15,9 +15,11 @@
    public class PDAController : ApiBaseController<ITaskService, Dt_Task>
    {
        private readonly IHttpContextAccessor _httpContextAccessor;
        public PDAController(ITaskService service, IHttpContextAccessor httpContextAccessor) : base(service)
        private readonly ITaskCZService _taskCZService;
        public PDAController(ITaskService service, IHttpContextAccessor httpContextAccessor, ITaskCZService taskCZService) : base(service)
        {
            _httpContextAccessor = httpContextAccessor;
            _taskCZService = taskCZService;
        }
        [HttpPost, Route("AGVPage"), AllowAnonymous]
@@ -37,9 +39,26 @@
        }
        [HttpPost, Route("AddCZTask"), AllowAnonymous]
        public WebResponseContent AddCZTask([FromBody] CZTaskDto czTaskDto)
        public Task<WebResponseContent> AddCZTask([FromBody] CZTaskDto czTaskDto)
        {
            return WebResponseContent.Instance.OK();
            return _taskCZService.AddTaskCZAsync(czTaskDto);
        }
        [HttpPost, Route("EmptyTask"), AllowAnonymous]
        public Task<WebResponseContent> EmptyTask([FromBody] SaveModel saveModel)
        {
            return _taskCZService.EmptyTask(saveModel);
        }
        [HttpPost, Route("OutBoundTask"), AllowAnonymous]
        public Task<WebResponseContent> OutBoundTask([FromBody] string sourceAddress)
        {
            return _taskCZService.OutBoundTask(sourceAddress);
        }
        [HttpPost, Route("OutBoundTasks"), AllowAnonymous]
        public Task<WebResponseContent> OutBoundTasks([FromBody] SaveModel saveModel)
        {
            return _taskCZService.OutBoundTasks(saveModel);
        }
    }
}