关键事项

This commit is contained in:
2025-10-21 09:53:14 +08:00
parent bb4969983f
commit c22466d9d6
3 changed files with 12 additions and 4 deletions
+3 -2
View File
@@ -2,6 +2,7 @@
{
using System.Collections.Generic;
using System.Linq;
using System.Web.Security;
using Model;
public static class ProjectUserService
@@ -39,9 +40,9 @@
///获取项目用户信息 根据用户角色ID
/// </summary>
/// <returns></returns>
public static List<Project_ProjectUser> GetProjectUserByRoleId(string roleId)
public static List<Project_ProjectUser> GetProjectUserByRoleId(string projectId, string roleId)
{
return (from x in Funs.DB.Project_ProjectUser where x.RoleId.Contains(roleId) select x).ToList();
return (from x in Funs.DB.Project_ProjectUser where x.ProjectId == projectId && x.RoleId.Contains(roleId) select x).ToList();
}
/// <summary>