|
@@ -1,4 +1,5 @@
|
|
|
-using System.Collections.Generic;
|
|
|
|
|
|
|
+using System;
|
|
|
|
|
+using System.Collections.Generic;
|
|
|
|
|
|
|
|
using Newtonsoft.Json;
|
|
using Newtonsoft.Json;
|
|
|
|
|
|
|
@@ -16,6 +17,31 @@ namespace WeApp.Configuration.Cache
|
|
|
public new string _description => base._description;
|
|
public new string _description => base._description;
|
|
|
|
|
|
|
|
public new List<GuideModel> GuideInfos { get; set; }
|
|
public new List<GuideModel> GuideInfos { get; set; }
|
|
|
|
|
+
|
|
|
|
|
+ /// <summary>
|
|
|
|
|
+ /// 系统得分
|
|
|
|
|
+ /// </summary>
|
|
|
|
|
+ public decimal? SystemScore { get; set; }
|
|
|
|
|
+
|
|
|
|
|
+ /// <summary>
|
|
|
|
|
+ /// 满分
|
|
|
|
|
+ /// </summary>
|
|
|
|
|
+ public decimal? FullScore { get; set; }
|
|
|
|
|
+
|
|
|
|
|
+ /// <summary>
|
|
|
|
|
+ /// 得分百分比
|
|
|
|
|
+ /// </summary>
|
|
|
|
|
+ public decimal ScorePer => GetPer();
|
|
|
|
|
+
|
|
|
|
|
+ public decimal GetPer()
|
|
|
|
|
+ {
|
|
|
|
|
+ if (SystemScore == null || FullScore == null)
|
|
|
|
|
+ {
|
|
|
|
|
+ return 0;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ return Math.Round(((decimal)SystemScore / (decimal)FullScore) * 100, 2);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public class ScenePathDto
|
|
public class ScenePathDto
|