Li 2 年之前
父节点
当前提交
cae2d1cb7b
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      TEAMModelBI/Controllers/BINormal/BatchAreaController.cs

+ 2 - 1
TEAMModelBI/Controllers/BINormal/BatchAreaController.cs

@@ -154,7 +154,8 @@ namespace TEAMModelBI.Controllers.BINormal
 
 
                 foreach (var area in areas)
                 foreach (var area in areas)
                 {
                 {
-                    area.schoolCount = await CommonFind.GetSqlValueCount(cosmosClient, "School", $"select value(count(c.id)) from c where c.areaId='{area.id}' and c.standard='{area.standard}'", "Base");
+                    //select value(count(c.id)) from c where c.areaId='{area.id}' and c.standard='{area.standard}'
+                    area.schoolCount = await CommonFind.GetSqlValueCount(cosmosClient, "School", $"select value(count(c.id)) from c where c.areaId='{area.id}'", "Base");
 
 
                     area.aquoteRec = await table.QueryWhereString<AreaQuoteRecord>($"PartitionKey eq 'QuoteRecord' and  areaId eq '{area.id}'");
                     area.aquoteRec = await table.QueryWhereString<AreaQuoteRecord>($"PartitionKey eq 'QuoteRecord' and  areaId eq '{area.id}'");
                     //List<AreaQuoteRecord> aqr = await table.QueryWhereString<AreaQuoteRecord>($"PartitionKey eq 'QuoteRecord' and  areaId eq '{area.id}'");
                     //List<AreaQuoteRecord> aqr = await table.QueryWhereString<AreaQuoteRecord>($"PartitionKey eq 'QuoteRecord' and  areaId eq '{area.id}'");