|
|
|
@ -11,22 +11,22 @@ namespace DS.Module.QuartzModuleInstall
|
|
|
|
|
{
|
|
|
|
|
public static void AddFeeQuartzModuleInstall(this IServiceCollection services, IConfiguration configuration)
|
|
|
|
|
{
|
|
|
|
|
//获取进项发票
|
|
|
|
|
var jobKey = new JobKey("InInvoice");
|
|
|
|
|
////获取进项发票
|
|
|
|
|
//var jobKey = new JobKey("InInvoice");
|
|
|
|
|
|
|
|
|
|
services.AddQuartz(q =>
|
|
|
|
|
{
|
|
|
|
|
// 配置 Quartz
|
|
|
|
|
q.UseMicrosoftDependencyInjectionJobFactory();
|
|
|
|
|
//services.AddQuartz(q =>
|
|
|
|
|
//{
|
|
|
|
|
// // 配置 Quartz
|
|
|
|
|
// q.UseMicrosoftDependencyInjectionJobFactory();
|
|
|
|
|
|
|
|
|
|
q.AddJob<InInvoiceJob>(opts => opts.WithIdentity(jobKey));
|
|
|
|
|
q.AddTrigger(opts => opts
|
|
|
|
|
.ForJob(jobKey)
|
|
|
|
|
.WithIdentity("InInvoice-trigger")
|
|
|
|
|
.WithSimpleSchedule(x => x
|
|
|
|
|
.WithIntervalInSeconds(60)
|
|
|
|
|
.RepeatForever()));
|
|
|
|
|
});
|
|
|
|
|
// q.AddJob<InInvoiceJob>(opts => opts.WithIdentity(jobKey));
|
|
|
|
|
// q.AddTrigger(opts => opts
|
|
|
|
|
// .ForJob(jobKey)
|
|
|
|
|
// .WithIdentity("InInvoice-trigger")
|
|
|
|
|
// .WithSimpleSchedule(x => x
|
|
|
|
|
// .WithIntervalInSeconds(60)
|
|
|
|
|
// .RepeatForever()));
|
|
|
|
|
//});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//获取银行流水
|
|
|
|
|