From 23f167a369f000091dd04019b037ba42f60ff784 Mon Sep 17 00:00:00 2001
From: bklLiudl <673013083@qq.com>
Date: 星期六, 16 三月 2024 09:14:35 +0800
Subject: [PATCH] 出库功能测试

---
 Wms/WMS.BLL/BllSoServer/ExportAllotServer.cs |   17 +++++++++--------
 1 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/Wms/WMS.BLL/BllSoServer/ExportAllotServer.cs b/Wms/WMS.BLL/BllSoServer/ExportAllotServer.cs
index 5592433..4c3dc4e 100644
--- a/Wms/WMS.BLL/BllSoServer/ExportAllotServer.cs
+++ b/Wms/WMS.BLL/BllSoServer/ExportAllotServer.cs
@@ -132,16 +132,17 @@
                 {
                     throw new Exception("鏈煡璇㈠埌瑕佸垎閰嶇殑搴撳瓨鎬婚噺淇℃伅");
                 }
-                //楠岃瘉浠诲姟淇℃伅鏄惁瀛樺湪
-                if (task == null)
+
+                // 鑻ヤ换鍔″凡涓嬪彂锛屽垽鏂换鍔$姸鎬�
+                if (task != null)
                 {
-                    throw new Exception("鏈煡璇㈠埌褰撳墠鎵樼洏浠诲姟淇℃伅");
+                    //楠岃瘉浠诲姟鐘舵�佹槸鍚︿负姝e湪鎵ц
+                    if (task.Status == "0" || task.Status == "1" || task.Status == "2")
+                    {
+                        throw new Exception("褰撳墠浠诲姟绛夊緟鎵ц鎴栨鍦ㄦ墽琛岋紝璇峰彇娑堝悗鍒犻櫎");
+                    }
                 }
-                //楠岃瘉浠诲姟鐘舵�佹槸鍚︿负姝e湪鎵ц
-                if (task.Status == "0" || task.Status == "1" || task.Status == "2")
-                {
-                    throw new Exception("褰撳墠浠诲姟绛夊緟鎵ц鎴栨鍦ㄦ墽琛岋紝璇峰彇娑堝悗鍒犻櫎");
-                }
+
                 Db.BeginTran();
                 var time = DateTime.Now;
                 //淇敼浠诲姟淇℃伅

--
Gitblit v1.8.0