From 693584e6c84f6292a29ba242aa9e47be200e451e Mon Sep 17 00:00:00 2001
From: xiazhengtongxue <133085197+xiazhengtongxue@users.noreply.github.com>
Date: 星期二, 21 四月 2026 15:25:12 +0800
Subject: [PATCH] feat: 更新仓库枚举值和过滤条件,添加不等操作符支持 refactor: 重构任务和库存相关界面的查询逻辑 fix: 修复库存状态过滤条件错误问题 style: 统一代码格式和命名规范

---
 Code/WMS/WIDESEA_WMSServer/WIDESEA_StockService/StockInfoService.cs |   22 ++++++++++++++++++++++
 1 files changed, 22 insertions(+), 0 deletions(-)

diff --git a/Code/WMS/WIDESEA_WMSServer/WIDESEA_StockService/StockInfoService.cs b/Code/WMS/WIDESEA_WMSServer/WIDESEA_StockService/StockInfoService.cs
index 9a84608..59e0f51 100644
--- a/Code/WMS/WIDESEA_WMSServer/WIDESEA_StockService/StockInfoService.cs
+++ b/Code/WMS/WIDESEA_WMSServer/WIDESEA_StockService/StockInfoService.cs
@@ -381,5 +381,27 @@
                 return WebResponseContent.Instance.Error($"鍒犻櫎搴撳瓨鍜屾槑缁嗘椂鍙戠敓寮傚父: {ex.Message}");
             }
         }
+        /// <summary>
+        /// 鏇存柊MES涓婁紶鐘舵��
+        /// </summary>
+        /// <param name="palletCode">鎵樼洏鍙�</param>
+        /// <param name="status">MES涓婁紶鐘舵�佸��</param>
+        /// <returns>鏇存柊鏄惁鎴愬姛</returns>
+        public async Task<bool> UpdateMesUploadStatusAsync(string palletCode, int status)
+        {
+            try
+            {
+                var stockInfo = await BaseDal.QueryFirstAsync(x => x.PalletCode == palletCode);
+                if (stockInfo == null)
+                    return false;
+
+                stockInfo.MesUploadStatus = status;
+                return await BaseDal.UpdateDataAsync(stockInfo);
+            }
+            catch
+            {
+                return false;
+            }
+        }
     }
 }

--
Gitblit v1.9.3