diff --git a/VOL.Entity/DomainModels/Ai/JS_Special.cs b/VOL.Entity/DomainModels/Ai/JS_Special.cs index ea2bb0b..1fd1cd2 100644 --- a/VOL.Entity/DomainModels/Ai/JS_Special.cs +++ b/VOL.Entity/DomainModels/Ai/JS_Special.cs @@ -74,6 +74,5 @@ namespace VOL.Entity.DomainModels /// [Display(Name = "专项水平列表")] [Comment("专项水平列表")] - public List SpecialLevelList { get; set; } } } diff --git a/VOL.WebApi/Controllers/JingShiTiJiao/JingShiTiJiaoController.cs b/VOL.WebApi/Controllers/JingShiTiJiao/JingShiTiJiaoController.cs index a64251a..87ec876 100644 --- a/VOL.WebApi/Controllers/JingShiTiJiao/JingShiTiJiaoController.cs +++ b/VOL.WebApi/Controllers/JingShiTiJiao/JingShiTiJiaoController.cs @@ -253,13 +253,13 @@ namespace VOL.WebApi.Controllers.JingShiTiJiao if (string.IsNullOrWhiteSpace(schoolCode)) return new List(); - var dbContext = _studentRepository.DbContext; + //var dbContext = _studentRepository.DbContext; // 1️⃣ 先从数据库读取年级 - //var grades = await dbContext.Set() - // .Where(x => x.SchoolCode == schoolCode) - // .Include(g => g.Classes) - // .ToListAsync(); + var grades = await dbContext.Set() + .Where(x => x.SchoolCode == schoolCode) + .Include(g => g.Classes) + .ToListAsync(); //// 2️⃣ 数据库有数据,直接返回 //if (grades != null && grades.Any())