|
@@ -176,13 +176,13 @@ namespace TEAMModelOS.SDK.Models.Service
|
|
|
var response = await client.GetContainer(Constant.TEAMModelOS, tbname).ReadItemStreamAsync(data.tmdid.ToString(), new PartitionKey(code));
|
|
|
if (response.Status == 200)
|
|
|
{
|
|
|
- /* using var json = await JsonDocument.ParseAsync(response.ContentStream);
|
|
|
+ using var json = await JsonDocument.ParseAsync(response.ContentStream);
|
|
|
LessonCount count = json.ToObject<LessonCount>();
|
|
|
|
|
|
count.tCount[day - 1] += lessonDis.disTCount;
|
|
|
count.pCount[day - 1] += lessonDis.disPCount;
|
|
|
count.ptCount[day - 1] += lessonDis.disDCount;
|
|
|
- count.beginCount[day - 1] += lessonDis.record;*/
|
|
|
+ count.beginCount[day - 1] += lessonDis.record;
|
|
|
/*if (!count.courseIds.Contains(data.courseId))
|
|
|
{
|
|
|
count.courseIds.Add(data.courseId);
|
|
@@ -190,7 +190,7 @@ namespace TEAMModelOS.SDK.Models.Service
|
|
|
}*/
|
|
|
|
|
|
|
|
|
- //await client.GetContainer("TEAMModelOS", tbname).ReplaceItemAsync(count, count.id, new PartitionKey(code));
|
|
|
+ await client.GetContainer("TEAMModelOS", tbname).ReplaceItemAsync(count, count.id, new PartitionKey(code));
|
|
|
}
|
|
|
else
|
|
|
{
|