From 2510ff614cd2962d2a91ec1a9eb6668009e9b671 Mon Sep 17 00:00:00 2001 From: hutongqing <hutongqing@hnkhzn.com> Date: 星期四, 12 十二月 2024 10:43:35 +0800 Subject: [PATCH] 1 --- 代码管理/WMS/WIDESEA_WMSServer/WIDESEA_BasicService/Base/WarehouseService.cs | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_BasicService/Base/WarehouseService.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_BasicService/Base/WarehouseService.cs" index b95398a..2384e6a 100644 --- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_BasicService/Base/WarehouseService.cs" +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_BasicService/Base/WarehouseService.cs" @@ -10,6 +10,7 @@ using WIDESEA_IBasicService; using WIDESEA_Model.Models; using WIDESEA_Core.Helper; +using WIDESEA_Common.CommonEnum; namespace WIDESEA_BasicService { @@ -39,7 +40,7 @@ public WebResponseContent WarehouseEnableStatus(int[] keys) { - List<Dt_Warehouse> warehouses = Repository.QueryData(x => keys.Contains(x.Id)); + List<Dt_Warehouse> warehouses = Repository.QueryData(x => keys.Contains(x.WarehouseId)); warehouses.ForEach(x => { x.WarehouseStatus = EnableEnum.Enable.ObjToInt(); @@ -51,7 +52,7 @@ public WebResponseContent WarehouseDisableStatus(int[] keys) { - List<Dt_Warehouse> warehouses = Repository.QueryData(x => keys.Contains(x.Id)); + List<Dt_Warehouse> warehouses = Repository.QueryData(x => keys.Contains(x.WarehouseId)); warehouses.ForEach(x => { x.WarehouseStatus = EnableEnum.Disable.ObjToInt(); -- Gitblit v1.9.3