From abc98971653a3716274f947d41b080aa08887c36 Mon Sep 17 00:00:00 2001
From: 杨张扬 <634643841@qq.com>
Date: 星期五, 13 六月 2025 16:18:40 +0800
Subject: [PATCH] 启用容器号解析

---
 api/ApiHelper.cs |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/api/ApiHelper.cs b/api/ApiHelper.cs
index a9ae649..ff81f44 100644
--- a/api/ApiHelper.cs
+++ b/api/ApiHelper.cs
@@ -248,7 +248,13 @@
                     LocationHelper.LockLoc(endLoc.S_CODE, 1);//缁堢偣鍏ュ簱閿�                     LogHelper.Info($"鐢熸垚{typeName}浠诲姟鎴愬姛锛屽鍣ㄥ彿{locCnt.S_CNTR_CODE}锛岃捣鐐箋startLoc.S_CODE}锛岀粓鐐箋endLoc.S_CODE}");
 
-                    db.Updateable<TN_CG_Detail>().UpdateColumns(it => new { it.S_ITEM_STATE, it.N_ITEM_STATE }).ExecuteCommand();
+                    if( db.Updateable<TN_CG_Detail>(cG_Detail).UpdateColumns(it => new { it.S_ITEM_STATE, it.N_ITEM_STATE }).ExecuteCommand() <= 0)
+                    {
+                        result.resultCode = 5;
+                        result.resultMsg = $"鏇存柊瀹瑰櫒{locCnt.S_CNTR_CODE}鐨勮揣鍝佹槑缁嗗け璐�;
+                        LogHelper.Info(result.resultMsg);
+                        return result;
+                    }
 
                     Task task99 = Task.Run(() =>
                     {
@@ -678,7 +684,7 @@
             LogHelper.Info("瑙﹀彂API锛歅DA婊℃墭涓嬬嚎鍏ュ簱" + JsonConvert.SerializeObject(model), "API");
             try
             {
-                if( model.RfId.Length < 16)
+                if (model.RfId.Length < 16)
                 {
                     result.resultCode = 1;
                     result.resultMsg = $"杈撳叆鐨凴FID锛岄暱搴︿笉澶燂紝瑕佸ぇ浜�6浣�;

--
Gitblit v1.9.1