Browse Source

1,创校字段字符修改,
2。整理BI统计数据结构雏形

Li 2 years ago
parent
commit
615e7f6a11

+ 1 - 1
TEAMModelBI/Controllers/BISchool/BatchSchoolController.cs

@@ -1760,7 +1760,7 @@ namespace TEAMModelBI.Controllers.BISchool
         /// </summary>
         public record PeriodType
         {
-            public List<string> pidType { get; set; }
+            public string pidType { get; set; }
             public string pidName { get; set; }
         }
 

+ 17 - 1
TEAMModelBI/Controllers/Census/SchoolController.cs

@@ -388,12 +388,13 @@ namespace TEAMModelBI.Controllers.Census
 
             return Ok(new { state = 200, scCnt=scIds.Count(), tLessCnt, tActCnt });
         }
-        
+
         /// <summary>
         /// 未加区的学校统计
         /// </summary>
         /// <param name="jsonElement"></param>
         /// <returns></returns>
+        [ProducesDefaultResponseType]
         [HttpPost("get-noareasc")]
         public async Task<IActionResult> GetNoAareaScCnt(JsonElement jsonElement)
         {
@@ -484,6 +485,21 @@ namespace TEAMModelBI.Controllers.Census
             return Ok(new { state = RespondCode.Ok, scCnt = scIds.Count, tchCnt, stuCnt, allCnt = tLessCnt + tActCnt, tLessCnt, tActCnt});
         }
 
+        /// <summary>
+        /// 学校统计
+        /// </summary>
+        /// <param name="jsonElement"></param>
+        /// <returns></returns>
+        [ProducesDefaultResponseType]
+        [HttpPost("get-scstats")]
+        public async Task<IActionResult> GetSchoolStats(JsonElement jsonElement) 
+        {
+            if (!jsonElement.TryGetProperty("scId", out JsonElement scId)) return BadRequest(); 
+
+
+            return Ok(new { state = RespondCode.Ok});
+        }
+
 
         /// <summary>
         /// 依据Id查询School容器  数据管理工具——查询工具

+ 16 - 0
TEAMModelOS.SDK/Models/Cosmos/BI/StateInfo.cs

@@ -0,0 +1,16 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace TEAMModelOS.SDK.Models.Cosmos.BI
+{
+    public class StateInfo : CosmosEntity
+    {
+        //pk   Stats
+        //code   Stats-hbcn  Stats-学校id   Stats-学区id
+
+
+    }
+}