From 557f02072fa311eefe3123aa44afebac22adc465 Mon Sep 17 00:00:00 2001
From: xiaojiao <xiaojiao@kaokeziliao.com>
Date: 星期五, 24 四月 2026 17:24:43 +0800
Subject: [PATCH] 4-24

---
 项目代码/WMS/WIDESEA_WMSServer/WIDESEA.Services/Common/ChangeLocationState.cs |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA.Services/Common/ChangeLocationState.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA.Services/Common/ChangeLocationState.cs"
index 59fc09b..130c422 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA.Services/Common/ChangeLocationState.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA.Services/Common/ChangeLocationState.cs"
@@ -1,9 +1,12 @@
-锘縰sing System;
+锘縰sing Newtonsoft.Json;
+using System;
 using System.Collections.Generic;
 using System.Text;
+using WIDESEA.Core.Utilities;
 using WIDESEA.Entity.DomainModels;
 using WIDESEA.Services.IRepositories;
 using WIDESEA.Services.Repositories;
+using WIDESEA_Common.LogEnum;
 
 namespace WIDESEA.Services.Services
 {
@@ -18,8 +21,14 @@
         /// <returns></returns>
         public static void ChangeLocationState(Dt_locationinfo location, string state)
         {
+            string temp = location.location_state;// 璁板綍淇敼鍓嶇殑鐘舵��
+
             location.location_state = state;
-            Dt_locationinfoRepository.Instance.Update(location, true);
+            int i = Dt_locationinfoRepository.Instance.Update(location, true);
+            LogRecord.WriteLog((int)LogEnum.Errer, $"璐т綅鍙穥location.location_id},淇敼鐘舵�佸墠鏄瘂temp}锛屼慨鏀瑰悗鐨勭姸鎬佹槸{state},淇敼浜嗘暟鎹繑鍥炵粨鏋溿�恵i}銆�");
+
+
+            //Console.WriteLine($"璐т綅鐘舵�佹病鏈変慨鏀规垚鍔燂紝璐т綅鍙穥location.location_id},娌℃垚鍔熷墠鐨勭姸鎬亄location.location_state}");
         }
     }
 }

--
Gitblit v1.9.3