using Quartz; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Business.Quartz { /// /// 排产定时任务 /// public class ProductionScheduleJob : IJob { public readonly ProductionScheduleAppService _appService; /// /// 构造函数 /// public ProductionScheduleJob(ProductionScheduleAppService appService) { _appService = appService; } /// /// 执行 /// /// /// /// public Task Execute(IJobExecutionContext context) { _appService.DoExt(); return Task.CompletedTask; } } }