将依赖事件总线的发布订阅模式,改为直接调用的形式
This commit is contained in:
@@ -72,13 +72,13 @@ namespace Tnb.WarehouseMgr
|
||||
_billRullService = billRullService;
|
||||
_carryService = carryService;
|
||||
_cacheManager = cacheManager;
|
||||
EventPublisher = eventPublisher;
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// 齐套出库(新增状态)
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Timed(Name = nameof(KittingOutByAdd))]
|
||||
[HttpPost]
|
||||
public async Task KittingOutByAdd(CancellationToken? ct = default)
|
||||
{
|
||||
//if (ct?.IsCancellationRequested ?? false)
|
||||
@@ -121,7 +121,7 @@ namespace Tnb.WarehouseMgr
|
||||
ko.carry_id = firstCarry?.id;
|
||||
ko.carry_code = firstCarry?.carry_code;
|
||||
await _db.Updateable(ko).UpdateColumns(it => new { it.status, it.carry_id, it.carry_code }).ExecuteCommandAsync();
|
||||
//await KittingOutByIsToBeShipped();
|
||||
_ = KittingOutByIsToBeShipped();
|
||||
if (firstCarry != null)
|
||||
{
|
||||
firstCarry.source_id = ko.source_id;
|
||||
@@ -188,7 +188,7 @@ namespace Tnb.WarehouseMgr
|
||||
/// 齐套出库,(待配送状态)
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Timed(Name = nameof(KittingOutByIsToBeShipped))]
|
||||
[HttpPost]
|
||||
public async Task KittingOutByIsToBeShipped(CancellationToken? ct = default)
|
||||
{
|
||||
//if (UserManager.AsscessToken.IsNullOrWhiteSpace()) return;
|
||||
@@ -296,7 +296,7 @@ namespace Tnb.WarehouseMgr
|
||||
}
|
||||
finally
|
||||
{
|
||||
//await Publish(nameof(IWareHouseService.GenTaskExecute));
|
||||
//await InvokeGenPretaskExcute();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user