From a9edf162ac5dd98719c2f93ab0800c98673fd220 Mon Sep 17 00:00:00 2001
From: xiazhengtongxue <133085197+xiazhengtongxue@users.noreply.github.com>
Date: 星期三, 01 四月 2026 16:14:49 +0800
Subject: [PATCH] fix: 修复AGV任务下发,修改找空闲为深度优先等
---
Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/System/Sys_DictionaryController.cs | 26 ++++++++++++++++++++++++--
1 files changed, 24 insertions(+), 2 deletions(-)
diff --git a/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/System/Sys_DictionaryController.cs b/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/System/Sys_DictionaryController.cs
index 3ac5a02..cb7c013 100644
--- a/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/System/Sys_DictionaryController.cs
+++ b/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/System/Sys_DictionaryController.cs
@@ -318,6 +318,28 @@
}
#endregion
+ #region TaskRobotStatusEnum
+
+ {
+ Type type = typeof(TaskRobotStatusEnum);
+ List<int> enums = Enum.GetValues(typeof(TaskRobotStatusEnum)).Cast<int>().ToList();
+ int index = 0;
+ foreach (var item in enums)
+ {
+ FieldInfo? fieldInfo = typeof(TaskRobotStatusEnum).GetField(((TaskRobotStatusEnum)item).ToString());
+ DescriptionAttribute? description = fieldInfo.GetCustomAttribute<DescriptionAttribute>();
+ if (description != null)
+ {
+ data.Add(new { key = item.ToString(), value = description.Description });
+ }
+ else
+ {
+ data.Add(new { key = item.ToString(), value = item.ToString() });
+ }
+ index++;
+ }
+ }
+ #endregion
result = new VueDictionaryDTO { DicNo = key, Config = "", Data = data };
}
break;
@@ -369,7 +391,7 @@
result = new VueDictionaryDTO { DicNo = key, Config = "", Data = data };
}
break;
- case "dispatchId":
+ case "dispatchId":
{
Type type = typeof(IJob);
var basePath = AppContext.BaseDirectory;
@@ -403,4 +425,4 @@
}
}
}
-}
+}
\ No newline at end of file
--
Gitblit v1.9.3