From 9eeca6aa905cffea1c95d965b4790fbd20ce2275 Mon Sep 17 00:00:00 2001 From: hutongqing <hutongqing@hnkhzn.com> Date: 星期五, 25 十月 2024 16:19:16 +0800 Subject: [PATCH] 更新字典数据获取 --- WIDESEAWCS_Server/WIDESEAWCS_Tasks/StackerCraneJob/CommonStackerCraneJob.cs | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/WIDESEAWCS_Server/WIDESEAWCS_Tasks/StackerCraneJob/CommonStackerCraneJob.cs b/WIDESEAWCS_Server/WIDESEAWCS_Tasks/StackerCraneJob/CommonStackerCraneJob.cs index 03b649d..6d107ed 100644 --- a/WIDESEAWCS_Server/WIDESEAWCS_Tasks/StackerCraneJob/CommonStackerCraneJob.cs +++ b/WIDESEAWCS_Server/WIDESEAWCS_Tasks/StackerCraneJob/CommonStackerCraneJob.cs @@ -6,6 +6,7 @@ using System.Linq; using System.Text; using System.Threading.Tasks; +using WIDESEAWCS_Common.TaskEnum; using WIDESEAWCS_Core.Enums; using WIDESEAWCS_ITaskInfoRepository; using WIDESEAWCS_ITaskInfoService; @@ -20,7 +21,7 @@ namespace WIDESEAWCS_Tasks { [DisallowConcurrentExecution] - public class CommonStackerCraneJob : IJob + public class CommonStackerCraneJob : JobBase, IJob { private readonly ITaskService _taskService; private readonly ITaskExecuteDetailService _taskExecuteDetailService; @@ -39,6 +40,11 @@ { try { + + // speStackerCrane.GetStackerCraneStatus<StackerCraneAutoStatus>(); + // speStackerCrane.GetStackerCraneStatus<StackerCraneWorkStatus>(); + // speStackerCrane.GetStackerCraneStatus<StackerCraneStatus>(); + CommonStackerCrane commonStackerCrane = (CommonStackerCrane)context.JobDetail.JobDataMap.Get("JobParams"); if (commonStackerCrane != null) { @@ -74,8 +80,10 @@ } catch (Exception ex) { + WriteError("CommonConveyorLineJob", "test", ex); //Console.WriteLine(nameof(CommonStackerCraneJob) + ":" + ex.ToString()); } + WriteDebug("CommonConveyorLineJob", "test"); return Task.CompletedTask; } -- Gitblit v1.9.3