修复 班级学生成绩排序异常

This commit is contained in:
小肥羊 2025-09-25 14:03:49 +08:00
parent fb6147ecbf
commit d31c898d35
1 changed files with 1 additions and 0 deletions

View File

@ -57,6 +57,7 @@ namespace Learn.Archives.API.Controllers
res.Data = res.Data.OrderBy(s => s.SubjectDic?[oldSer.Value]).ToList(); res.Data = res.Data.OrderBy(s => s.SubjectDic?[oldSer.Value]).ToList();
else else
res.Data = res.Data.OrderByDescending(s => s.SubjectDic?[oldSer.Value]).ToList(); res.Data = res.Data.OrderByDescending(s => s.SubjectDic?[oldSer.Value]).ToList();
return res;
} }
return await base.PageList(model); return await base.PageList(model);
} }