|
@@ -677,9 +677,11 @@ namespace TEAMModelBI.Controllers.BISchool
|
|
|
jsonElement.TryGetProperty("scAreaId", out JsonElement scAreaId);
|
|
|
jsonElement.TryGetProperty("scPic", out JsonElement scpicture);
|
|
|
//jsonElement.TryGetProperty("site", out JsonElement site);//分开部署,就不需要,一站多用时,取消注释
|
|
|
+
|
|
|
var cosmosClient = _azureCosmos.GetCosmosClient();
|
|
|
var tableClient = _azureStorage.GetCloudTableClient();
|
|
|
var blobClient = _azureStorage.GetBlobContainerClient(containerName: "0-public");
|
|
|
+
|
|
|
////分开部署,就不需要,一站多用时,取消注释
|
|
|
//if ($"{site}".Equals(BIConst.Global))
|
|
|
//{
|
|
@@ -1599,7 +1601,6 @@ namespace TEAMModelBI.Controllers.BISchool
|
|
|
var (years, yeare) = TimeHelper.GetStartOrEnd(dateTime, "year");
|
|
|
var (lastYears, lastYeare) = TimeHelper.GetStartOrEnd(dateTime, "lastYear");
|
|
|
|
|
|
-
|
|
|
int lessAll = 0; //所以课例
|
|
|
int lessLastdayCnt = 0; //昨天的课例
|
|
|
int lessDayCnt = 0; //今天的课例
|
|
@@ -1636,11 +1637,9 @@ namespace TEAMModelBI.Controllers.BISchool
|
|
|
|
|
|
if (schoolIds.Count > 0)
|
|
|
{
|
|
|
-
|
|
|
string scSql = BICommonWay.ManyScSql("c.school", schoolIds);
|
|
|
|
|
|
string strSql = "SELECT value(count(c.id)) FROM c where c.pk='LessonRecord'";
|
|
|
-
|
|
|
//课例
|
|
|
lessAll = await CommonFind.GetSqlValueCount(cosmosClient, "School", $"{strSql} and {scSql}");
|
|
|
|