From fc25dda9baf3b5f4df23d35914f3dd343cf492e3 Mon Sep 17 00:00:00 2001
From: kazelee <1847801760@qq.com>
Date: 星期一, 28 七月 2025 17:30:21 +0800
Subject: [PATCH] 优化WCSHelper / 序列号生成逻辑 , 添加强制任务处理模块

---
 api/DebugController.cs |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/api/DebugController.cs b/api/DebugController.cs
index 73661eb..b91bb2e 100644
--- a/api/DebugController.cs
+++ b/api/DebugController.cs
@@ -113,7 +113,7 @@
             try {
                 // 鏌ヨ璧风偣璐т綅:鏁伴噺=0
                 var startLoc = db.Queryable<TN_Location>().LeftJoin<TN_Loc_Container>((l, c) => l.S_CODE == c.S_LOC_CODE)
-                    .Where((l,c) => l.N_LOCK_STATE == 0 && l.S_LOCK_STATE == "鏃� && l.C_ENABLE == "Y" && l.S_CODE == model.StartLoc && l.N_CURRENT_NUM == 1 && c.S_CNTR_CODE == model.CntrCode).First();
+                    .Where((l, c) => l.N_LOCK_STATE == 0 && l.S_LOCK_STATE == "鏃� && l.C_ENABLE == "Y" && l.S_CODE == model.StartLoc && l.N_CURRENT_NUM == 1 && c.S_CNTR_CODE == model.CntrCode).First();
                 if (startLoc == null) {
                     return $"娌℃湁鎵惧埌璧风偣璐т綅'{model.StartLoc}'!瑕佹眰:閿佺姸鎬�'鏃�,褰撳墠瀹瑰櫒鏁伴噺=1";
                 }
@@ -143,12 +143,11 @@
                         return "鏁版嵁搴撴搷浣滃け璐�";
                     }
 
-                    tran.CommitTran() ;
+                    tran.CommitTran();
                     return "鏁版嵁搴撴搷浣滄垚鍔�;
                 }
             }
             catch (Exception ex) {
-
                 return ex.Message;
             }
         }

--
Gitblit v1.9.1