From a206dda817a9f9615db1fa52e3ac193af9ac4a92 Mon Sep 17 00:00:00 2001 From: wankeda <Administrator@DESKTOP-HAU3ST3> Date: 星期五, 11 四月 2025 10:27:24 +0800 Subject: [PATCH] 1 --- 代码管理/NEWCode/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/Task/TaskController.cs | 16 +++++++++++++++- 1 files changed, 15 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..3d6ae2b 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,11 @@ { return Service.RollbackTaskStatusToLast(taskNum); } + + [HttpPost, HttpGet, Route("FinishTask"),AllowAnonymous] + public Task<WebResponseContent> FinishTask([FromBody] CZTaskFinshDto taskFinshDto) + { + return _taskInfoService.FinishTask(taskFinshDto); + } } } -- Gitblit v1.9.3