取消笛卡尔积运算

This commit is contained in:
2026-07-27 22:23:08 +08:00 Unverified
parent 52e4a8a5be
commit b2de605680
3 changed files with 3 additions and 0 deletions
@@ -29,6 +29,7 @@ public sealed class MakeupExamArrangementService(AppDbContext db)
.Include(x => x.Sessions)
.ThenInclude(x => x.TeachingTask)
.ThenInclude(x => x!.Course)
.AsSplitQuery()
.FirstOrDefaultAsync(x => x.Id == planId, cancellationToken);
if (plan is null)