安全会议,教育培训接口
This commit is contained in:
@@ -336,7 +336,7 @@ namespace BLL
|
||||
{
|
||||
foreach (var work in workPostIds)
|
||||
{
|
||||
var plist = (from x in Funs.DB.SitePerson_Person where x.IsUsed == true && x.ProjectId == projectId && x.WorkPostId == work select x).ToList();
|
||||
var plist = (from x in Funs.DB.SitePerson_Person where x.IsUsed == true && x.WorkPostId == work select x).ToList();
|
||||
if (plist.Any())
|
||||
{
|
||||
list.AddRange(plist);
|
||||
@@ -345,7 +345,12 @@ namespace BLL
|
||||
}
|
||||
else
|
||||
{
|
||||
list = (from x in Funs.DB.SitePerson_Person where x.IsUsed == true && x.ProjectId == projectId select x).ToList();
|
||||
list = (from x in Funs.DB.SitePerson_Person where x.IsUsed == true select x).ToList();
|
||||
}
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(projectId))
|
||||
{
|
||||
list = list.Where(x => x.ProjectId == projectId).ToList();
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user