This commit is contained in:
tanglong 2025-08-26 14:49:40 +08:00
parent 63a2f92ac0
commit 5be6a4cec7
7 changed files with 5 additions and 8 deletions

View File

@ -14,7 +14,7 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("YD_XinWei.Commons")] [assembly: System.Reflection.AssemblyCompanyAttribute("YD_XinWei.Commons")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+23565281478983f791312a55a071add26a104134")] [assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+63a2f92ac0e9de6f7a6756fdd2c39df794a75c7a")]
[assembly: System.Reflection.AssemblyProductAttribute("YD_XinWei.Commons")] [assembly: System.Reflection.AssemblyProductAttribute("YD_XinWei.Commons")]
[assembly: System.Reflection.AssemblyTitleAttribute("YD_XinWei.Commons")] [assembly: System.Reflection.AssemblyTitleAttribute("YD_XinWei.Commons")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]

View File

@ -1 +1 @@
bd6651003474a4da546208fd3a525ec88905f4ae8f2ddce21f68452c76c89043 2a0b918cedcecf80d190b2fc59641d928ea49c9dc87549525e77463eda53ffbe

View File

@ -136,6 +136,7 @@ namespace YD_XinWei.Api.Services.Impl
.Select(g => new ItemDataDto .Select(g => new ItemDataDto
{ {
CategoryValue = g.Key, CategoryValue = g.Key,
// 优良率计算:分数 > 80 的人数 ÷ 总人数 // 优良率计算:分数 > 80 的人数 ÷ 总人数
ExcellentRate = (int)Math.Round(sportsTestData.Count(x => x.CategoryValue == g.Key && x.Score > 80) * 100.0 / Math.Max(sportsTestData.Count(x => x.CategoryValue == g.Key), 1), MidpointRounding.AwayFromZero), ExcellentRate = (int)Math.Round(sportsTestData.Count(x => x.CategoryValue == g.Key && x.Score > 80) * 100.0 / Math.Max(sportsTestData.Count(x => x.CategoryValue == g.Key), 1), MidpointRounding.AwayFromZero),
@ -167,7 +168,6 @@ namespace YD_XinWei.Api.Services.Impl
res.ItemDatalist = projectResults; res.ItemDatalist = projectResults;
var classListKey = $"ClassList_{schoolCode}"; var classListKey = $"ClassList_{schoolCode}";
var classList = _caching.Get<List<S_Class>>(classListKey); var classList = _caching.Get<List<S_Class>>(classListKey);
@ -258,9 +258,6 @@ namespace YD_XinWei.Api.Services.Impl
/// <param name="orgId"></param> /// <param name="orgId"></param>
/// <param name="lastTime"></param> /// <param name="lastTime"></param>
/// <returns></returns> /// <returns></returns>
/// <summary>
/// 各项目实时成绩
/// </summary>
public async Task<List<ItemRealTimeResultDto>> ItemRealTimeResult(int orgId, DateTime? lastTime = null) public async Task<List<ItemRealTimeResultDto>> ItemRealTimeResult(int orgId, DateTime? lastTime = null)
{ {
var schoolKeyKey = $"School_{orgId}"; var schoolKeyKey = $"School_{orgId}";

View File

@ -14,7 +14,7 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("YD_XinWei.Api")] [assembly: System.Reflection.AssemblyCompanyAttribute("YD_XinWei.Api")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+23565281478983f791312a55a071add26a104134")] [assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+63a2f92ac0e9de6f7a6756fdd2c39df794a75c7a")]
[assembly: System.Reflection.AssemblyProductAttribute("YD_XinWei.Api")] [assembly: System.Reflection.AssemblyProductAttribute("YD_XinWei.Api")]
[assembly: System.Reflection.AssemblyTitleAttribute("YD_XinWei.Api")] [assembly: System.Reflection.AssemblyTitleAttribute("YD_XinWei.Api")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]

View File

@ -1 +1 @@
a8ad10a084b36c076d1bfd9348d4df6e3bb50e6f019a557f7041d369d2688ea9 d5e89192c56fca82154ac9aa02c362ddfdb5640a0d6642557e61506dc6024611