From 25a246fffb48f622126c86c36030a68dcb618cb8 Mon Sep 17 00:00:00 2001
From: wanshenmean <cathay_xy@163.com>
Date: 星期一, 20 四月 2026 23:52:09 +0800
Subject: [PATCH] feat(StockInfoService): 实现UpdateMesUploadStatusAsync方法

---
 Code/WMS/WIDESEA_WMSServer/WIDESEA_StockService/StockInfoService.cs |   21 +++++++++++++++++++++
 1 files changed, 21 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..a69f8d1 100644
--- a/Code/WMS/WIDESEA_WMSServer/WIDESEA_StockService/StockInfoService.cs
+++ b/Code/WMS/WIDESEA_WMSServer/WIDESEA_StockService/StockInfoService.cs
@@ -380,6 +380,27 @@
                 _unitOfWorkManage.RollbackTran();
                 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.QueryDataFirstAsync(x => x.PalletCode == palletCode);
+                if (stockInfo == null)
+                    return false;
+
+                stockInfo.MesUploadStatus = status;
+                return await BaseDal.UpdateDataAsync(stockInfo);
+            }
+            catch
+            {
+                return false;
+            }
         }
     }
 }

--
Gitblit v1.9.3