From 1a8a81785470302fc7fbd6914a9df5d1094dac2a Mon Sep 17 00:00:00 2001 From: Shuxia Ning <NingShuxia0927@outlook.com> Date: 星期三, 28 八月 2024 17:31:07 +0800 Subject: [PATCH] 调度修改 --- IStation.Application/01-ch/01-schedule/Schedule_Controller.cs | 18 ++++++++++++++++++ 1 files changed, 18 insertions(+), 0 deletions(-) diff --git a/IStation.Application/01-ch/01-schedule/Schedule_Controller.cs b/IStation.Application/01-ch/01-schedule/Schedule_Controller.cs index 6048dc7..0f70b59 100644 --- a/IStation.Application/01-ch/01-schedule/Schedule_Controller.cs +++ b/IStation.Application/01-ch/01-schedule/Schedule_Controller.cs @@ -443,6 +443,23 @@ Log.Debug(request_id, log_title, JsonHelper.Object2Json(schedule_pump_list2)); } } + + + var t = new System.Timers.Timer(); + t.Interval = 10 * 60 * 1000; + t.Elapsed += (s, e) => + { + log_title = "瀹炴椂ZyScada璇锋眰(璋冨害鍚�10鍒嗛挓楠岃瘉)"; + var get_msg = GlobalHelper.GetRealTimeZyScadaList(out List<Model.ZyScada> zy_scada_list, is_zy_scada_debug); + if (!string.IsNullOrEmpty(get_msg)) + { + Log.Info(request_id, log_title, get_msg); + } + Log.Debug(request_id, log_title, JsonHelper.Object2Json(zy_scada_list)); + }; + t.AutoReset = false; + t.Start(); + } catch (Exception ex) { @@ -454,5 +471,6 @@ } + } } -- Gitblit v1.9.3