From 8a72ba164094867487dc8fc2f73e41b5790a7327 Mon Sep 17 00:00:00 2001
From: admin <qiutairan163@163.com>
Date: 星期一, 17 十一月 2025 14:28:25 +0800
Subject: [PATCH] GetStockQueryList去除task

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

diff --git a/Wms/WMS.BLL/BllSoServer/ExportNoticeServer.cs b/Wms/WMS.BLL/BllSoServer/ExportNoticeServer.cs
index a2e7b21..ca614fa 100644
--- a/Wms/WMS.BLL/BllSoServer/ExportNoticeServer.cs
+++ b/Wms/WMS.BLL/BllSoServer/ExportNoticeServer.cs
@@ -1452,7 +1452,8 @@
                 {
                     throw new Exception("鏈煡璇㈠埌鍑哄簱鍗曟嵁淇℃伅");
                 }
-                if (notice.Origin != "WMS" || notice.Status != "0")
+                //if (notice.Origin != "WMS" || notice.Status != "0")
+                if (notice.Status != "0")
                 {
                     throw new Exception("鍙傛暟寮傚父,璇锋鏌ョ姸鎬佹槸鍚︽湭绛夊緟鎵ц鎴栨潵婧愭槸鍚︽槸WMS");
                 }
@@ -4763,7 +4764,9 @@
 
                     }
 
-                    var endLocateList = Db.Queryable<SysStorageLocat>().Where(m => m.IsDel == "0" && (m.AreaNo == "B02" || m.AreaNo == "B05")).Select(m => m.LocatNo).ToList();
+                    //鎵�灞炲尯鍩熼泦鍚�
+                    List<string> areNolist = new List<string>() { "B01", "B02", "B05" };
+                    var endLocateList = Db.Queryable<SysStorageLocat>().Where(m => m.IsDel == "0" && areNolist.Contains(m.AreaNo)).Select(m => m.LocatNo).ToList();
                     //鍒ゆ柇鏄惁鏄師杈呮枡鍑哄簱浠诲姟  璐ф灦鍌ㄤ綅=銆嬪钩搴撳偍浣�
                     if (endLocateList.Contains(task.EndLocat) && PalletType == "0")
                     {

--
Gitblit v1.8.0