Procházet zdrojové kódy

Merge branch 'PL/develop-BI' into develop

Li před 2 roky
rodič
revize
6c6e6511d4

+ 1 - 1
TEAMModelBI/Controllers/BISchool/SchoolController.cs

@@ -1572,7 +1572,7 @@ namespace TEAMModelBI.Controllers.BISchool
                 tchAllCnt += await CommonFind.GetSqlValueCount(cosmosClient, "School", tchAllSql, $"Teacher-{item.id}");
                 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}");
+                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";
                 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", lessMoSql, $"LessonRecord-{item.id}");