fix 处理已知问题
This commit is contained in:
25
Src/Dlhis.ScheduledTask/Jobs/ExternalAutoResignJob.cs
Normal file
25
Src/Dlhis.ScheduledTask/Jobs/ExternalAutoResignJob.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
using Dlhis.Basic.Api;
|
||||
using Dlhis.ScheduledTask.Attributes;
|
||||
|
||||
namespace Dlhis.ScheduledTask.Jobs;
|
||||
|
||||
/// <summary>
|
||||
/// 自动处理外包离职
|
||||
/// </summary>
|
||||
[RecurringJob(nameof(ExternalAutoResignJob), "0 0 1 1/1 * ? ", Name = "自动处理外部人员离职")]
|
||||
public class ExternalAutoResignJob : BaseJob
|
||||
{
|
||||
private readonly ISyncApi _syncApi;
|
||||
|
||||
/// <inheritdoc />
|
||||
public ExternalAutoResignJob(IServiceProvider serviceProvider, ISyncApi syncApi) : base(serviceProvider)
|
||||
{
|
||||
_syncApi = syncApi;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override async Task RunAsync(IServiceProvider serviceProvider)
|
||||
{
|
||||
await _syncApi.ExternalAutoResignAsync();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user