优化日志

This commit is contained in:
2024-07-03 17:51:58 +08:00
parent 0465c4f73d
commit 694412e965

View File

@@ -466,9 +466,13 @@ namespace Tnb.ProductionMgr
if (detail.feeding_num + num < detail.num)
{
if (wmsCarryCode.codeqty < num)
{
throw new Exception("条码数量小于签收数量");
}
await db.Updateable<WmsCarryCode>()
.SetColumns(x => x.codeqty == x.codeqty - num)
.Where(x => x.carry_id == detail.member_carry_id)
.Where(x => x.carry_id == carry.id)
.ExecuteCommandAsync();
}
else