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/GantryPositionJob.cs | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/GantryPositionJob.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/GantryPositionJob.cs" index 51d9e68..5f61979 100644 --- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/GantryPositionJob.cs" +++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/GantryPositionJob.cs" @@ -10,6 +10,15 @@ namespace WIDESEAWCS_Tasks { + /// <summary> + /// 榫欓棬浣嶇疆浣滀笟浠诲姟锛岀敤浜庤鍙栧苟鏇存柊H鍜孼杞磋澶囩殑浣嶇疆淇℃伅 + /// </summary> + /// <remarks> + /// 1. 浠嶫obParams涓幏鍙栬澶囧弬鏁� <br/> + /// 2. 璇诲彇H杞磋澶囦綅缃苟鏇存柊鍒癘Positions.HPositions瀛楀吀 <br/> + /// 3. 璇诲彇Z杞磋澶囦綅缃苟鏇存柊鍒癘Positions.ZPositions瀛楀吀 <br/> + /// 4. 澶勭悊杩囩▼涓崟鑾峰苟璁板綍寮傚父 + /// </remarks> [DisallowConcurrentExecution] public class GantryPositionJob : JobBase, IJob { @@ -21,9 +30,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 { { -- Gitblit v1.9.3