소스 검색

优化区域统计获取失败

Li 3 년 전
부모
커밋
3657f70b4b
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  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) 
             {