fix 下发任务结构修改,根据类型处理

This commit is contained in:
2024-01-19 13:30:35 +08:00
parent 0ae4737c0f
commit 7f05cbc368
13 changed files with 240 additions and 45 deletions

View File

@@ -12,17 +12,9 @@ public class JobPack : BaseAppPack
public override void Invoke(IServiceProvider serviceProvider)
{
#if DEBUG
RecurringJob.AddOrUpdate<SyncOrganizationJob>("SyncSap", s => s.SyncOrgInfo(), "30 * * * * ?", new RecurringJobOptions
{
TimeZone = TimeZoneInfo.Local
});
#else
RecurringJob.AddOrUpdate<SyncOrganizationJob>("SyncSap", s => s.SyncOrgInfo(), "0 0 2 * * ?", new RecurringJobOptions
{
TimeZone = TimeZoneInfo.Local
});
#endif
}
}