From 21d12b00030123d953b80d943d592fb1ae8bad84 Mon Sep 17 00:00:00 2001 From: hehaibing-1996 Date: Thu, 31 Oct 2024 13:57:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E8=BD=AF=E4=BB=B6=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WCS.BLL/HardWare/SmartShelf.cs | 2 +- WCS.BLL/Services/Service/SingleLightService.cs | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/WCS.BLL/HardWare/SmartShelf.cs b/WCS.BLL/HardWare/SmartShelf.cs index c08b2cc..be74e18 100644 --- a/WCS.BLL/HardWare/SmartShelf.cs +++ b/WCS.BLL/HardWare/SmartShelf.cs @@ -2337,7 +2337,7 @@ namespace WCS.BLL.HardWare { //获取当前板所有库位 var storeInfos = DbHelp.db.Queryable() - .Where(t => t.BoardId == boardId) + .Where(t => t.BoardId == boardId && t.ShelfId == ShelfId) .ToList(); //当前设置的板库位数 var boardStoreNumber = storeInfos.Count(); diff --git a/WCS.BLL/Services/Service/SingleLightService.cs b/WCS.BLL/Services/Service/SingleLightService.cs index 3b342c3..49724d4 100644 --- a/WCS.BLL/Services/Service/SingleLightService.cs +++ b/WCS.BLL/Services/Service/SingleLightService.cs @@ -24,6 +24,11 @@ namespace WCS.BLL.Services.Service { public class SingleLightService : ISingleLightService { + /// + /// 单灯 一个库位对应一个硬件 + /// + /// + /// public async Task> SingleLightControl(SingleLightControlRequest request) { try