将依赖事件总线的发布订阅模式,改为直接调用的形式
This commit is contained in:
@@ -59,7 +59,7 @@ namespace Tnb.WarehouseMgr
|
||||
_wareHouseService = wareHouseService;
|
||||
_userManager = userManager;
|
||||
_billRullService = billRullService;
|
||||
EventPublisher = eventPublisher;
|
||||
|
||||
OverideFuncs.CreateAsync = KittingInStk;
|
||||
}
|
||||
|
||||
@@ -220,7 +220,7 @@ namespace Tnb.WarehouseMgr
|
||||
}
|
||||
finally
|
||||
{
|
||||
await Publish(nameof(IWareHouseService.GenTaskExecute));
|
||||
await InvokeGenPretaskExcute();
|
||||
}
|
||||
return Task.FromResult(true);
|
||||
}
|
||||
@@ -248,11 +248,8 @@ namespace Tnb.WarehouseMgr
|
||||
kittingOut.carry_id = kittingIn.carry_id;
|
||||
kittingOut.carry_code = kittingIn.carry_code;
|
||||
await _db.Updateable(kittingOut).UpdateColumns(it => new { it.status, it.carry_id, it.carry_code }).ExecuteCommandAsync();
|
||||
//if (kittingOut.status == WmsWareHouseConst.BILLSTATUS_TOBESHIPPED_ID)
|
||||
//{
|
||||
// await Publish(nameof(IWmskittingOutService.KittingOutByIsToBeShipped));
|
||||
//}
|
||||
|
||||
await Publish(nameof(IWmskittingOutService.KittingOutByIsToBeShipped));
|
||||
}
|
||||
}
|
||||
if (row < 1) throw Oops.Oh(ErrorCode.COM1001);
|
||||
|
||||
Reference in New Issue
Block a user