3 Commits

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>() var storeInfos = DbHelp.db.Queryable<StoreInfo>()
.Where(t => t.BoardId == boardId) .Where(t => t.BoardId == boardId && t.ShelfId == ShelfId)
.ToList(); .ToList();
//当前设置的板库位数 //当前设置的板库位数
var boardStoreNumber = storeInfos.Count(); var boardStoreNumber = storeInfos.Count();

View File

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