wms,任务新增操作日志

This commit is contained in:
alex
2023-10-09 13:57:01 +08:00
parent 0300ea2598
commit a350f122f6

View File

@@ -497,8 +497,9 @@ namespace Tnb.WarehouseMgr
await _db.Ado.CommitTranAsync();
}
catch (Exception)
catch (Exception ex)
{
Log.Error("任务执行失败", ex);
await _db.Ado.RollbackTranAsync();
throw;
}
@@ -532,8 +533,9 @@ namespace Tnb.WarehouseMgr
await _db.Ado.CommitTranAsync();
}
catch (Exception)
catch (Exception ex)
{
Log.Error("设备取返回操作失败", ex);
await _db.Ado.RollbackTranAsync();
}
}