From 102502a8dfeeee728db99758c4443b7824bbe232 Mon Sep 17 00:00:00 2001
From: wanshenmean <cathay_xy@163.com>
Date: 星期四, 10 四月 2025 14:54:15 +0800
Subject: [PATCH] 合并
---
代码管理/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