From 1650f3fe1467d21074b597042861c46f3a8c4447 Mon Sep 17 00:00:00 2001
From: zhaowc <526854230@qq.com>
Date: 星期二, 01 四月 2025 10:11:24 +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