This commit is contained in:
tanglong 2026-07-15 15:22:11 +08:00
parent d3bd78ad01
commit ce3991d082

View File

@ -521,7 +521,7 @@ namespace YD_YiLu.Api.Services.Impl
select new { t, s };
// 5️⃣ 条件过滤
if (dto.CourseId.HasValue)
if (dto.CourseId > 0)
query = query.Where(x => x.t.CourseId == dto.CourseId.Value);
if (dto.Gender > 0)
@ -803,7 +803,7 @@ namespace YD_YiLu.Api.Services.Impl
select new { t, s };
// 👉 4. 条件过滤
if (dto.CourseId.HasValue)
if (dto.CourseId > 0)
query = query.Where(x => x.t.CourseId == dto.CourseId.Value);
if (dto.Gender > 0)