This commit is contained in:
alex
2023-06-16 17:18:30 +08:00
parent 409bf69cfe
commit ea728ee83b

View File

@@ -86,15 +86,10 @@ namespace Tnb.WarehouseMgr
} }
else else
{ {
if (carry == null) if (carry == null || subCarry == null)
{ {
throw new AppFriendlyException("没有可用的主载具", 500); throw new AppFriendlyException("没有可用的主载具", 500);
} }
if (subCarry == null)
{
throw new AppFriendlyException("没有可用的子载具", 500);
}
} }
await _db.Ado.CommitTranAsync(); await _db.Ado.CommitTranAsync();
} }