This commit is contained in:
alex
2023-08-15 16:48:30 +08:00
6 changed files with 221 additions and 49 deletions

View File

@@ -77,9 +77,12 @@ namespace Tnb.WarehouseMgr
#region
//_eventPublisher = App.GetRequiredService<IEventPublisher>();
CancellationTokenSource kittingOutAddCts = new();
CancellationTokenSource kittingOutShippedCts = new();
CancellationTokenSource setSortingCts = new();
//List<string> toUserIds = new List<string>() { "25398501929509" };
////生成任务执行
//CancellationTokenSource genTaskCTS = new();
//CancellationTokenSource kittingOutAddCts = new();
//CancellationTokenSource kittingOutShippedCts = new();
//CancellationTokenSource setSortingCts = new();
//var wareHouseService = App.GetRequiredService<IWareHouseService>();
//TimedTask(cts => wareHouseService.GenTaskExecute(cts), genTaskCTS);
@@ -119,8 +122,7 @@ namespace Tnb.WarehouseMgr
}));
}
});
await GetDelayTask(timeType, interval);
await Task.Delay(1000);
}
}, token);
}