Browse Source

优化区域统计获取失败

Li 3 năm trước cách đây
mục cha
commit
3657f70b4b
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  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 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) 
             {