From 7f4357de68085b807183bd7219fb4421a06b221b Mon Sep 17 00:00:00 2001 From: he <109787524@qq.com> Date: Tue, 10 Jun 2025 09:37:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Service/Common/EmailNoticeConfigService.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/IRaCIS.Core.Application/Service/Common/EmailNoticeConfigService.cs b/IRaCIS.Core.Application/Service/Common/EmailNoticeConfigService.cs index e6f856a0e..05aeb2ae6 100644 --- a/IRaCIS.Core.Application/Service/Common/EmailNoticeConfigService.cs +++ b/IRaCIS.Core.Application/Service/Common/EmailNoticeConfigService.cs @@ -169,6 +169,11 @@ namespace IRaCIS.Core.Application.Contracts //有的job 可能编辑控制直接不发,需要移除已存在的 HangfireJobHelper.RemoveCronJob(jobId); + if (entity.BusinessScenarioEnum == EmailBusinessScenario.GeneralTraining_ExpirationNotification) + { + HangfireJobHelper.RemoveCronJob(jobId + "System"); + HangfireJobHelper.RemoveCronJob(jobId + "Trial"); + } if (entity.IsAutoSend && entity.IsEnable) {