From 21cd52c5592aad3687be74599a932012d9dd77a4 Mon Sep 17 00:00:00 2001 From: wanshenmean <cathay_xy@163.com> Date: 星期二, 15 四月 2025 10:03:38 +0800 Subject: [PATCH] 条码上传冠宏 --- 代码管理/NEWCode/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/PDA/PDAController.cs | 14 +++++++++++--- 1 files changed, 11 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..7e6581f 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,15 @@ } [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); } } } -- Gitblit v1.9.3