From e46aa927d231af83724683c7286d9db503e24cf7 Mon Sep 17 00:00:00 2001 From: z8018 <1282578289@qq.com> Date: 星期二, 10 六月 2025 11:46:20 +0800 Subject: [PATCH] 1 --- 项目代码/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/Gantry/GantryFJob.cs | 19 ++++++++++++++++--- 1 files changed, 16 insertions(+), 3 deletions(-) diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/Gantry/GantryFJob.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/Gantry/GantryFJob.cs" index 80feb9a..3fbf0ea 100644 --- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/Gantry/GantryFJob.cs" +++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/Gantry/GantryFJob.cs" @@ -18,8 +18,22 @@ namespace WIDESEAWCS_Tasks { /// <summary> - /// 榫欓棬鏋� + /// 榫欓棬鏋朵綔涓氫换鍔★紝缁ф壙鑷狫obBase骞跺疄鐜癐Job鎺ュ彛銆� <br/> + /// 閫氳繃[DisallowConcurrentExecution]鐗规�х姝㈠苟鍙戞墽琛屻�� /// </summary> + /// <remarks> + /// 涓昏鍔熻兘锛� <br/> + /// 1. 鏍规嵁璁惧鐘舵�侊紙gantryStatus/gantryAutoStatus/gantryWorkStatus锛夎Е鍙戜换鍔℃墽琛岄�昏緫 <br/> + /// 2. 澶勭悊浠诲姟鍧愭爣璁$畻涓庤寖鍥存牎楠� <br/> + /// 3. 鏇存柊璁惧PLC瀵勫瓨鍣ㄥ�煎拰浠诲姟鐘舵�� <br/> + /// 4. 瀹屾垚浠诲姟鍚庡悜MES绯荤粺涓婃姤鏁版嵁 <br/> + /// 渚濊禆鏈嶅姟锛� <br/> + /// - ITaskRepository: 浠诲姟浠撳偍鏈嶅姟 <br/> + /// - ITaskService: 浠诲姟涓氬姟鏈嶅姟 <br/> + /// - IContainerItemRepository: 瀹瑰櫒鐗╁搧浠撳偍 <br/> + /// - WebSocketServer: WebSocket鏈嶅姟 <br/> + /// - IOrderDetailsService: 璁㈠崟璇︽儏鏈嶅姟 <br/> + /// </remarks> [DisallowConcurrentExecution] public class GantryFJob : JobBase, IJob { @@ -40,9 +54,8 @@ public Task Execute(IJobExecutionContext context) { bool flag = context.JobDetail.JobDataMap.TryGetValue("JobParams", out object? value); - if (flag && value != null && value is OtherDevice) + if (flag && value != null && value is OtherDevice otherDevice) { - OtherDevice otherDevice = (OtherDevice)value; try { byte gantryStatus = otherDevice.GetValue<GantryDBName, byte>(GantryDBName.GantryStatus); -- Gitblit v1.9.3