From 6cb85536a0b7edf936cfc7b68502c858068c140f Mon Sep 17 00:00:00 2001
From: yangpeixing <yangpeixing@hnkhzn.com>
Date: 星期三, 10 十二月 2025 16:15:46 +0800
Subject: [PATCH] 在WCS中添加监控堆垛机和提升机状态和报警信息功能

---
 项目代码/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/Task/TaskController.cs |   11 ++++++++++-
 1 files changed, 10 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 fc5ab5c..ec9fe81 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,11 +1,14 @@
 锘縰sing Microsoft.AspNetCore.Authorization;
 using Microsoft.AspNetCore.Http;
 using Microsoft.AspNetCore.Mvc;
+using System.Linq;
 using WIDESEAWCS_Core;
 using WIDESEAWCS_Core.BaseController;
 using WIDESEAWCS_DTO.TaskInfo;
 using WIDESEAWCS_ITaskInfoService;
 using WIDESEAWCS_Model.Models;
+using WIDESEAWCS_QuartzJob;
+using WIDESEAWCS_Tasks.ElevatorJob;
 
 namespace WIDESEAWCS_WCSServer.Controllers.Task
 {
@@ -31,7 +34,7 @@
             return Service.UpdateTaskExceptionMessage(taskNum, message);
         }
 
-        [HttpPost, HttpGet, Route("UpdateTaskStatusToNext")]
+        [HttpPost, HttpGet, Route("UpdateTaskStatusToNext") ,AllowAnonymous]
         public WebResponseContent UpdateTaskStatusToNext(int taskNum)
         {
             return Service.UpdateTaskStatusToNext(taskNum);
@@ -48,5 +51,11 @@
         {
             return Service.RollbackTaskStatusToLast(taskNum);
         }
+
+        [HttpPost, HttpGet, Route("SendAgvTask"),AllowAnonymous]
+        public WebResponseContent SendAgvTask(string modelProcessCode, int taskNum)
+        {
+            return Service.SendAgvTask(modelProcessCode, taskNum);
+        }
     }
 }

--
Gitblit v1.9.3