tiaojian
This commit is contained in:
parent
d3bd78ad01
commit
ce3991d082
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user