统一人员资质上传功能,优化风险分级动态管控功能,优化安全管理页面看板
This commit is contained in:
@@ -122,7 +122,7 @@ namespace BLL
|
||||
/// <param name="PageSize">每页数量</param>
|
||||
/// <returns></returns>
|
||||
public static IEnumerable getListData(string projectId, string unitId, string personName, string identityCard, string treamGroupId, string workPostIds,
|
||||
bool ckTrain, string postType, bool ckJT, bool ckIdCardInfoNotOK, Grid Grid1)
|
||||
bool ckTrain, string postType, bool ckJT, bool ckIdCardInfoNotOK, Grid Grid1,bool isBlack=false)
|
||||
{
|
||||
IQueryable<Model.View_SitePerson_Person> getPersonList = getPersonLists.Where(x => x.ProjectId == projectId);
|
||||
if (!string.IsNullOrEmpty(unitId))
|
||||
@@ -136,6 +136,15 @@ namespace BLL
|
||||
getPersonList = getPersonList.Where(x => x.UnitId == unitId);
|
||||
}
|
||||
}
|
||||
|
||||
if (isBlack == false)
|
||||
{
|
||||
getPersonList = getPersonList.Where(x => x.IsBlacklist != true || x.IsBlacklist == null);
|
||||
}
|
||||
else {
|
||||
getPersonList = getPersonList.Where(x => x.IsBlacklist == true);
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(personName))
|
||||
{
|
||||
getPersonList = getPersonList.Where(x => x.PersonName.Contains(personName));
|
||||
|
||||
Reference in New Issue
Block a user