提交
This commit is contained in:
parent
b79ea5472c
commit
516e77fe83
@ -74,6 +74,5 @@ namespace VOL.Entity.DomainModels
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
[Display(Name = "专项水平列表")]
|
[Display(Name = "专项水平列表")]
|
||||||
[Comment("专项水平列表")]
|
[Comment("专项水平列表")]
|
||||||
public List<JS_SpecialLevel> SpecialLevelList { get; set; }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -253,13 +253,13 @@ namespace VOL.WebApi.Controllers.JingShiTiJiao
|
|||||||
if (string.IsNullOrWhiteSpace(schoolCode))
|
if (string.IsNullOrWhiteSpace(schoolCode))
|
||||||
return new List<GradeNameModel>();
|
return new List<GradeNameModel>();
|
||||||
|
|
||||||
var dbContext = _studentRepository.DbContext;
|
//var dbContext = _studentRepository.DbContext;
|
||||||
|
|
||||||
// 1️⃣ 先从数据库读取年级
|
// 1️⃣ 先从数据库读取年级
|
||||||
//var grades = await dbContext.Set<JS_Grade>()
|
var grades = await dbContext.Set<JS_Grade>()
|
||||||
// .Where(x => x.SchoolCode == schoolCode)
|
.Where(x => x.SchoolCode == schoolCode)
|
||||||
// .Include(g => g.Classes)
|
.Include(g => g.Classes)
|
||||||
// .ToListAsync();
|
.ToListAsync();
|
||||||
|
|
||||||
//// 2️⃣ 数据库有数据,直接返回
|
//// 2️⃣ 数据库有数据,直接返回
|
||||||
//if (grades != null && grades.Any())
|
//if (grades != null && grades.Any())
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user