项目人员 参与项目加在岗判断

This commit is contained in:
杨红卫 2021-08-13 21:10:25 +08:00
parent 29c4db2384
commit dfd370a9b0
1 changed files with 2 additions and 1 deletions

View File

@ -27,6 +27,7 @@ namespace BLL
projects = (from x in db.Project_ProjectUser
join y in db.Base_Project on x.ProjectId equals y.ProjectId
where x.UserId == userId && (y.ProjectState == null || y.ProjectState == BLL.Const.ProjectState_1)
&& (x.IsPost == true || x.IsPost == null)
select y).ToList();
}
@ -45,7 +46,7 @@ namespace BLL
{
var projects = (from x in db.Project_ProjectUser
join y in db.Base_Project on x.ProjectId equals y.ProjectId
where x.UserId == userId
where x.UserId == userId && (x.IsPost == true || x.IsPost == null)
orderby y.ProjectCode
select y).ToList();