This commit is contained in:
tanglong 2026-01-16 16:22:48 +08:00
parent 3a731ba2a7
commit cb214fb0ad

View File

@ -1996,8 +1996,19 @@ namespace VOL.Business.Services.Training
{
var res = new PageDataDto<ClassReportModel>();
string schoolCode = "";
if (!string.IsNullOrWhiteSpace(paramDto.SchoolCode))
{
schoolCode = paramDto.SchoolCode;
}
else
{
schoolCode = UserContext.Current.TenantId;
}
var query = from td in _teacherRepository.DbContext.Set<Ai_ClassRoomRecord>()
where td.SchoolCode.Equals(UserContext.Current.TenantId)
where td.SchoolCode.Equals(schoolCode)
select new ClassReportModel()
{
Id = td.Id,