From ea728ee83bed76399f33d15b90ff7e109e52c663 Mon Sep 17 00:00:00 2001 From: alex Date: Fri, 16 Jun 2023 17:18:30 +0800 Subject: [PATCH] 1 --- WarehouseMgr/Tnb.WarehouseMgr/WmsCarryBindService.cs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/WarehouseMgr/Tnb.WarehouseMgr/WmsCarryBindService.cs b/WarehouseMgr/Tnb.WarehouseMgr/WmsCarryBindService.cs index 61b7b24d..1877269d 100644 --- a/WarehouseMgr/Tnb.WarehouseMgr/WmsCarryBindService.cs +++ b/WarehouseMgr/Tnb.WarehouseMgr/WmsCarryBindService.cs @@ -86,15 +86,10 @@ namespace Tnb.WarehouseMgr } else { - if (carry == null) + if (carry == null || subCarry == null) { throw new AppFriendlyException("没有可用的主载具", 500); } - if (subCarry == null) - { - throw new AppFriendlyException("没有可用的子载具", 500); - } - } await _db.Ado.CommitTranAsync(); }