解决,页面按钮调用预任务执行功能,模型绑定不上的问题
This commit is contained in:
@@ -52,7 +52,7 @@ namespace Tnb.WarehouseMgr.Interfaces
|
||||
/// 生成任务执行
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
Task GenTaskExecute(CancellationToken? ct = default);
|
||||
Task GenTaskExecute();
|
||||
/// <summary>
|
||||
/// 任务完成
|
||||
/// </summary>
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user