This commit is contained in:
ltx 2026-10-08 15:19:10 +08:00
commit 2759a4aa8a
4 changed files with 15 additions and 2 deletions

View File

@ -1628,6 +1628,7 @@ namespace VOL.Business.Services
GradeId = r.Id, GradeId = r.Id,
GradeName = r.GradeName, GradeName = r.GradeName,
StudentNo = r.StudentNo, StudentNo = r.StudentNo,
StudentName = r.StudentName,
CategoryName = c.CategoryName, CategoryName = c.CategoryName,
ClassId = r.ClassId, ClassId = r.ClassId,
ClassName = r.ClassName, ClassName = r.ClassName,
@ -1641,7 +1642,8 @@ namespace VOL.Business.Services
Rank = r.Rank, Rank = r.Rank,
CategoryId = c.Id, CategoryId = c.Id,
Score = r.Score, Score = r.Score,
Sex = r.Sex == SexType.Male ? "男" : "女" Sex = r.Sex == SexType.Male ? "男" : "女",
ScoreTime = r.ScoreTime
}; };
if (!string.IsNullOrWhiteSpace(paramDto.StudentNo)) if (!string.IsNullOrWhiteSpace(paramDto.StudentNo))
@ -1676,7 +1678,7 @@ namespace VOL.Business.Services
res.Total = await query.CountAsync(); res.Total = await query.CountAsync();
var list = await query var list = await query.OrderByDescending(x => x.ScoreTime)
.Skip((paramDto.PageIndex - 1) * paramDto.PageSize) .Skip((paramDto.PageIndex - 1) * paramDto.PageSize)
.Take(paramDto.PageSize) .Take(paramDto.PageSize)
.ToListAsync(); .ToListAsync();

View File

@ -63,6 +63,12 @@ namespace VOL.Model
[Display(Name = "学生学号")] [Display(Name = "学生学号")]
public string StudentNo { get; set; } public string StudentNo { get; set; }
/// <summary>
///学生姓名
/// </summary>
[Display(Name = "学生姓名")]
public string StudentName { get; set; }
/// <summary> /// <summary>
///性别 ///性别
/// </summary> /// </summary>
@ -123,5 +129,10 @@ namespace VOL.Model
[Display(Name = "备注")] [Display(Name = "备注")]
public string Remarks { get; set; } public string Remarks { get; set; }
/// <summary>
/// 测试时间
/// </summary>
public DateTime ScoreTime { get; set; }
} }
} }

Binary file not shown.

Binary file not shown.