|
@@ -137,7 +137,7 @@ namespace TEAMModelOS.Controllers.Analysis
|
|
|
var client = _azureCosmos.GetCosmosClient();
|
|
|
//获取本次评测所有科目结算结果
|
|
|
info = await client.GetContainer(Constant.TEAMModelOS, "Common").ReadItemAsync<ExamInfo>(id.ToString(), new PartitionKey($"Exam-{code}"));
|
|
|
- School school = await client.GetContainer(Constant.TEAMModelOS, "School").ReadItemAsync<School>(code.ToString(), new PartitionKey($"Base"));
|
|
|
+ //School school = await client.GetContainer(Constant.TEAMModelOS, "School").ReadItemAsync<School>(code.ToString(), new PartitionKey($"Base"));
|
|
|
var query = $"select c.id,c.name,c.subjectId,c.studentScores,c.studentIds,c.paper,c.classes,c.sRate,c.average,c.standard,c.lostStus,c.record,c.phc,c.plc from c where c.examId = '{id}' ";
|
|
|
await foreach (var item in client.GetContainer(Constant.TEAMModelOS, "Common").GetItemQueryIterator<ExamResult>(queryText: query, requestOptions: new QueryRequestOptions() { PartitionKey = new PartitionKey($"ExamResult-{id}") }))
|
|
|
{
|
|
@@ -151,15 +151,15 @@ namespace TEAMModelOS.Controllers.Analysis
|
|
|
examClassResults.Add(item);
|
|
|
|
|
|
}
|
|
|
-
|
|
|
- foreach (Period period in school.period)
|
|
|
+ touch = info.touch;
|
|
|
+ income = info.income;
|
|
|
+ /*foreach (Period period in school.period)
|
|
|
{
|
|
|
if (info.period.id.Equals(period.id))
|
|
|
{
|
|
|
- touch = period.analysis.touch;
|
|
|
- income = period.analysis.income;
|
|
|
+
|
|
|
}
|
|
|
- }
|
|
|
+ }*/
|
|
|
//计算每个年级参考人数并计算进线分数
|
|
|
List<KeyValuePair<string, double>> keys = new List<KeyValuePair<string, double>>();
|
|
|
List<double> gradeTotal = new List<double>();
|