|
@@ -365,8 +365,8 @@ namespace TEAMModelOS.Controllers.Analysis
|
|
|
x.name =x.id;
|
|
|
x.no = "-";
|
|
|
}
|
|
|
- //班级得分率
|
|
|
- x.csRate = totalAll > 0 ? Math.Round(totalAverage / totalAll,2) : 0;
|
|
|
+ /* //班级得分率
|
|
|
+ x.csRate = totalAll > 0 ? Math.Round(totalAverage / totalAll,2) : 0;*/
|
|
|
//标准差
|
|
|
powSum += Math.Pow(x.total - totalAverage, 2);
|
|
|
//进线人数
|
|
@@ -412,6 +412,7 @@ namespace TEAMModelOS.Controllers.Analysis
|
|
|
studentIds = studentIds,
|
|
|
stuCount = stuCount,
|
|
|
classId = classId,
|
|
|
+ csRate = totalAll > 0 ? Math.Round(totalAverage / totalAll, 2) : 0,
|
|
|
className = classroom.name,
|
|
|
totalAverage = totalAverage,
|
|
|
lineCount = lineCount,
|
|
@@ -528,11 +529,16 @@ namespace TEAMModelOS.Controllers.Analysis
|
|
|
});
|
|
|
});
|
|
|
});
|
|
|
+ var sub = info.subjects.Select(x => new {
|
|
|
+ id = x.id,
|
|
|
+ name = x.name,
|
|
|
+ sRate = examResults.FirstOrDefault(c => c.id == x.id).sRate
|
|
|
+ });
|
|
|
}
|
|
|
+
|
|
|
catch (Exception ex) {
|
|
|
BadRequest(ex.StackTrace);
|
|
|
- }
|
|
|
- var sub = info.subjects.Select(x => new { id = x.id, name = x.name });
|
|
|
+ }
|
|
|
return Ok(new { students,
|
|
|
classes,
|
|
|
grades,
|