From f52bacd52cbc8f8250766d2910e638a8bf4dbcc8 Mon Sep 17 00:00:00 2001
From: hwh <332078369@qq.com>
Date: 星期六, 22 六月 2024 16:59:12 +0800
Subject: [PATCH] 调用内部代码的定时任务
---
Wms/Utility/Job/SchedulerCenter.cs | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/Wms/Utility/Job/SchedulerCenter.cs b/Wms/Utility/Job/SchedulerCenter.cs
index 73f3642..8ee31a7 100644
--- a/Wms/Utility/Job/SchedulerCenter.cs
+++ b/Wms/Utility/Job/SchedulerCenter.cs
@@ -143,6 +143,13 @@
httpDir.Add(Constant.REQUESTPARAMETERS, entity.RequestParameters);
httpDir.Add(Constant.REQUESTTYPE, ((int)entity.RequestType).ToString());
}
+ else if (entity.JobType == JobTypeEnum.BuiltIn)
+ {
+ jobConfigurator = JobBuilder.Create<InternalMethodJob>();
+ httpDir.Add(Constant.CLASSNAME, entity.ClassName);
+ httpDir.Add(Constant.METHODNAME, entity.MethodName);
+ httpDir.Add(Constant.METHODPARAMETERS, entity.MethodParameters);
+ }
// 瀹氫箟杩欎釜宸ヤ綔锛屽苟灏嗗叾缁戝畾鍒版垜浠殑IJob瀹炵幇绫�
IJobDetail job = jobConfigurator
--
Gitblit v1.8.0