From 06d8a4df5e40ea787d84a82260b3192aafc112e1 Mon Sep 17 00:00:00 2001 From: alex Date: Mon, 3 Jul 2023 09:24:22 +0800 Subject: [PATCH] =?UTF-8?q?=E9=BD=90=E5=A5=97=E5=87=BA=E5=BA=93=E4=B8=9A?= =?UTF-8?q?=E5=8A=A1=E4=BB=A3=E7=A0=81=EF=BC=8C=E6=96=B0=E5=A2=9E=E6=93=8D?= =?UTF-8?q?=E4=BD=9C=E6=98=AF=E5=90=A6=E6=88=90=E5=8A=9F=E5=88=A4=E6=96=AD?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WarehouseMgr/Tnb.WarehouseMgr/WmskittingOutService.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/WarehouseMgr/Tnb.WarehouseMgr/WmskittingOutService.cs b/WarehouseMgr/Tnb.WarehouseMgr/WmskittingOutService.cs index 6e688fc6..de9f28a0 100644 --- a/WarehouseMgr/Tnb.WarehouseMgr/WmskittingOutService.cs +++ b/WarehouseMgr/Tnb.WarehouseMgr/WmskittingOutService.cs @@ -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);