修复 排除无就读情况的学生

This commit is contained in:
小肥羊 2026-04-21 16:31:22 +08:00
parent a39fa1b34f
commit f80ace8af8
2 changed files with 2 additions and 2 deletions

View File

@ -96,7 +96,7 @@ namespace Learn.Archives.API.Controllers
c.GradeLevel == gradeInfo.GradeLevel &&
c.GraduationYear == gradeInfo.GradeYear &&
u.UserType == UserTypeEnum..GetHashCode() &&
s.Enable && p.Enable && p.Enable && pr.Status == PositionRelationStatusEnum. &&
s.Enable && p.Enable && pr.Enable && pr.Status == PositionRelationStatusEnum. &&
!p.DeleteState && !c.DeleteState && !u.DeleteState && !s.DeleteState)
.Select((s, c, p, pr, u) => new
{

View File

@ -380,7 +380,7 @@ namespace Learn.Archives.API.Controllers
s.Id == schoolId &&
u.UserType == UserTypeEnum..GetHashCode() &&
batch.Contains(u.RealName) &&
s.Enable && p.Enable && pr.Enable &&
s.Enable && p.Enable && pr.Enable && pr.Status == PositionRelationStatusEnum.&&
!p.DeleteState && !c.DeleteState && !u.DeleteState && !s.DeleteState)
.Select((s, c, p, pr, u) => new
{