合并
This commit is contained in:
parent
1e089bcab3
commit
6d75714460
@ -161,14 +161,12 @@ namespace VOL.Business.Services.ShangWaiMao
|
||||
var baseTime = GetMinuteBaseTime(group.Key.CourseStartTime, group.Min(x => x.ScoreTime));
|
||||
|
||||
var minuteData = BuildMinuteData(group, baseTime);
|
||||
|
||||
var duration = minuteData.Count == 0 ? 0 : minuteData.Keys.Max();
|
||||
var avgHeartRate = Math.Round(group.Average(x => x.Value), 2);
|
||||
var avgStrength = Math.Round(group.Average(x => x.Strength), 2);
|
||||
var density = group.Any()
|
||||
? Math.Round(group.Count(x => x.Strength > 50) * 100D / group.Count(), 2)
|
||||
: 0D;
|
||||
var totalConsumption = Math.Round(group.Sum(x => (double)(x.Consumption ?? 0)), 2);
|
||||
var avgHeartRate = (int)group.Average(x => x.Value);
|
||||
var avgStrength = (int)group.Average(x => x.Strength);
|
||||
var density = group.Any() ? Math.Round(group.Count(x => x.Strength > 50) * 100D / group.Count(), 0) : 0D;
|
||||
|
||||
var totalConsumption = Math.Abs((int)group.Average(x => x.Consumption ?? 0));
|
||||
|
||||
summarySheet.Cells[summaryRowIndex, 1].Value = group.Key.StudentName;
|
||||
summarySheet.Cells[summaryRowIndex, 2].Value = group.Key.StudentNo;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user