20230915新增项目当前在场人员统计页面
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user