From d06b8e121bee0cc8779efd604778ae1e08fb712e Mon Sep 17 00:00:00 2001
From: huangxiaoqiang <huangxiaoqiang@hnkhzn.com>
Date: 星期二, 14 十月 2025 12:05:48 +0800
Subject: [PATCH] 1
---
项目代码/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/Task/TaskController.cs | 21 ++++++++++++++++++++-
1 files changed, 20 insertions(+), 1 deletions(-)
diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/Task/TaskController.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/Task/TaskController.cs"
index cda118e..fe594bd 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/Task/TaskController.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/Task/TaskController.cs"
@@ -1,6 +1,7 @@
锘縰sing Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
+using SqlSugar;
using System.Diagnostics.CodeAnalysis;
using WIDESEAWCS_Core;
using WIDESEAWCS_Core.BaseController;
@@ -21,7 +22,7 @@
}
[HttpPost, HttpGet, Route("ReceiveTask"), AllowAnonymous]
- public WebResponseContent ReceiveWMSTask([FromBody] List<WMSTaskDTO> taskDTOs)
+ public WebResponseContent ReceiveWMSTask([FromBody] WMSTaskDTO taskDTOs)
{
return Service.ReceiveWMSTask(taskDTOs);
}
@@ -38,6 +39,18 @@
return Service.TaskCancel(taskDTOs);
}
+ [HttpPost,HttpGet, Route("HandTaskCancel"), AllowAnonymous]
+ public WebResponseContent TaskCancel(int taskNum)
+ {
+ return Service.TaskCancel(taskNum);
+ }
+
+ [HttpPost,HttpGet, Route("TaskComplete"), AllowAnonymous]
+ public WebResponseContent TaskComplete(int taskNum)
+ {
+ return Service.TaskComplete(taskNum);
+ }
+
[HttpPost, HttpGet, Route("UpdateTaskExceptionMessage")]
public WebResponseContent UpdateTaskExceptionMessage(int taskNum, string message)
{
@@ -50,6 +63,12 @@
return Service.UpdateTaskStatusToNext(taskNum);
}
+ [HttpPost, HttpGet, Route("HandUpdateTaskStatusToNext")]
+ public WebResponseContent HandUpdateTaskStatusToNext(int taskNum)
+ {
+ return Service.HandUpdateTaskStatusToNext(taskNum);
+ }
+
[HttpPost, HttpGet, Route("TaskStatusRecovery")]
public WebResponseContent TaskStatusRecovery(int taskNum)
{
--
Gitblit v1.9.3