解决,页面按钮调用预任务执行功能,模型绑定不上的问题

This commit is contained in:
yang.lee
2023-10-16 14:13:43 +08:00
parent fda3afc151
commit 4215ad600f
4 changed files with 4 additions and 4 deletions

View File

@@ -52,7 +52,7 @@ namespace Tnb.WarehouseMgr.Interfaces
/// 生成任务执行
/// </summary>
/// <returns></returns>
Task GenTaskExecute(CancellationToken? ct = default);
Task GenTaskExecute();
/// <summary>
/// 任务完成
/// </summary>

View File

@@ -89,7 +89,7 @@ namespace Tnb.WarehouseMgr
{
_eventPublisher = App.GetRequiredService<IEventPublisher>();
var whSvc = App.GetRequiredService<IWareHouseService>();
TimedTask(token => whSvc.GenTaskExecute(token), stoppingToken, 1);
TimedTask(token => whSvc.GenTaskExecute(), stoppingToken, 1);
////齐套出库
var kittingOutService = App.GetRequiredService<IWmskittingOutService>();
TimedTask(token => kittingOutService.KittingOutByAdd(token), stoppingToken, 1);

View File

@@ -218,7 +218,7 @@ namespace Tnb.WarehouseMgr
/// </summary>
/// <returns></returns>
[HttpPost, Timed(Name = nameof(IWareHouseService.GenTaskExecute))]
public async Task GenTaskExecute(CancellationToken? ct = default)
public async Task GenTaskExecute()
{
Stopwatch sw = Stopwatch.StartNew();
CancellationTokenSource agvCts = new();

View File

@@ -115,7 +115,7 @@ public class Startup : AppStartup
endpoints.MapControllerRoute(name: "default", pattern: "{controller=Home}/{action=Index}/{id?}");
});
//SnowflakeIdHelper.InitYitIdWorker();
//SnowflakeIdHelper.InitYitIdWorker();
bool isStartTimeJob = App.GetConfig<bool>("IsStartTimeJob");
if (isStartTimeJob)