|
@@ -1306,6 +1306,7 @@ namespace TEAMModelOS.Controllers
|
|
|
{
|
|
|
id = account.GetProperty("id").GetString(),
|
|
|
name = account.GetProperty("name").GetString(),
|
|
|
+ //schoolId = account.GetProperty("schoolId").GetString(),
|
|
|
type = 2
|
|
|
};
|
|
|
students.Add(fo);
|
|
@@ -1531,7 +1532,7 @@ namespace TEAMModelOS.Controllers
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- var queryAnswers = $"select c.id,c.code,c.studentIds,c.subjectId,c.studentAnswers,c.studentScores,c.sum,c.mark,c.krate,c.frate from c where c.examId ='{id}' and array_contains(c.studentIds,'{studentId}') and c.pk = 'ExamClassResult' ";
|
|
|
+ var queryAnswers = $"select c.id,c.code,c.studentIds,c.subjectId,c.studentAnswers,c.studentScores,c.average,c.sum,c.mark,c.krate,c.frate from c where c.examId ='{id}' and array_contains(c.studentIds,'{studentId}') and c.pk = 'ExamClassResult' ";
|
|
|
List<ExamClassResult> answers = new List<ExamClassResult>();
|
|
|
await foreach (var item in client.GetContainer(Constant.TEAMModelOS, "Common").GetItemQueryStreamIterator(queryText: queryAnswers,
|
|
|
requestOptions: new QueryRequestOptions() { PartitionKey = new PartitionKey($"ExamClassResult-{school}") }))
|
|
@@ -3206,5 +3207,6 @@ namespace TEAMModelOS.Controllers
|
|
|
public string id { get; set; }
|
|
|
public string name { get; set; }
|
|
|
public int type { get; set; }
|
|
|
+ public string schoolId { get; set; }
|
|
|
}
|
|
|
}
|