From 7c46a2f49e51bb3452bf027bea7cf4b9459a7ec0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E8=82=A5=E7=BE=8A?= <1048382248@qq.com> Date: Thu, 25 Sep 2025 16:09:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20=E4=B8=8A=E7=BA=BF?= =?UTF-8?q?=E7=8E=87=E4=B8=BA=E5=88=86=E6=9E=90=E5=8E=9F=E5=9B=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Learn.Archives.Core/Model/ExamClassTag.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Learn.Archives.Core/Model/ExamClassTag.cs b/Learn.Archives.Core/Model/ExamClassTag.cs index f8a3167..15e490e 100644 --- a/Learn.Archives.Core/Model/ExamClassTag.cs +++ b/Learn.Archives.Core/Model/ExamClassTag.cs @@ -66,7 +66,10 @@ namespace Learn.Archives.Core.Model /// 上线率 /// [SugarColumn(IsIgnore = true)] - public decimal OnLineRate => OnLineCount / PeopleCount; + public decimal OnLineRate => (decimal)OnLineCount / (decimal)PeopleCount; + /// + /// 总人数 + /// public int PeopleCount { get; set; } /// /// 上线人数