修复 上线率为分析原因 #18

Merged
hy merged 1 commits from dev into staging 2025-09-25 16:10:45 +08:00
1 changed files with 4 additions and 1 deletions
Showing only changes of commit 7c46a2f49e - Show all commits

View File

@ -66,7 +66,10 @@ namespace Learn.Archives.Core.Model
/// 上线率
/// </summary>
[SugarColumn(IsIgnore = true)]
public decimal OnLineRate => OnLineCount / PeopleCount;
public decimal OnLineRate => (decimal)OnLineCount / (decimal)PeopleCount;
/// <summary>
/// 总人数
/// </summary>
public int PeopleCount { get; set; }
/// <summary>
/// 上线人数