change - 巡检顺序匹配逻辑修改

master
wenjy 2 months ago
parent 607b0c2fa4
commit 3925d772f1

@ -101,15 +101,15 @@ namespace SlnMesnac.Business.@base
/// <param name="cabinetInfos"></param>
public void GetCabinetInfos(int equipAddr,out List<base_cabinet_info> 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();
}
}

Loading…
Cancel
Save