This commit is contained in:
alex
2023-06-21 09:12:12 +08:00
parent cbcdd70877
commit c2badd9a44

View File

@@ -261,6 +261,10 @@ namespace Tnb.WarehouseMgr
{ {
if (input == null) throw new ArgumentNullException("input"); if (input == null) throw new ArgumentNullException("input");
//更具distaskCode的barcode 更新 instockcode 的 is_end 为 1 //更具distaskCode的barcode 更新 instockcode 的 is_end 为 1
try
{
await _db.Ado.BeginTranAsync();
if (input.distaskCodes?.Count > 0) if (input.distaskCodes?.Count > 0)
{ {
var barCodes = input.distaskCodes.Select(x => x.barcode); var barCodes = input.distaskCodes.Select(x => x.barcode);
@@ -292,6 +296,14 @@ namespace Tnb.WarehouseMgr
//如果是自动单据,需要回更上层系统 //如果是自动单据,需要回更上层系统
} }
} }
await _db.Ado.CommitTranAsync();
}
catch (Exception)
{
await _db.Ado.RollbackTranAsync();
throw;
}
} }
} }
} }