1
This commit is contained in:
@@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user