diff --git a/SlnMesnac.Business/base/BaseBusiness.cs b/SlnMesnac.Business/base/BaseBusiness.cs index f3c696c..b18cdb8 100644 --- a/SlnMesnac.Business/base/BaseBusiness.cs +++ b/SlnMesnac.Business/base/BaseBusiness.cs @@ -101,15 +101,15 @@ namespace SlnMesnac.Business.@base /// public void GetCabinetInfos(int equipAddr,out List cabinetInfos) { - cabinetInfos = _ibase_Cabinet_InfoServices.Query(x=>x.isChecked == 1 && x.isFlag == 1).ToList(); + var list = _ibase_Cabinet_InfoServices.Query(x=>x.isChecked == 1 && x.isFlag == 1).ToList(); if (equipAddr > 20) //20 号柜子之后倒叙巡检 { - cabinetInfos.OrderByDescending(x => x.cabinetCode); + cabinetInfos = list.OrderByDescending(x => x.cabinetCode).ToList(); } else //右侧原点,倒序巡检 { - cabinetInfos.OrderBy(x => x.cabinetCode); + cabinetInfos = list.OrderBy(x => x.cabinetCode).ToList(); } }