From 694412e9650ef6abdd1de89f2c18e45180ad41af Mon Sep 17 00:00:00 2001 From: zhou keda <1315948824@qq.com> Date: Wed, 3 Jul 2024 17:51:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ProductionMgr/Tnb.ProductionMgr/PrdFeedingService.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ProductionMgr/Tnb.ProductionMgr/PrdFeedingService.cs b/ProductionMgr/Tnb.ProductionMgr/PrdFeedingService.cs index c7408f87..2b0c1b11 100644 --- a/ProductionMgr/Tnb.ProductionMgr/PrdFeedingService.cs +++ b/ProductionMgr/Tnb.ProductionMgr/PrdFeedingService.cs @@ -466,9 +466,13 @@ namespace Tnb.ProductionMgr if (detail.feeding_num + num < detail.num) { + if (wmsCarryCode.codeqty < num) + { + throw new Exception("条码数量小于签收数量"); + } await db.Updateable() .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