齐套出库业务代码,新增操作是否成功判断逻辑

This commit is contained in:
alex
2023-07-03 09:24:22 +08:00
parent 0d13eb93aa
commit 06d8a4df5e

View File

@@ -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);