调整监测金蝶删单
This commit is contained in:
@@ -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 =>
|
||||
|
||||
Reference in New Issue
Block a user