From f7309a5a1790d1c06ae4bffdde202d220f0007a2 Mon Sep 17 00:00:00 2001
From: chengsc <Demo@DESKTOP-CPA90BF>
Date: 星期三, 04 九月 2024 09:18:09 +0800
Subject: [PATCH] 修改问题

---
 Wms/WMS.BLL/BllSoServer/CompleteDetailServer.cs |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/Wms/WMS.BLL/BllSoServer/CompleteDetailServer.cs b/Wms/WMS.BLL/BllSoServer/CompleteDetailServer.cs
index 15abb99..b16669b 100644
--- a/Wms/WMS.BLL/BllSoServer/CompleteDetailServer.cs
+++ b/Wms/WMS.BLL/BllSoServer/CompleteDetailServer.cs
@@ -26,8 +26,9 @@
             try
             {
                 var total = 0;
-                var detailInfo = Db.Queryable<BllCompleteDetail>().First(w => string.IsNullOrEmpty(w.BoxNo) || string.IsNullOrEmpty(w.BoxNo3));
-                if (detailInfo == null)
+                var detailInfo = Db.Queryable<BllCompleteDetail>().Where(w => w.ExportAllotId == id).ToList();
+                var num = detailInfo.Count(w=> string.IsNullOrEmpty(w.BoxNo) && !string.IsNullOrEmpty(w.BoxNo3));
+                if (detailInfo.Count>0 && num == 0) //绠辩爜鍜屾敮鐮侀兘涓虹┖鐨勬暟閲忕瓑涓�0 璇佹槑鏄鐮佹嫞璐�
                 {
                     Expression<Func<BllCompleteDetail, bool>> item = Expressionable.Create<BllCompleteDetail>()
                     .And(it => it.ExportAllotId == id)

--
Gitblit v1.8.0