齐套出库业务代码,新增操作是否成功判断逻辑
This commit is contained in:
@@ -263,7 +263,9 @@ namespace Tnb.WarehouseMgr
|
||||
{
|
||||
tasks.Add(_carryService.UpdateNullCarry(carryIt));
|
||||
}
|
||||
await Task.WhenAll(tasks);
|
||||
var all = await Task.WhenAll(tasks);
|
||||
if (all.All(x => x > 0))
|
||||
isOk = all?.Length > 0;
|
||||
}
|
||||
}
|
||||
if (!isOk) throw Oops.Oh(ErrorCode.COM1001);
|
||||
|
||||
Reference in New Issue
Block a user