Sfoglia il codice sorgente

课例总数统计

Li 2 anni fa
parent
commit
87c748c96a
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      TEAMModelBI/Controllers/BISchool/SchoolController.cs

+ 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}");