bug处理
This commit is contained in:
@@ -628,12 +628,17 @@ namespace Tnb.WarehouseMgr
|
||||
catch (AggregateException ex)
|
||||
{
|
||||
Console.WriteLine("【ScanInStockByRedis】 AggregateException" + ex.Message);
|
||||
Logger.LogInformation($"【ScanInStockByRedis】 AggregateException" + ex.Message);
|
||||
_dbScanInStockByRedis = _dbScanInStockByRedis.CopyNew();
|
||||
await _dbScanInStockByRedis.Ado.RollbackTranAsync();
|
||||
throw;
|
||||
}
|
||||
catch (Exception)
|
||||
catch (Exception ex)
|
||||
{
|
||||
Logger.LogInformation($"【ScanInStockByRedis】 八工位扫到码发送入库请求发生异常:{ex.Message}");
|
||||
if (ex.Message.Contains("Connection is busy"))
|
||||
_dbScanInStockByRedis = _dbScanInStockByRedis.CopyNew();
|
||||
|
||||
await _dbScanInStockByRedis.Ado.RollbackTranAsync();
|
||||
throw;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user