原材料仓、中储仓出入库优化
This commit is contained in:
@@ -68,6 +68,10 @@ namespace Tnb.WarehouseMgr
|
||||
}
|
||||
public async Task<dynamic> WmsEmptyIn(VisualDevModelDataCrInput input)
|
||||
{
|
||||
if (input.data[nameof(OutStockStrategyQuery.warehouse_id)].ToString() == WmsWareHouseConst.WAREHOUSE_ZC_ID)
|
||||
{
|
||||
await _s_taskExecuteSemaphore_F1ZCCInstock.WaitAsync();
|
||||
}
|
||||
try
|
||||
{
|
||||
await _db.Ado.BeginTranAsync();
|
||||
@@ -217,6 +221,10 @@ namespace Tnb.WarehouseMgr
|
||||
}
|
||||
finally
|
||||
{
|
||||
if (input.data[nameof(OutStockStrategyQuery.warehouse_id)].ToString() == WmsWareHouseConst.WAREHOUSE_ZC_ID)
|
||||
{
|
||||
_s_taskExecuteSemaphore_F1ZCCInstock.Release();
|
||||
}
|
||||
//向队列写入消息
|
||||
await InvokeGenPretaskExcute();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user