diff --git a/SGGL/FineUIPro.Web/common/main_new.aspx.cs b/SGGL/FineUIPro.Web/common/main_new.aspx.cs index f2f7b278..32603c2e 100644 --- a/SGGL/FineUIPro.Web/common/main_new.aspx.cs +++ b/SGGL/FineUIPro.Web/common/main_new.aspx.cs @@ -184,7 +184,7 @@ namespace FineUIPro.Web.common // 质量管理人员(合并公司+项目级查询) var qualityQuery = db.Base_WorkPost .Where(x => x.IsCQMS == true) - .GroupJoin(db.SitePerson_Person.Where(x => x.IsUsed == true), + .GroupJoin(db.SitePerson_Person.Where(x => x.IsUsed == true && x.InTime < DateTime.Now && (x.OutTime == null || x.OutTime > DateTime.Now)), post => post.WorkPostId, person => person.WorkPostId, (post, persons) => new { post, persons })