dd
This commit is contained in:
parent
7e09ec14de
commit
2356528147
@ -79,7 +79,7 @@ namespace YD_XinWei.Commons.Dto.LargeScreen
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// 项目优良率
|
/// 项目优良率
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public double ExcellentRate { get; set; }
|
public int ExcellentRate { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 男生排名
|
/// 男生排名
|
||||||
|
@ -137,7 +137,7 @@ namespace YD_XinWei.Api.Services.Impl
|
|||||||
{
|
{
|
||||||
CategoryValue = g.Key,
|
CategoryValue = g.Key,
|
||||||
// 优良率计算:分数 > 80 的人数 ÷ 总人数
|
// 优良率计算:分数 > 80 的人数 ÷ 总人数
|
||||||
ExcellentRate = g.Count(x => x.Score > 80) * 100.0 / Math.Max(g.Count(), 1),
|
ExcellentRate = (int)Math.Round(g.Count(x => x.Score > 80) * 100.0 / Math.Max(g.Count(), 1), MidpointRounding.AwayFromZero),
|
||||||
|
|
||||||
// 男生前十名
|
// 男生前十名
|
||||||
MaleRankList = g.Where(x => x.Sex == 1)
|
MaleRankList = g.Where(x => x.Sex == 1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user