Browse Source

处理字段返回错误

Li 2 years ago
parent
commit
2dabf857ad
1 changed files with 3 additions and 3 deletions
  1. 3 3
      TEAMModelBI/Controllers/BISchool/SchoolController.cs

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

@@ -1668,7 +1668,7 @@ namespace TEAMModelBI.Controllers.BISchool
             int interAll = 0;    //所有互动总数
             int lastDayInterCnt = 0;   // 昨天课例互动
             int interCnt = 0;   // 今天课例互动
-            int lastYarInterCnt = 0;   // 去年课例互动
+            int lastYearInterCnt = 0;   // 去年课例互动
             int yearInterCnt = 0;   // 今年课例互动
 
             int actAllCnt = 0;   //所有活动
@@ -1708,7 +1708,7 @@ namespace TEAMModelBI.Controllers.BISchool
             interCnt = await CommonFind.GetSqlValueCount(cosmosClient, "School", dayInterSql);
 
             string lastYarInterSql = $"{strInterSql} and c.startTime >= { lastYears} and c.startTime <= {lastYeare} ";
-            lastYarInterCnt = await CommonFind.GetSqlValueCount(cosmosClient, "School", lastYarInterSql);
+            lastYearInterCnt = await CommonFind.GetSqlValueCount(cosmosClient, "School", lastYarInterSql);
 
             string yearInterSql = $"{strInterSql} and c.startTime >= { years} and c.startTime <= {yeare} ";
             yearInterCnt = await CommonFind.GetSqlValueCount(cosmosClient, "School", yearInterSql);
@@ -1729,7 +1729,7 @@ namespace TEAMModelBI.Controllers.BISchool
             string yearActSql = $" and {scSql} and c.createTime >= {years} and c.createTime <= {yeare}";
             yearActCn = await ActivityWay.GetCnt(cosmosClient, yearActSql);
 
-            return Ok(new { state = RespondCode.Ok, lessAll, lessLastdayCnt, lessDayCnt, lessLastYearCnt, lessYearCnt, interAll, lastDayInterCnt, interCnt, lastYarInterCnt, yearInterCnt, actAllCnt, lastActCnt, actCnt, lastYearActCn, yearActCn });
+            return Ok(new { state = RespondCode.Ok, lessAll, lessLastdayCnt, lessDayCnt, lessLastYearCnt, lessYearCnt, interAll, lastDayInterCnt, interCnt, lastYearInterCnt, yearInterCnt, actAllCnt, lastActCnt, actCnt, lastYearActCn, yearActCn });
         }
 
         /// <summary>