fix 处理已知问题

This commit is contained in:
2025-04-15 14:46:29 +08:00
parent 5c0e8584da
commit 6fa4a3ccd5
9 changed files with 132 additions and 5 deletions

View 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();
}
}