From 909162e3ada59d8896e10197839c2f8efc60cefb Mon Sep 17 00:00:00 2001 From: huangxiaoqiang <huangxiaoqiang@hnkhzn.com> Date: 星期六, 22 三月 2025 11:08:54 +0800 Subject: [PATCH] 1 --- 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 721f077..7c0cb7e 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 @@ -571,6 +571,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); + _simpleCacheService.HashDel<DtStockInfo>(WIDESEA_Cache.CacheConst.Cache_DtStockInfo, new string[] { task.PalletCode }); return task; } @@ -619,7 +625,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