Li 2 years ago
parent
commit
cae2d1cb7b
1 changed files with 2 additions and 1 deletions
  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)
                 {
-                    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}'");
                     //List<AreaQuoteRecord> aqr = await table.QueryWhereString<AreaQuoteRecord>($"PartitionKey eq 'QuoteRecord' and  areaId eq '{area.id}'");