|
@@ -587,7 +587,7 @@ namespace TEAMModelBI.Controllers.Census
|
|
|
termActivity = await ActivityWay.GetCnt(cosmosClient, termSql);
|
|
|
|
|
|
string monthActSql = $" and c.createTime >= {monthS} and c.createTime <={monthE}";
|
|
|
- monthActCnt = await ActivityWay.GetCnt(cosmosClient, termSql);
|
|
|
+ monthActCnt = await ActivityWay.GetCnt(cosmosClient, monthActSql);
|
|
|
|
|
|
//课例
|
|
|
string allLessSql = $"select value(count(c.id)) from c where c.pk='LessonRecord'";
|
|
@@ -600,7 +600,7 @@ namespace TEAMModelBI.Controllers.Census
|
|
|
termLess = await CommonFind.GetSqlValueCount(cosmosClient, "School", termLSql);
|
|
|
|
|
|
string monthLSql = $"{allLessSql} and c.startTime >= {monthS} and c.startTime <={monthE}";
|
|
|
- monthLesCnt = await CommonFind.GetSqlValueCount(cosmosClient, "School", termLSql);
|
|
|
+ monthLesCnt = await CommonFind.GetSqlValueCount(cosmosClient, "School", monthLSql);
|
|
|
|
|
|
totalTime = await CommonFind.GetSqlValueCount(cosmosClient, "Teacher", "select value(sum(c.totalTime)) from c where c.pk='TeacherTrain'");
|
|
|
resourceCount = await CommonFind.GetSqlValueCount(cosmosClient, new List<string>() { "School", "Teacher" }, "select value(count(c.id)) from c where c.pk='Bloblog'");
|