From 9ec715d2deb18a269dd49c48da91a36632d08c81 Mon Sep 17 00:00:00 2001
From: wangxinhui <wangxinhui@hnkhzn.com>
Date: 星期三, 18 六月 2025 00:56:26 +0800
Subject: [PATCH] 最新代码上传,优化功能等

---
 代码管理/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/AGV/ZH_AGVController.cs |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/AGV/ZH_AGVController.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/AGV/ZH_AGVController.cs"
index a6c4982..a6305aa 100644
--- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/AGV/ZH_AGVController.cs"
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/AGV/ZH_AGVController.cs"
@@ -98,7 +98,7 @@
                         agvResponseContent.Message = requestZH.Status ? "鎴愬姛" : "澶辫触";
                         return agvResponseContent;
                     case "outbin"://鍑哄簱鏍规嵁杩欎釜淇″彿鍒ゆ柇鍙栬揣瀹屾垚
-                        if (task.TaskType == TaskTypeEnum.Outbound.ObjToInt())
+                        if (task.TaskType.GetTaskTypeGroup() == TaskTypeGroup.OutbondGroup)
                         {
                             var content = TakeFinish(task.CurrentAddress);
                             if (!content.Status) throw new Exception(content.Message);
@@ -112,7 +112,7 @@
                         break;
                     case "getSafetySignal"://瀹夊叏淇″彿鐢宠
                         {
-                            if (task.TaskType == TaskTypeEnum.Outbound.ObjToInt())
+                            if (task.TaskType.GetTaskTypeGroup() == TaskTypeGroup.OutbondGroup)
                             {
                                 var content = TakeRequest(task.CurrentAddress);
                                 //if (!content.Status) throw new Exception(content.Message);
@@ -136,12 +136,12 @@
                             Dt_StationManger dt_Station = _stationMangerRepository.QueryFirst(x => x.AGVStationCode == task.NextAddress);
                             if (dt_Station == null)
                             {
-                                throw new Exception($"{task.NextAddress}AGV绔欏彴鏈畾涔�");
+                                throw new Exception($"{task.NextAddress}绔欏彴鏈畾涔�");
                             }
                             task.CurrentAddress = dt_Station.StationCode;
                             task.NextAddress = "";
                             task.TaskState = TaskStatusEnum.AGV_Finish.ObjToInt();
-                            task.DeviceCode = "SC01_CSJ";
+                            task.DeviceCode = "SC01_ZH";
                             var up = _taskRepository.UpdateData(task);
                             agvResponseContent.Code = up ? "0" : "1";
                             agvResponseContent.Message = up ? "鎴愬姛" : "澶辫触";

--
Gitblit v1.9.3