This commit is contained in:
qianhao.xu
2024-11-01 17:25:33 +08:00
parent dc1540db0a
commit b31e8c76e9
2 changed files with 11 additions and 7 deletions

View File

@@ -20,7 +20,7 @@ namespace DOAN.Service.PBL
List<BIgScreenDto> result = new List<BIgScreenDto>();
// 1 查询所有料架
string[] RackCodeArray= Context.Queryable<Storagelocation>().GroupBy(it=>it.RackCode).Select(it=>it.RackCode).OrderBy(it=>it).ToArray();
string[] RackCodeArray= Context.Queryable<Storagelocation>().GroupBy(it=>it.RackCode).Select(it=>it.RackCode).ToArray();
List<Storagelocation> DataSoure= Context.Queryable<Storagelocation>().ToList();
//2 查询每个料架层
@@ -35,11 +35,13 @@ namespace DOAN.Service.PBL
{
for (int j = 0; j < LayerSheelfList.Count; j++)
{
LayerObjectfArray[j].LayerNum=LayerSheelfList[j].LayerNum;
LayerObjectfArray[j].Partnumber=LayerSheelfList[j].Partnumber;
LayerObjectfArray[j].MaxCapacity=LayerSheelfList[j].MaxCapacity;
LayerObjectfArray[j].PackageNum=LayerSheelfList[j].PackageNum;
LayerObjectfArray[j].isLight=LayerSheelfList[j].IsLight==1?true:false;
LayerObject LayerObject = new LayerObject();
LayerObject.LayerNum=LayerSheelfList[j].LayerNum;
LayerObject.Partnumber=LayerSheelfList[j].Partnumber;
LayerObject.MaxCapacity=LayerSheelfList[j].MaxCapacity;
LayerObject.PackageNum=LayerSheelfList[j].PackageNum;
LayerObject.isLight=LayerSheelfList[j].IsLight==1?true:false;
LayerObjectfArray[j] = LayerObject;
}
for (int j = 0; j < LayerSheelfList.Count; j++)
@@ -62,7 +64,7 @@ namespace DOAN.Service.PBL
return result;
return result.OrderBy(it=>it.RackCode).ToList();
}
}

View File

@@ -6,4 +6,6 @@ namespace DOAN.Service.PBL.IService;
public interface IBigScreenService : IBaseService<Storagelocation>
{
List<BIgScreenDto> SearchShelfLightInfomation();
}