|
@@ -91,9 +91,9 @@ namespace TEAMModelBI.Controllers.BIHome
|
|
|
todayTchCnt = await CommonFind.GetSqlValueCount(cosmosClient, "Teacher", addSql, "Base");
|
|
|
todayStuCnt = await CommonFind.GetSqlValueCount(cosmosClient, "Student", addSql, "Base");
|
|
|
|
|
|
- string onStuSql = $"select value(count(c.id)) from c join t in c.loginInfos where array_length(c.loginInfos) > 0 and t.expire > {hour1}";
|
|
|
- onTchCnt = await CommonFind.GetSqlValueCount(cosmosClient, "Teacher", onStuSql, "Base");
|
|
|
- onStuCnt = await CommonFind.GetSqlValueCount(cosmosClient, "Student", onStuSql, "Base");
|
|
|
+ string onStuSql = $"select value(count(c.id)) from c join t in c.loginInfos where array_length(c.loginInfos) > 0 and t.expire > {hour1} and c.pk='Base'";
|
|
|
+ onTchCnt = await CommonFind.GetSqlValueCount(cosmosClient, "Teacher", onStuSql);
|
|
|
+ onStuCnt = await CommonFind.GetSqlValueCount(cosmosClient, "Student", onStuSql);
|
|
|
|
|
|
//接口访问量
|
|
|
List<RecCnt> recCnts = new();
|