From af9c3ed5d036ad68faf7e18f566679b3da92d244 Mon Sep 17 00:00:00 2001
From: wanshenmean <cathay_xy@163.com>
Date: 星期六, 22 三月 2025 11:36:06 +0800
Subject: [PATCH] 合并

---
 CodeManagement/WMS/WIDESEA_WMSServer/WIDESEA_StorageTaskServices/Task/Partial/Dt_TaskService.cs |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/CodeManagement/WMS/WIDESEA_WMSServer/WIDESEA_StorageTaskServices/Task/Partial/Dt_TaskService.cs b/CodeManagement/WMS/WIDESEA_WMSServer/WIDESEA_StorageTaskServices/Task/Partial/Dt_TaskService.cs
index 22d1772..ba9ebfd 100644
--- a/CodeManagement/WMS/WIDESEA_WMSServer/WIDESEA_StorageTaskServices/Task/Partial/Dt_TaskService.cs
+++ b/CodeManagement/WMS/WIDESEA_WMSServer/WIDESEA_StorageTaskServices/Task/Partial/Dt_TaskService.cs
@@ -562,6 +562,12 @@
                 Creater = "System",
                 ProductionLine = stockInfo.ProductionLine,
             };
+
+            var location = _locationRepository.QueryFirst(x => x.Id == stockInfo.LocationId);
+            if (location == null) return null;
+            location.LocationStatus = (int)LocationEnum.InStockDisable;
+            _locationRepository.UpdateData(location);
+
             return task;
         }
         catch (Exception ex)
@@ -609,7 +615,7 @@
     {
         try
         {
-            //if (stationManager.stationType == 15) throw new Exception("");
+            if (stationManager.stationType != 15) throw new Exception("");
 
             // 鍒涘缓涓�涓猅rayCellsStatusDto瀵硅薄锛屽苟璧嬪��
             TrayCellsStatusDto trayCells = new TrayCellsStatusDto()

--
Gitblit v1.9.3