20231115优化制定计划编辑页面打开速度
This commit is contained in:
@@ -560,7 +560,7 @@ namespace BLL
|
||||
select x;
|
||||
if (listUnitIds.Count() > 0)
|
||||
{
|
||||
getProjectPersons = getProjectPersons.Where(x => listUnitIds.Contains(x.UnitId));
|
||||
getProjectPersons = getProjectPersons.Where(x => listUnitIds.Contains(x.UnitId)).OrderBy(x => x.PersonName);
|
||||
}
|
||||
if (listRoles.Count() > 0)
|
||||
{
|
||||
@@ -579,6 +579,7 @@ namespace BLL
|
||||
{
|
||||
list = (from x in getProjectPersons
|
||||
join y in db.Person_Persons on x.PersonId equals y.PersonId
|
||||
orderby x.PersonName
|
||||
select y).ToList();
|
||||
}
|
||||
}
|
||||
@@ -586,11 +587,11 @@ namespace BLL
|
||||
{
|
||||
var getPersons = from x in db.Person_Persons
|
||||
where x.PersonId != Const.hfnbdId && x.PersonId != Const.sedinId
|
||||
&& (x.IsPost == true || !x.IsPost.HasValue) && x.Account != null
|
||||
&& (x.IsPost == true || !x.IsPost.HasValue) && x.Account != null
|
||||
select x;
|
||||
if (listUnitIds.Count() > 0)
|
||||
{
|
||||
getPersons = getPersons.Where(x => listUnitIds.Contains(x.UnitId));
|
||||
getPersons = getPersons.Where(x => listUnitIds.Contains(x.UnitId)).OrderBy(x=>x.PersonName);
|
||||
}
|
||||
if (listRoles.Count() > 0)
|
||||
{
|
||||
@@ -605,11 +606,11 @@ namespace BLL
|
||||
}
|
||||
else
|
||||
{
|
||||
list = getPersons.ToList();
|
||||
list = getPersons.OrderBy(x => x.PersonName).ToList();
|
||||
}
|
||||
}
|
||||
|
||||
return list.OrderBy(x => x.PersonName).ToList();
|
||||
return list;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
Reference in New Issue
Block a user