This commit is contained in:
FanLian
2023-06-16 15:46:23 +08:00
parent b9dcd91460
commit 4229d60271
2 changed files with 38 additions and 16 deletions

View File

@@ -75,7 +75,17 @@ namespace Tnb.WarehouseMgr
row = await _db.Updateable(subCarry).ExecuteCommandAsync();
isOk = (row > 0);
if (!isOk) throw Oops.Oh(ErrorCode.COM1001);
}
else
{
if (carry == null)
{
throw new AppFriendlyException("没有可用的主载具", 500);
}
if (subCarry == null)
{
throw new AppFriendlyException("没有可用的子载具", 500);
}
}
await _db.Ado.CommitTranAsync();