feat 出差人员筛选,移除无用代码
This commit is contained in:
@@ -24,14 +24,16 @@ public class SyncPersonJob : BaseJob
|
||||
|
||||
foreach (var werk in werks)
|
||||
{
|
||||
if (werk.BackgroundJobKey.IsEmpty())
|
||||
if (!werk.BackgroundJobKey.IsEmpty())
|
||||
{
|
||||
var jobKey = BackgroundJob.Enqueue<IGainfoUpdateService>(x => x.TodoByWerkAsync(werk.Werk));
|
||||
werk.BackgroundJobKey = jobKey;
|
||||
await DbContext.UpdateAsync(werk);
|
||||
|
||||
Logger.LogInformation("SAP创建人事范围{werk}后台调度任务", werk.Werk);
|
||||
continue;
|
||||
}
|
||||
|
||||
var jobKey = BackgroundJob.Enqueue<IGainfoUpdateService>(x => x.TodoByWerkAsync(werk.Werk));
|
||||
werk.BackgroundJobKey = jobKey;
|
||||
await DbContext.UpdateAsync(werk);
|
||||
|
||||
Logger.LogInformation("SAP创建人事范围{werk}后台调度任务", werk.Werk);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user