Browse Source

优化区域统计获取失败

Li 3 years ago
parent
commit
3657f70b4b
1 changed files with 3 additions and 3 deletions
  1. 3 3
      TEAMModelBI/Controllers/Census/ActivitySticsController.cs

+ 3 - 3
TEAMModelBI/Controllers/Census/ActivitySticsController.cs

@@ -506,9 +506,9 @@ namespace TEAMModelBI.Controllers.Census
             long resourceCount = 0; //累计资源
             long resourceCount = 0; //累计资源
             long totalTime = 0; //总学时
             long totalTime = 0; //总学时
 
 
-            scCount = await CommonFind.FindTotals(cosmosClient, $"select count(c.id) as totals form c ", "School", "Base");
-            tecCount = await CommonFind.FindTotals(cosmosClient, $"select count(c.id) as totals form c ", "Teacher", "Base");
-            stuCount = await CommonFind.FindTotals(cosmosClient, $"select count(c.id) as totals form c ", "Student", "Base");
+            scCount = await CommonFind.FindTotals(cosmosClient, $"SELECT count(c.id) as totals FROM c ", "School", "Base");
+            tecCount = await CommonFind.FindTotals(cosmosClient, $"SELECT count(c.id) as totals FROM c ", "Teacher", "Base");
+            stuCount = await CommonFind.FindTotals(cosmosClient, $"SELECT count(c.id) as totals FROM c ", "Student", "Base");
 
 
             foreach (var area in areaInfos) 
             foreach (var area in areaInfos) 
             {
             {