关键事项

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 #region
var projectSupervisors = ProjectUserService.GetProjectUserByRoleId(Const.ProjectSupervisor); var projectSupervisors = ProjectUserService.GetProjectUserByRoleId(pro.ProjectId,Const.ProjectSupervisor);
var projectManagers = ProjectUserService.GetProjectUserByRoleId(Const.ProjectManager); var projectManagers = ProjectUserService.GetProjectUserByRoleId(pro.ProjectId, Const.ProjectManager);
List<string> remindUserIds = new List<string>(); List<string> remindUserIds = new List<string>();
List<string> projectSupervisorIds = projectSupervisors.Select(x => x.UserId).ToList(); List<string> projectSupervisorIds = projectSupervisors.Select(x => x.UserId).ToList();

View File

@ -2,6 +2,7 @@
{ {
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Web.Security;
using Model; using Model;
public static class ProjectUserService public static class ProjectUserService
@ -39,9 +40,9 @@
///获取项目用户信息 根据用户角色ID ///获取项目用户信息 根据用户角色ID
/// </summary> /// </summary>
/// <returns></returns> /// <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> /// <summary>