From 6cc35000a6e138cfad96e7b02f8aeddcdb4ba6bf Mon Sep 17 00:00:00 2001 From: wankeda <Administrator@DESKTOP-HAU3ST3> Date: 星期二, 24 六月 2025 09:57:25 +0800 Subject: [PATCH] 代码提交 --- 代码管理/NEWCode/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/PDA/PDAController.cs | 25 ++++++++++++++++++++++--- 1 files changed, 22 insertions(+), 3 deletions(-) diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/NEWCode/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/PDA/PDAController.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/NEWCode/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/PDA/PDAController.cs" index 29bbb0e..c003bba 100644 --- "a/\344\273\243\347\240\201\347\256\241\347\220\206/NEWCode/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/PDA/PDAController.cs" +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/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] SaveModel saveModel) + { + return _taskCZService.OutBoundTask(saveModel); + } + + [HttpPost, Route("OutBoundTasks"), AllowAnonymous] + public Task<WebResponseContent> OutBoundTasks([FromBody] SaveModel saveModel) + { + return _taskCZService.OutBoundTasks(saveModel); } } } -- Gitblit v1.9.3