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