Browse Source

Merge branch 'develop3.0-tmd' of http://106.12.23.251:10080/TEAMMODEL/TEAMModelOS into develop3.0-tmd

liqk 4 years ago
parent
commit
1911677a2b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      TEAMModelOS/Controllers/Common/ExamController.cs

+ 1 - 1
TEAMModelOS/Controllers/Common/ExamController.cs

@@ -847,7 +847,7 @@ namespace TEAMModelOS.Controllers
                 //List<string> ids = new List<string>();
                 //处理班级人数(公共部分的校本名单)
                 //List<Student> students = new List<Student>();
-                await foreach (var item in client.GetContainer("TEAMModelOS", "Student").GetItemQueryStreamIterator(queryText: $"select c.classId id from c where c.id = '{id}'", requestOptions: new QueryRequestOptions() { PartitionKey = new PartitionKey($"Base-{school}") }))
+                await foreach (var item in client.GetContainer("TEAMModelOS", "Student").GetItemQueryStreamIterator(queryText: $"select c.classId id from c where c.id = '{studentId}'", requestOptions: new QueryRequestOptions() { PartitionKey = new PartitionKey($"Base-{school}") }))
                 {
                     using var json = await JsonDocument.ParseAsync(item.ContentStream);
                     if (json.RootElement.TryGetProperty("_count", out JsonElement count) && count.GetUInt16() > 0)