From 2be1922b035c182c3c516427aa68be54badd6938 Mon Sep 17 00:00:00 2001 From: IPC-610 <IPC-610@DESKTOP-6LEOOS3> Date: 星期四, 26 九月 2024 15:15:52 +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..cd09b0a 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