From 91b610a8cf7ad7a4e52486d3ff904df229873b23 Mon Sep 17 00:00:00 2001
From: wankeda <Administrator@DESKTOP-HAU3ST3>
Date: 星期五, 11 四月 2025 14:31:05 +0800
Subject: [PATCH] 1

---
 代码管理/NEWCode/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/PDA/PDAController.cs |    8 +++++---
 1 files changed, 5 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..1e2307b 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,9 @@
         }
 
         [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);
         }
     }
 }

--
Gitblit v1.9.3