关键事项

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

View File

@ -0,0 +1,7 @@
ALTER TABLE DriverGoods_GoodsModel
ALTER COLUMN Description NVARCHAR(500);

View File

@ -608,8 +608,8 @@ namespace BLL
#region
var projectSupervisors = ProjectUserService.GetProjectUserByRoleId(Const.ProjectSupervisor);
var projectManagers = ProjectUserService.GetProjectUserByRoleId(Const.ProjectManager);
var projectSupervisors = ProjectUserService.GetProjectUserByRoleId(pro.ProjectId,Const.ProjectSupervisor);
var projectManagers = ProjectUserService.GetProjectUserByRoleId(pro.ProjectId, Const.ProjectManager);
List<string> remindUserIds = new List<string>();
List<string> projectSupervisorIds = projectSupervisors.Select(x => x.UserId).ToList();

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>