|
@@ -1485,11 +1485,11 @@ namespace TEAMModelBI.Controllers.BISchool
|
|
|
string tchAllSql = $"select value(count(c.id)) from c where ARRAY_CONTAINS(c.roles,'teacher',true) and c.status = 'join'";
|
|
|
tchAllCnt += await CommonFind.GetSqlValueCount(cosmosClient, "School", tchAllSql, $"Teacher-{item.id}");
|
|
|
|
|
|
- string lessALLSql = "select value(count(c.id)) from c where c.pk='LessonRecord'";
|
|
|
+ string lessALLSql = $"select value(count(c.id)) from c where c.pk='LessonRecord'";
|
|
|
lessAllCnt += await CommonFind.GetSqlValueCount(cosmosClient, "School", lessALLSql, $"LessonRecord-{item.id}");
|
|
|
|
|
|
string lessUpSql = $"select value(count(c.id)) from c where c.pk='LessonRecord' and c.upload = 0";
|
|
|
- lessRankCnt.openCnt = await CommonFind.GetSqlValueCount(cosmosClient, "School", lessMoSql, $"LessonRecord-{item.id}");
|
|
|
+ lessRankCnt.openCnt = await CommonFind.GetSqlValueCount(cosmosClient, "School", lessUpSql, $"LessonRecord-{item.id}");
|
|
|
|
|
|
string lessSql = $"select value(count(c.id)) from c where c.pk='LessonRecord' and c.upload = 1";
|
|
|
lessRankCnt.lessCnt = await CommonFind.GetSqlValueCount(cosmosClient, "School", lessSql, $"LessonRecord-{item.id}");
|