|
@@ -995,6 +995,23 @@ namespace TEAMModelOS.FunctionV4.ServiceBus
|
|
|
lessonRecord.clientInteractionAverge = lessonBase.summary.clientInteractionAverge;
|
|
|
lessonRecord.examCount = lessonBase.summary.examCount;
|
|
|
lessonRecord.totalInteractPoint = lessonBase.summary.totalInteractPoint;
|
|
|
+ LessonStudentRecord lessonStudentRecord = new LessonStudentRecord
|
|
|
+ {
|
|
|
+ clientSummaryList = lessonBase.report.clientSummaryList,
|
|
|
+ students = lessonBase.student,
|
|
|
+ name = lessonRecord.name,
|
|
|
+ school = lessonRecord.school,
|
|
|
+ id = lessonRecord.id,
|
|
|
+ scope = lessonRecord.scope,
|
|
|
+ tmdid = lessonRecord.tmdid,
|
|
|
+ code = "LessonStudentRecord",
|
|
|
+ pk = "LessonStudentRecord",
|
|
|
+ courseId =lessonRecord.courseId,
|
|
|
+ groupIds= lessonRecord.groupIds,
|
|
|
+ periodId = lessonRecord.periodId,
|
|
|
+ subjectId = lessonRecord.subjectId,
|
|
|
+ };
|
|
|
+ await _azureCosmos.GetCosmosClient().GetContainer(Constant.TEAMModelOS,Constant.Student).UpsertItemAsync<LessonStudentRecord>(lessonStudentRecord, new PartitionKey("LessonStudentRecord"));
|
|
|
}
|
|
|
//有上传 base.josn.
|
|
|
lessonRecord.upload =1;
|