Browse Source

优化区域列表返回字段

Li 3 years ago
parent
commit
ec13b6ae7a
1 changed files with 5 additions and 2 deletions
  1. 5 2
      TEAMModelBI/Controllers/BISchool/BatchAreaController.cs

+ 5 - 2
TEAMModelBI/Controllers/BISchool/BatchAreaController.cs

@@ -67,7 +67,7 @@ namespace TEAMModelBI.Controllers.BISchool
 
                 foreach (var area in tempAreas) 
                 {
-                    RecArea recArea = new() { id = area.id, code = area.code, pk = area.pk, name = area.name, provCode = area.provCode, provName = area.provName, cityCode = area.cityCode, cityName = area.cityName, standard = area.standard, standardName = area.standardName};
+                    RecArea recArea = new() { id = area.id, code = area.code, pk = area.pk, name = area.name, provCode = area.provCode, provName = area.provName, cityCode = area.cityCode, cityName = area.cityName, standard = area.standard, standardName = area.standardName, institution = area.institution };
                     recArea.schoolCount = await CommonFind.FindTotals(azureClient, $"select count(c.id) as totals from c where c.areaId='{area.id}' and c.standard='{area.standard}'", "School", "Base");
                     areas.Add(recArea);
                 }
@@ -686,7 +686,9 @@ namespace TEAMModelBI.Controllers.BISchool
             }
         }
 
-
+        /// <summary>
+        /// 区域列表
+        /// </summary>
         public record RecArea 
         {
             public string id { get; set; }
@@ -699,6 +701,7 @@ namespace TEAMModelBI.Controllers.BISchool
             public string cityName { get; set; }
             public string standard { get; set; }
             public string standardName { get; set; }
+            public string institution { get; set; }
             public int schoolCount { get; set; }
         }