安全会议,教育培训接口

This commit is contained in:
2026-02-06 10:23:36 +08:00
parent 75ce4655b4
commit 89bd4cc350
24 changed files with 1435 additions and 769 deletions
+7 -2
View File
@@ -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;
}