调整监测金蝶删单

This commit is contained in:
18942506660
2024-08-07 15:20:25 +08:00
parent 1a91e4805a
commit 6239a1e54e
19 changed files with 148 additions and 33 deletions

View File

@@ -285,6 +285,18 @@ namespace WMS.Web.Repositories.DependencyInjection
//.WithCronSchedule(CronScheduleBuilder.DailyAtHourAndMinute(options.JobStartHour[5], options.JobStartMinute[5]))
.WithDescription("MaterialsQuartzJobTriggerDecs"));
#endregion
#region
var jobKey_erpdelete = new JobKey("ErpDeleteQuartzJob", options.QuartzJobValue);
q.AddJob<ErpDeleteQuartzJob>(jobKey_erpdelete, j => j.WithDescription("ErpDeleteQuartzJob"));
q.AddTrigger(t => t
.WithIdentity("ErpDeleteQuartzJobTrigger")
.ForJob(jobKey_erpdelete)
.StartNow()
.WithCronSchedule(options.JobStartErpDelete)
//.WithCronSchedule(CronScheduleBuilder.DailyAtHourAndMinute(options.JobStartHour[5], options.JobStartMinute[5]))
.WithDescription("ErpDeleteQuartzJobTriggerDecs"));
#endregion
});
//.net core核心托管-添加Quartz服务器
Services.AddQuartzServer(options =>