完善软件逻辑

This commit is contained in:
hehaibing-1996
2024-10-31 13:57:51 +08:00
parent 759ebf2c89
commit 21d12b0003
2 changed files with 6 additions and 1 deletions

View File

@ -2337,7 +2337,7 @@ namespace WCS.BLL.HardWare
{
//获取当前板所有库位
var storeInfos = DbHelp.db.Queryable<StoreInfo>()
.Where(t => t.BoardId == boardId)
.Where(t => t.BoardId == boardId && t.ShelfId == ShelfId)
.ToList();
//当前设置的板库位数
var boardStoreNumber = storeInfos.Count();

View File

@ -24,6 +24,11 @@ namespace WCS.BLL.Services.Service
{
public class SingleLightService : ISingleLightService
{
/// <summary>
/// 单灯 一个库位对应一个硬件
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
public async Task<ResponseCommon<object>> SingleLightControl(SingleLightControlRequest request)
{
try