From 0f83419ea162d10cb3bc9f4a471ab1e65df68dff Mon Sep 17 00:00:00 2001
From: yanjinhui <3306209981@qq.com>
Date: 星期三, 29 十月 2025 18:45:52 +0800
Subject: [PATCH] 优化

---
 新建文件夹/WIDESEA_WMSServer/WIDESEA_SquareCabinServices/extend/Allocat.cs |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git "a/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/WIDESEA_SquareCabinServices/extend/Allocat.cs" "b/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/WIDESEA_SquareCabinServices/extend/Allocat.cs"
index a6041a9..b506722 100644
--- "a/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/WIDESEA_SquareCabinServices/extend/Allocat.cs"
+++ "b/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/WIDESEA_SquareCabinServices/extend/Allocat.cs"
@@ -46,7 +46,7 @@
                 foreach (var item in dt_InventoryInfos)
                 {
                     if (materielInfo.Business_qty >= materielInfo.MinQty) break;
-                    item.StockStatus = StockStatusEmun.鍑哄簱閿佸畾.ObjToInt();
+                    //item.StockStatus = StockStatusEmun.鍑哄簱閿佸畾.ObjToInt();
                     while (item.StockQuantity > item.OutboundQuantity && materielInfo.Business_qty < materielInfo.MinQty)
                     {
                         Qty += materielInfo.BoxQty;
@@ -56,7 +56,11 @@
                     item.AvailableQuantity = item.StockQuantity - item.OutboundQuantity;
                 }
                 #region 澶т欢搴撹ˉ绔嬪簱鍚庣珛搴撲笟鍔″簱瀛樻暟杩樻槸灏忎簬绔嬪簱鏈�灏忓簱瀛樻暟锛屾坊鍔犳彁绀轰俊鎭�
-
+                //娣诲姞鎶ヨ淇℃伅
+                if (materielInfo.Business_qty < materielInfo.MinQty)
+                {
+                    _messageInfoService.AddMessageInfo(MessageGroupByEnum.InventoryLowAlarm, $"鐗╂枡鍚嶇О:{materielInfo.MaterielName}", $"銆愮墿鏂欑紪鐮亄materielInfo.MaterielCode}澶т欢搴撳簱瀛樿繃浣庛��");
+                }
                 #endregion
                 #region 娣诲姞璋冩嫧鍑哄簱鍗�
                 Dt_DeliveryOrder deliveryOrder = new Dt_DeliveryOrder()

--
Gitblit v1.9.3