From 65b5b0ced6d04f773002908cb8c0720540f34907 Mon Sep 17 00:00:00 2001
From: wanshenmean <cathay_xy@163.com>
Date: 星期四, 10 四月 2025 09:20:17 +0800
Subject: [PATCH] 1

---
 代码管理/NEWCode/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/Task/TaskController.cs |   15 ++++++++++++++-
 1 files changed, 14 insertions(+), 1 deletions(-)

diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/NEWCode/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/Task/TaskController.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/NEWCode/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/Task/TaskController.cs"
index 7515054..fa26d39 100644
--- "a/\344\273\243\347\240\201\347\256\241\347\220\206/NEWCode/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/Task/TaskController.cs"
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/NEWCode/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/Task/TaskController.cs"
@@ -6,6 +6,7 @@
 using WIDESEAWCS_DTO.TaskInfo;
 using WIDESEAWCS_ITaskInfoService;
 using WIDESEAWCS_Model.Models;
+using WIDESEAWCS_TaskInfoService;
 
 namespace WIDESEAWCS_WCSServer.Controllers.Task
 {
@@ -14,11 +15,18 @@
     public class TaskController : ApiBaseController<ITaskService, Dt_Task>
     {
         private readonly IHttpContextAccessor _httpContextAccessor;
-        public TaskController(ITaskService service, IHttpContextAccessor httpContextAccessor) : base(service)
+        private readonly ITaskCZService _taskInfoService;
+        public TaskController(ITaskService service, IHttpContextAccessor httpContextAccessor, ITaskCZService taskInfoService) : base(service)
         {
             _httpContextAccessor = httpContextAccessor;
+            _taskInfoService = taskInfoService;
         }
 
+        /// <summary>
+        /// 
+        /// </summary>
+        /// <param name="taskDTOs"></param>
+        /// <returns></returns>
         [HttpPost, Route("ReceiveTask"), AllowAnonymous]
         public WebResponseContent ReceiveWMSTask([FromBody] List<WMSTaskDTO> taskDTOs)
         {
@@ -48,5 +56,10 @@
         {
             return Service.RollbackTaskStatusToLast(taskNum);
         }
+
+        public Task<WebResponseContent> FinishTask(CZTaskFinshDto taskFinshDto)
+        {
+            return _taskInfoService.FinishTask(taskFinshDto);
+        }
     }
 }

--
Gitblit v1.9.3