fix 优化任务分配速度

This commit is contained in:
2024-05-30 23:01:21 +08:00
parent bce58ef938
commit 7f14b1fdc5
13 changed files with 195 additions and 47 deletions

View File

@@ -1,4 +1,6 @@
using Dlhis.ScheduledTask.Common.Request;
using Dlhis.Basic.Api;
using Dlhis.Basic.Api.Request;
using Dlhis.ScheduledTask.Common.Request;
using Dlhis.ScheduledTask.Common.Services;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
@@ -42,4 +44,11 @@ public class HangfireController : ControllerBase
{
await _hangfireService.CreateSapWerkSyncBackgroundJobAsync(request);
}
}
[HttpPost("assignment-generate")]
public void GeneratePermissionsAsync(GeneratePermissionIdRequest request)
{
_hangfireService.GeneratePermissions(request);
}
}