This commit is contained in:
2023-07-03 11:56:34 +08:00
4 changed files with 79 additions and 1 deletions

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