现场问题处理,电梯逻辑处理
This commit is contained in:
@@ -68,7 +68,8 @@ namespace Tnb.WarehouseMgr
|
||||
SemaphoreSlim semaphoreSlim = null;
|
||||
try
|
||||
{
|
||||
semaphoreSlim = _wareHouseService.GetSemaphore("outstock", input.data[nameof(OutStockStrategyQuery.warehouse_id)].ToString());
|
||||
string warehouse_id = input.data[nameof(OutStockStrategyQuery.warehouse_id)].ToString();
|
||||
semaphoreSlim = _wareHouseService.GetSemaphore("outstock", warehouse_id);
|
||||
await semaphoreSlim.WaitAsync();
|
||||
await _db.Ado.BeginTranAsync();
|
||||
|
||||
@@ -83,9 +84,10 @@ namespace Tnb.WarehouseMgr
|
||||
OutStockStrategyQuery OutStockStrategyInput = new()
|
||||
{
|
||||
carrystd_id = input.data[nameof(OutStockStrategyQuery.carrystd_id)].ToString(),
|
||||
warehouse_id = input.data[nameof(OutStockStrategyQuery.warehouse_id)].ToString(),
|
||||
warehouse_id = warehouse_id,
|
||||
Size = qty
|
||||
};
|
||||
|
||||
List<WmsCarryH>? carrys = await _wareHouseService.OutStockStrategy(OutStockStrategyInput);
|
||||
Logger.Information($"根据出库策略获取的载具数量:{carrys?.Count}");
|
||||
//var carrys = await _db.Queryable<WmsCarryH>().LeftJoin<BasLocation>((a, b) => a.location_id == b.id)
|
||||
@@ -253,7 +255,8 @@ namespace Tnb.WarehouseMgr
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Logger.Information($"空载具出库错误", ex);
|
||||
Logger.Information($"空载具出库错误", ex.Message);
|
||||
Logger.Information($"空载具出库错误", ex.StackTrace);
|
||||
await _db.Ado.RollbackTranAsync();
|
||||
throw;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user