1
This commit is contained in:
@@ -83,6 +83,18 @@ namespace Tnb.WarehouseMgr
|
|||||||
isOk = (row > 0);
|
isOk = (row > 0);
|
||||||
if (!isOk) throw Oops.Oh(ErrorCode.COM1001);
|
if (!isOk) throw Oops.Oh(ErrorCode.COM1001);
|
||||||
|
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (carry == null)
|
||||||
|
{
|
||||||
|
throw new AppFriendlyException("没有可用的主载具", 500);
|
||||||
|
}
|
||||||
|
if (subCarry == null)
|
||||||
|
{
|
||||||
|
throw new AppFriendlyException("没有可用的子载具", 500);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
/* //更新主载具明细表,增加新的数据
|
/* //更新主载具明细表,增加新的数据
|
||||||
var row = await _db.Insertable<WmsCarryD>(new WmsCarryD {
|
var row = await _db.Insertable<WmsCarryD>(new WmsCarryD {
|
||||||
|
|||||||
@@ -75,7 +75,17 @@ namespace Tnb.WarehouseMgr
|
|||||||
row = await _db.Updateable(subCarry).ExecuteCommandAsync();
|
row = await _db.Updateable(subCarry).ExecuteCommandAsync();
|
||||||
isOk = (row > 0);
|
isOk = (row > 0);
|
||||||
if (!isOk) throw Oops.Oh(ErrorCode.COM1001);
|
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();
|
await _db.Ado.CommitTranAsync();
|
||||||
|
|||||||
Reference in New Issue
Block a user