From d07f25c163706ac46a83bd2c63db1e3c52715222 Mon Sep 17 00:00:00 2001
From: zhaowc <526854230@qq.com>
Date: 星期四, 27 三月 2025 15:54:25 +0800
Subject: [PATCH] 解决问题

---
 Wms/WMS.BLL/BllQualityServer/QualityInspectServer.cs |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/Wms/WMS.BLL/BllQualityServer/QualityInspectServer.cs b/Wms/WMS.BLL/BllQualityServer/QualityInspectServer.cs
index 386cd35..855d1dd 100644
--- a/Wms/WMS.BLL/BllQualityServer/QualityInspectServer.cs
+++ b/Wms/WMS.BLL/BllQualityServer/QualityInspectServer.cs
@@ -107,6 +107,12 @@
             {
                 throw new Exception("鎵规鍙蜂笉鍙负绌猴紝璇锋牳鏌ワ紒");
             }
+            //楠岃瘉鎵规鍙锋槸鍚︿负褰撳墠搴撳瓨涓凡鏈夋壒娆�
+            var lot = Db.Queryable<DataStock>().Where(w => w.LotNo == model.LotNo).ToList();
+            if (lot.Count == 0)
+            {
+                throw new Exception("褰撳墠搴撳瓨涓棤姝ゆ壒鍙凤紝璇锋牳鏌ワ紒");
+            }
             int isTui = 0;
             //楠岃瘉鍏ュ簱鍗曞彿鏄惁涓虹┖
             if (!string.IsNullOrEmpty(model.ASNNo))

--
Gitblit v1.8.0