|
@@ -93,13 +93,13 @@ namespace TEAMModelOS.SDK.Models.Service
|
|
|
{
|
|
|
//获取该学期内学校发生的所有评测活动(不包含个人评测活动)
|
|
|
List<ExamInfo> exams = new();
|
|
|
- School sc = new();
|
|
|
+ /* School sc = new();
|
|
|
var response = await client.GetContainer(Constant.TEAMModelOS, "School").ReadItemStreamAsync(schooCode.ToString(), new PartitionKey($"Base"));
|
|
|
if (response.Status == 200)
|
|
|
{
|
|
|
using var json = await JsonDocument.ParseAsync(response.ContentStream);
|
|
|
sc = json.ToObject<School>();
|
|
|
- }
|
|
|
+ }*/
|
|
|
StringBuilder stringBuilder = new($"select value(c) from c where c.startTime >= {stime} and c.startTime < {etime} and c.progress = 'finish' and c.period.id = '{periodId}'");
|
|
|
if (examType.Any()) {
|
|
|
stringBuilder.Append($" and c.examType.name in ({string.Join(",", examType.Select(o => $"'{o}'"))}) ");
|