Ver código fonte

新增批注字段

zhouj1203@hotmail.com 4 anos atrás
pai
commit
c8ed74636a

+ 2 - 0
TEAMModelOS.SDK/Models/Cosmos/Common/ExamClassResult.cs

@@ -30,6 +30,8 @@ namespace TEAMModelOS.SDK.Models
         public List<string> studentIds { get; set; }
         public List<List<string>> studentAnswers { get; set; }
         public List<List<double>> studentScores { get; set; }
+        //Åú×¢
+        public List<string> annotation { get; set; }
         public string scope { get; set; }
         public List<double> sum { get; set; }
         public double average { get; set; }

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

@@ -1005,7 +1005,7 @@ namespace TEAMModelOS.Controllers
                         }
                     }
                 }
-                var queryAnswers = $"select c.id,c.code,c.studentIds,c.subjectId,c.studentAnswers,c.studentScores,c.sum 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.sum,c.annotation 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("TEAMModelOS", "Common").GetItemQueryStreamIterator(queryText: queryAnswers,
                     requestOptions: new QueryRequestOptions() { PartitionKey = new PartitionKey($"ExamClassResult-{school}") }))