if (isInvStockSearch)
{
List<string> myMaterialTypeIds = new List<string>();
//物资类型级联查询
if (!string.IsNullOrEmpty(request.StockMaterialTypeId))
{
myMaterialTypeIds.AddRange(request.StockMaterialTypeId.Split(','));
//emps = emps.Where(u => myMaterialTypeId.Contains(u.MaterialTypeId));
}
//物资类型非级联查询
if (!string.IsNullOrEmpty(request.NoCascadeStockMaterialTypeId))
{
myMaterialTypeIds.AddRange(request.NoCascadeStockMaterialTypeId.Split(','));
}
myMaterialTypeIds = myMaterialTypeIds.Distinct().ToList();
if(myMaterialTypeIds.Count > 0)
{
emps = emps.Where(u => myMaterialTypeIds.Contains(u.MaterialTypeId));
}
}