From 8f872af917daaf693368b166a6985410976ca30a Mon Sep 17 00:00:00 2001 From: huangxiaoqiang <1247017146@qq.com> Date: 星期一, 07 四月 2025 14:23:43 +0800 Subject: [PATCH] 优化底层查询添加 --- Code Management/WMS/WIDESEA_WMSServer/WIDESEA_StoragIntegrationServices/MCS/Partial/NotifyFinishTest.cs | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Code Management/WMS/WIDESEA_WMSServer/WIDESEA_StoragIntegrationServices/MCS/Partial/NotifyFinishTest.cs b/Code Management/WMS/WIDESEA_WMSServer/WIDESEA_StoragIntegrationServices/MCS/Partial/NotifyFinishTest.cs index 18b4539..a38f83b 100644 --- a/Code Management/WMS/WIDESEA_WMSServer/WIDESEA_StoragIntegrationServices/MCS/Partial/NotifyFinishTest.cs +++ b/Code Management/WMS/WIDESEA_WMSServer/WIDESEA_StoragIntegrationServices/MCS/Partial/NotifyFinishTest.cs @@ -62,7 +62,7 @@ CreateDate = DateTime.Now, Creater = "HK", CurrentAddress = result.LocationID, - Grade = 1, + Grade = result.IsNG == 1 ? 1 : 2, Dispatchertime = DateTime.Now, PalletCode = result.PalletBarcode, Roadway = location.RoadwayNo, @@ -79,7 +79,7 @@ WMSTaskDTO taskDTO = new WMSTaskDTO() { TaskNum = task.TaskNum.Value, - Grade = 1, + Grade = result.IsNG == 1 ? 1 : 2, PalletCode = task.PalletCode, RoadWay = task.Roadway, SourceAddress = task.SourceAddress, @@ -105,6 +105,10 @@ if (respone.Status) { var taskId = _taskRepository.AddData(task); + location.LocationStatus = (int) LocationEnum.InStockDisable; + _locationRepository.UpdateData(location); + + _simpleCacheService.HashDel<DtStockInfo>(WIDESEA_Cache.CacheConst.Cache_DtStockInfo, new string[] { taskDTO.PalletCode }); } else @@ -116,6 +120,7 @@ { throw new Exception("WCS澶勭悊澶辫触"); } + //WMSTaskDTO taskDTO = new WMSTaskDTO //{ // Id = 0, -- Gitblit v1.9.3