优化日志
This commit is contained in:
@@ -466,9 +466,13 @@ namespace Tnb.ProductionMgr
|
|||||||
|
|
||||||
if (detail.feeding_num + num < detail.num)
|
if (detail.feeding_num + num < detail.num)
|
||||||
{
|
{
|
||||||
|
if (wmsCarryCode.codeqty < num)
|
||||||
|
{
|
||||||
|
throw new Exception("条码数量小于签收数量");
|
||||||
|
}
|
||||||
await db.Updateable<WmsCarryCode>()
|
await db.Updateable<WmsCarryCode>()
|
||||||
.SetColumns(x => x.codeqty == x.codeqty - num)
|
.SetColumns(x => x.codeqty == x.codeqty - num)
|
||||||
.Where(x => x.carry_id == detail.member_carry_id)
|
.Where(x => x.carry_id == carry.id)
|
||||||
.ExecuteCommandAsync();
|
.ExecuteCommandAsync();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user