20230915新增项目当前在场人员统计页面

This commit is contained in:
2023-09-15 11:27:02 +08:00
parent 508d10c3e5
commit 5bb940a5cc
14 changed files with 553 additions and 10 deletions
+15
View File
@@ -167,5 +167,20 @@ namespace BLL
}
return name;
}
public static string GetTeamGroupNameByPersonId(string projectId, string personId)
{
string name = string.Empty;
var getSitePerson = Funs.DB.SitePerson_Person.FirstOrDefault(x => x.ProjectId == projectId && x.PersonId == personId);
if (getSitePerson != null)
{
var TeamGroup = Funs.DB.ProjectData_TeamGroup.FirstOrDefault(x => x.TeamGroupId == getSitePerson.TeamGroupId);
if (TeamGroup != null)
{
name = TeamGroup.TeamGroupName;
}
}
return name;
}
}
}