This commit is contained in:
夏菊 2025-06-09 16:48:27 +08:00
parent 18da306cdd
commit a25dada293
1 changed files with 1 additions and 1 deletions

View File

@ -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 })