单灯区域增加看板接口
This commit is contained in:
@ -1,6 +1,8 @@
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using WCS.BLL.Services.IService;
|
||||
using WCS.BLL.Services.Service;
|
||||
using WCS.DAL.Db;
|
||||
using WCS.DAL.DbModels;
|
||||
using WCS.Model;
|
||||
using WCS.Model.ApiModel;
|
||||
using WCS.Model.ApiModel.SelfCheck;
|
||||
@ -62,5 +64,41 @@ namespace WCS.WebApi.Controllers
|
||||
}
|
||||
}
|
||||
|
||||
[Route("GetKanBanData")]
|
||||
[HttpGet(Name = "GetKanBanData")]
|
||||
public async Task<ResponseBase> GetKanBanData()
|
||||
{
|
||||
try
|
||||
{
|
||||
//获取单灯类型的库位
|
||||
var stores = DbHelp.db.Queryable<StoreInfo>()
|
||||
.Where(t => t.ShelfTypeId == 2)
|
||||
.OrderBy(t => t.Area)
|
||||
.OrderBy(t => t.StoreCode)
|
||||
.Select(t => new
|
||||
{
|
||||
Area = t.Area,
|
||||
StoreCode = t.StoreCode,
|
||||
LightMode = t.LightMode,
|
||||
ColorMode = t.ColorMode,
|
||||
})
|
||||
.ToList();
|
||||
return new ResponseCommon()
|
||||
{
|
||||
Code = 200,
|
||||
Message = "success",
|
||||
Data = stores
|
||||
};
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
return new ResponseBase()
|
||||
{
|
||||
Code = 300,
|
||||
Message = "操作失败:" + ex.Message,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user