|
@@ -338,18 +338,15 @@ namespace TEAMModelOS.Controllers
|
|
|
{
|
|
|
result.studentIds.Add(studentId.ToString());
|
|
|
result.studentScores.Add(new List<double>());
|
|
|
- result.studentAnswers.Add(new List<List<string>>());
|
|
|
+ result.studentAnswers.Add(new List<string>());
|
|
|
}
|
|
|
+ string FileName = studentId + "-" + result.examId + "-" + result.subjectId;
|
|
|
+ string blob = await _azureStorage.UploadFileByContainer("hbcn", ans.ToJsonString(), "exam", FileName + ".json");
|
|
|
+ result.studentAnswers[index].Add(blob);
|
|
|
+
|
|
|
for (int i = 0; i < ans.Count; i++)
|
|
|
- {
|
|
|
- if(standard[i].Count == 0 && ans[i].Count > 0)
|
|
|
- {
|
|
|
- string FileName = studentId + "-" + i.ToString() + "-" + result.examId + "-" + result.subjectId ;
|
|
|
- string blob = await _azureStorage.UploadFileByContainer("hbcn", ans[i].ToJsonString(), "exam", FileName + ".json");
|
|
|
- result.studentAnswers[index][i].Add(blob);
|
|
|
- continue;
|
|
|
- }
|
|
|
- result.studentAnswers[index][i] = ans[i];
|
|
|
+ {
|
|
|
+ //result.studentAnswers[index][i] = ans[i];
|
|
|
//算分处理
|
|
|
if (standard[i].Count > 0)
|
|
|
{
|
|
@@ -749,7 +746,7 @@ namespace TEAMModelOS.Controllers
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- //List<List<List<string>>> stuAns = new List<List<List<string>>>();
|
|
|
+ List<List<string>> stuAns = new List<List<string>>();
|
|
|
List<List<double>> stuScore = new List<List<double>>();
|
|
|
List<double> total = new List<double>();
|
|
|
if (answers.Count > 0)
|
|
@@ -760,7 +757,7 @@ namespace TEAMModelOS.Controllers
|
|
|
{
|
|
|
break;
|
|
|
}
|
|
|
- // stuAns.Add(result.studentAnswers[index]);
|
|
|
+ stuAns.Add(result.studentAnswers[index]);
|
|
|
stuScore.Add(result.studentScores[index]);
|
|
|
total.Add(result.sum.Where(s => s <= 59).Count());
|
|
|
total.Add(result.sum.Where(s => s > 59 && s <= 70 ).Count());
|