|
@@ -567,7 +567,7 @@ namespace TEAMModelOS.SDK
|
|
|
|
|
|
}
|
|
|
await foreach (var item in client.GetContainer("TEAMModelOS", "Normal")
|
|
|
- .GetItemQueryIterator<Ability>(queryText: $"select c.id,c.name,c.currency,c.no,c.dimension,c.hour,c.stds from c {insql} ", requestOptions: new QueryRequestOptions() { PartitionKey = new PartitionKey($"Ability-{area.standard}") }))
|
|
|
+ .GetItemQueryIterator<Ability>(queryText: $"select c.id,c.name,c.currency,c.no,c.dimension,c.hour,c.stds,c.abilityCount from c {insql} ", requestOptions: new QueryRequestOptions() { PartitionKey = new PartitionKey($"Ability-{area.standard}") }))
|
|
|
{
|
|
|
abilities.Add(item);
|
|
|
|
|
@@ -595,16 +595,27 @@ namespace TEAMModelOS.SDK
|
|
|
}
|
|
|
currencyAll.uploadDone += item.uploads.Count;
|
|
|
}
|
|
|
+ //通过能力点自测
|
|
|
if (item.exerciseScore > 0)
|
|
|
{
|
|
|
if (currencyInt == 1)
|
|
|
{
|
|
|
currency.exerciseAbility += 1;
|
|
|
- currency.learnAbility += item.abilityCount;
|
|
|
+ //并且完全看完视频和文档。
|
|
|
+ if (item.allDone) {
|
|
|
+ currency.learnAbility += ability.abilityCount;
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ //并且完全看完视频和文档。
|
|
|
+ if (item.allDone)
|
|
|
+ {
|
|
|
+ currencyAll.learnAbility += ability.abilityCount;
|
|
|
}
|
|
|
currencyAll.exerciseAbility += 1;
|
|
|
- currencyAll.learnAbility += item.abilityCount;
|
|
|
+
|
|
|
}
|
|
|
+
|
|
|
List<TeacherHprecord> hprecords = new List<TeacherHprecord>();
|
|
|
TeacherAility teacherAility = new Models.TeacherAility
|
|
|
{
|