原材料仓、中储仓出入库优化

This commit is contained in:
2024-08-01 13:57:29 +08:00
parent be72cfb46f
commit 5693ef6ed2
9 changed files with 85 additions and 17 deletions

View File

@@ -57,7 +57,10 @@ namespace Tnb.WarehouseMgr
private async Task<dynamic> PDAWmsEmptyIn(VisualDevModelDataCrInput input)
{
if (input.data[nameof(OutStockStrategyQuery.warehouse_id)].ToString() == WmsWareHouseConst.WAREHOUSE_ZC_ID)
{
await _s_taskExecuteSemaphore_F1ZCCInstock.WaitAsync();
}
try
{
await _db.Ado.BeginTranAsync();
@@ -178,6 +181,10 @@ namespace Tnb.WarehouseMgr
}
finally
{
if (input.data[nameof(OutStockStrategyQuery.warehouse_id)].ToString() == WmsWareHouseConst.WAREHOUSE_ZC_ID)
{
_s_taskExecuteSemaphore_F1ZCCInstock.Release();
}
await InvokeGenPretaskExcute();
}
return Task.FromResult(true);