This commit is contained in:
tanglong 2026-01-28 16:17:17 +08:00
parent 516e77fe83
commit 4fb963cec2
2 changed files with 5 additions and 4 deletions

View File

@ -74,5 +74,6 @@ namespace VOL.Entity.DomainModels
/// </summary>
[Display(Name = "专项水平列表")]
[Comment("专项水平列表")]
public List<JS_SpecialLevel> SpecialLevelList { get; set; }
}
}

View File

@ -256,10 +256,10 @@ namespace VOL.WebApi.Controllers.JingShiTiJiao
//var dbContext = _studentRepository.DbContext;
// 1️⃣ 先从数据库读取年级
var grades = await dbContext.Set<JS_Grade>()
.Where(x => x.SchoolCode == schoolCode)
.Include(g => g.Classes)
.ToListAsync();
//var grades = await dbContext.Set<JS_Grade>()
// .Where(x => x.SchoolCode == schoolCode)
// .Include(g => g.Classes)
// .ToListAsync();
//// 2️⃣ 数据库有数据,直接返回
//if (grades != null && grades.Any())