解决,页面按钮调用预任务执行功能,模型绑定不上的问题
This commit is contained in:
@@ -52,7 +52,7 @@ namespace Tnb.WarehouseMgr.Interfaces
|
|||||||
/// 生成任务执行
|
/// 生成任务执行
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
Task GenTaskExecute(CancellationToken? ct = default);
|
Task GenTaskExecute();
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 任务完成
|
/// 任务完成
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -89,7 +89,7 @@ namespace Tnb.WarehouseMgr
|
|||||||
{
|
{
|
||||||
_eventPublisher = App.GetRequiredService<IEventPublisher>();
|
_eventPublisher = App.GetRequiredService<IEventPublisher>();
|
||||||
var whSvc = App.GetRequiredService<IWareHouseService>();
|
var whSvc = App.GetRequiredService<IWareHouseService>();
|
||||||
TimedTask(token => whSvc.GenTaskExecute(token), stoppingToken, 1);
|
TimedTask(token => whSvc.GenTaskExecute(), stoppingToken, 1);
|
||||||
////齐套出库
|
////齐套出库
|
||||||
var kittingOutService = App.GetRequiredService<IWmskittingOutService>();
|
var kittingOutService = App.GetRequiredService<IWmskittingOutService>();
|
||||||
TimedTask(token => kittingOutService.KittingOutByAdd(token), stoppingToken, 1);
|
TimedTask(token => kittingOutService.KittingOutByAdd(token), stoppingToken, 1);
|
||||||
|
|||||||
@@ -218,7 +218,7 @@ namespace Tnb.WarehouseMgr
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
[HttpPost, Timed(Name = nameof(IWareHouseService.GenTaskExecute))]
|
[HttpPost, Timed(Name = nameof(IWareHouseService.GenTaskExecute))]
|
||||||
public async Task GenTaskExecute(CancellationToken? ct = default)
|
public async Task GenTaskExecute()
|
||||||
{
|
{
|
||||||
Stopwatch sw = Stopwatch.StartNew();
|
Stopwatch sw = Stopwatch.StartNew();
|
||||||
CancellationTokenSource agvCts = new();
|
CancellationTokenSource agvCts = new();
|
||||||
|
|||||||
@@ -115,7 +115,7 @@ public class Startup : AppStartup
|
|||||||
endpoints.MapControllerRoute(name: "default", pattern: "{controller=Home}/{action=Index}/{id?}");
|
endpoints.MapControllerRoute(name: "default", pattern: "{controller=Home}/{action=Index}/{id?}");
|
||||||
});
|
});
|
||||||
|
|
||||||
//SnowflakeIdHelper.InitYitIdWorker();
|
//SnowflakeIdHelper.InitYitIdWorker();
|
||||||
|
|
||||||
bool isStartTimeJob = App.GetConfig<bool>("IsStartTimeJob");
|
bool isStartTimeJob = App.GetConfig<bool>("IsStartTimeJob");
|
||||||
if (isStartTimeJob)
|
if (isStartTimeJob)
|
||||||
|
|||||||
Reference in New Issue
Block a user