|
@@ -180,39 +180,43 @@ namespace TEAMModelBI.Controllers.BISchool
|
|
try
|
|
try
|
|
{
|
|
{
|
|
var cosmosClient = _azureCosmos.GetCosmosClient();
|
|
var cosmosClient = _azureCosmos.GetCosmosClient();
|
|
|
|
+ var partitionKeys = new List<string>{"Base","VirtualBase"};
|
|
//StringBuilder sqltxt = new($"SELECT c.id,c.name,c.schoolCode,c.province,c.city,c.dist,c.picture,c.period,c.areaId,c.standard,c.manyAreas FROM c WHERE c.pk='School' and (c.areaId = '' or c.areaId = null or IS_DEFINED(c.areaId) = false)");
|
|
//StringBuilder sqltxt = new($"SELECT c.id,c.name,c.schoolCode,c.province,c.city,c.dist,c.picture,c.period,c.areaId,c.standard,c.manyAreas FROM c WHERE c.pk='School' and (c.areaId = '' or c.areaId = null or IS_DEFINED(c.areaId) = false)");
|
|
string sqltxt = $"SELECT value(c) FROM c WHERE (c.areaId = '' or c.areaId = null or IS_DEFINED(c.areaId) = false)";
|
|
string sqltxt = $"SELECT value(c) FROM c WHERE (c.areaId = '' or c.areaId = null or IS_DEFINED(c.areaId) = false)";
|
|
List<NotAreaSchool> notAreaSchools = new();
|
|
List<NotAreaSchool> notAreaSchools = new();
|
|
- await foreach (var item in cosmosClient.GetContainer(Constant.TEAMModelOS, "School").GetItemQueryStreamIterator(queryText: sqltxt, requestOptions: new QueryRequestOptions() { PartitionKey = new PartitionKey("Base") }))
|
|
|
|
|
|
+ foreach (string pk in partitionKeys)
|
|
{
|
|
{
|
|
- using var json = await JsonDocument.ParseAsync(item.ContentStream);
|
|
|
|
- if (json.RootElement.TryGetProperty("_count", out JsonElement count) && count.GetUInt16() > 0)
|
|
|
|
|
|
+ await foreach (var item in cosmosClient.GetContainer(Constant.TEAMModelOS, "School").GetItemQueryStreamIterator(queryText: sqltxt, requestOptions: new QueryRequestOptions() { PartitionKey = new PartitionKey($"{pk}") }))
|
|
{
|
|
{
|
|
- foreach (var obj in json.RootElement.GetProperty("Documents").EnumerateArray())
|
|
|
|
|
|
+ using var json = await JsonDocument.ParseAsync(item.ContentStream);
|
|
|
|
+ if (json.RootElement.TryGetProperty("_count", out JsonElement count) && count.GetUInt16() > 0)
|
|
{
|
|
{
|
|
- NotAreaSchool notAreaSchool = new()
|
|
|
|
- {
|
|
|
|
- id = obj.GetProperty("id").GetString(),
|
|
|
|
- name = obj.GetProperty("name").GetString(),
|
|
|
|
- schoolCode = obj.GetProperty("schoolCode").GetString(),
|
|
|
|
- picture = obj.GetProperty("picture").GetString(),
|
|
|
|
- period = obj.GetProperty("period").ToObject<List<Period>>().Select(x => x.name).ToList(),
|
|
|
|
- province = obj.GetProperty("province").GetString(),
|
|
|
|
- city = obj.GetProperty("city").GetString()
|
|
|
|
- };
|
|
|
|
- try
|
|
|
|
|
|
+ foreach (var obj in json.RootElement.GetProperty("Documents").EnumerateArray())
|
|
{
|
|
{
|
|
- notAreaSchool.dist = obj.GetProperty("dist").GetString();
|
|
|
|
- notAreaSchool.areaId = obj.GetProperty("areaId").GetString();
|
|
|
|
- notAreaSchool.standard = obj.GetProperty("standard").GetString();
|
|
|
|
- notAreaSchool.areas = obj.GetProperty("manyAreas").ToObject<List<SchoolArea>>();
|
|
|
|
|
|
+ NotAreaSchool notAreaSchool = new()
|
|
|
|
+ {
|
|
|
|
+ code = obj.GetProperty("code").GetString(),
|
|
|
|
+ id = obj.GetProperty("id").GetString(),
|
|
|
|
+ name = obj.GetProperty("name").GetString(),
|
|
|
|
+ schoolCode = obj.GetProperty("schoolCode").GetString(),
|
|
|
|
+ picture = obj.GetProperty("picture").GetString(),
|
|
|
|
+ period = obj.GetProperty("period").ToObject<List<Period>>().Select(x => x.name).ToList(),
|
|
|
|
+ province = obj.GetProperty("province").GetString(),
|
|
|
|
+ city = obj.GetProperty("city").GetString()
|
|
|
|
+ };
|
|
|
|
+ try
|
|
|
|
+ {
|
|
|
|
+ notAreaSchool.dist = obj.GetProperty("dist").GetString();
|
|
|
|
+ notAreaSchool.areaId = obj.GetProperty("areaId").GetString();
|
|
|
|
+ notAreaSchool.standard = obj.GetProperty("standard").GetString();
|
|
|
|
+ notAreaSchool.areas = obj.GetProperty("manyAreas").ToObject<List<SchoolArea>>();
|
|
|
|
+ }
|
|
|
|
+ catch { }
|
|
|
|
+ notAreaSchools.Add(notAreaSchool);
|
|
}
|
|
}
|
|
- catch { }
|
|
|
|
- notAreaSchools.Add(notAreaSchool);
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
return Ok(new { state = 200, notAreaSchools });
|
|
return Ok(new { state = 200, notAreaSchools });
|
|
}
|
|
}
|
|
catch (Exception ex)
|
|
catch (Exception ex)
|
|
@@ -239,6 +243,7 @@ namespace TEAMModelBI.Controllers.BISchool
|
|
if (!jsonElement.TryGetProperty("areaId", out JsonElement _areaId)) return BadRequest();
|
|
if (!jsonElement.TryGetProperty("areaId", out JsonElement _areaId)) return BadRequest();
|
|
jsonElement.TryGetProperty("areaName", out JsonElement areaName);
|
|
jsonElement.TryGetProperty("areaName", out JsonElement areaName);
|
|
jsonElement.TryGetProperty("isDefault", out JsonElement isDefault);
|
|
jsonElement.TryGetProperty("isDefault", out JsonElement isDefault);
|
|
|
|
+ List<string> codes = (jsonElement.TryGetProperty("code", out JsonElement codeJobj)) ? codeJobj.ToObject<List<string>>() : new List<string>();
|
|
//jsonElement.TryGetProperty("site", out JsonElement site); //分开部署,就不需要,一站多用时,取消注释
|
|
//jsonElement.TryGetProperty("site", out JsonElement site); //分开部署,就不需要,一站多用时,取消注释
|
|
var isManyArea = false;
|
|
var isManyArea = false;
|
|
if (!string.IsNullOrEmpty($"{isDefault}"))
|
|
if (!string.IsNullOrEmpty($"{isDefault}"))
|
|
@@ -246,6 +251,13 @@ namespace TEAMModelBI.Controllers.BISchool
|
|
|
|
|
|
var (_tmdId, _tmdName, pic, did, dname, dpic) = HttpJwtAnalysis.JwtXAuthBI(HttpContext.GetXAuth("AuthToken"), _option);
|
|
var (_tmdId, _tmdName, pic, did, dname, dpic) = HttpJwtAnalysis.JwtXAuthBI(HttpContext.GetXAuth("AuthToken"), _option);
|
|
List<string> schoolCodes = _schoolCode.ToObject<List<string>>();
|
|
List<string> schoolCodes = _schoolCode.ToObject<List<string>>();
|
|
|
|
+ if(schoolCodes.Count > 0 && codes.Count.Equals(0)) //分區鍵值初始化
|
|
|
|
+ {
|
|
|
|
+ for (int i = 0; i < schoolCodes.Count; i++)
|
|
|
|
+ {
|
|
|
|
+ codes.Add("Base");
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
|
|
StringBuilder msg = new($"{_tmdName}【{_tmdId}】操作学校加入区域功能,加入的区域:{standard},学校ID:{string.Join("|", schoolCodes.ToArray())}");
|
|
StringBuilder msg = new($"{_tmdName}【{_tmdId}】操作学校加入区域功能,加入的区域:{standard},学校ID:{string.Join("|", schoolCodes.ToArray())}");
|
|
var cosmosClient = _azureCosmos.GetCosmosClient();
|
|
var cosmosClient = _azureCosmos.GetCosmosClient();
|
|
@@ -272,7 +284,9 @@ namespace TEAMModelBI.Controllers.BISchool
|
|
{
|
|
{
|
|
foreach (var tempCode in schoolCodes)
|
|
foreach (var tempCode in schoolCodes)
|
|
{
|
|
{
|
|
- School school = await cosmosClient.GetContainer(Constant.TEAMModelOS, "School").ReadItemAsync<School>(tempCode, new PartitionKey("Base"));
|
|
|
|
|
|
+ int index = schoolCodes.IndexOf(tempCode);
|
|
|
|
+ string code = codes[index];
|
|
|
|
+ School school = await cosmosClient.GetContainer(Constant.TEAMModelOS, "School").ReadItemAsync<School>(tempCode, new PartitionKey($"{code}"));
|
|
if (school != null)
|
|
if (school != null)
|
|
{
|
|
{
|
|
if (isManyArea)
|
|
if (isManyArea)
|
|
@@ -311,7 +325,10 @@ namespace TEAMModelBI.Controllers.BISchool
|
|
await cosmosClient.GetContainer("TEAMModelOS", "Teacher").ReplaceItemAsync<Teacher>(item, item.id, new PartitionKey("Base"));
|
|
await cosmosClient.GetContainer("TEAMModelOS", "Teacher").ReplaceItemAsync<Teacher>(item, item.id, new PartitionKey("Base"));
|
|
}
|
|
}
|
|
await cosmosClient.GetContainer(Constant.TEAMModelOS, "School").ReplaceItemAsync<School>(school, school.id, new PartitionKey(school.code));
|
|
await cosmosClient.GetContainer(Constant.TEAMModelOS, "School").ReplaceItemAsync<School>(school, school.id, new PartitionKey(school.code));
|
|
- await BIStats.SetSchoolBIRelation(cosmosClient, blobClient, tableClient, _dingDing, school);
|
|
|
|
|
|
+ if (school.code.Equals("Base"))
|
|
|
|
+ {
|
|
|
|
+ await BIStats.SetSchoolBIRelation(cosmosClient, blobClient, tableClient, _dingDing, school);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -352,7 +369,7 @@ namespace TEAMModelBI.Controllers.BISchool
|
|
{
|
|
{
|
|
schoolAssists = itemSchool;
|
|
schoolAssists = itemSchool;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+ //IES5實體學校
|
|
if (schoolAssists.id != null)
|
|
if (schoolAssists.id != null)
|
|
{
|
|
{
|
|
var response = await cosmosClient.GetContainer("TEAMModelOS", "School").ReadItemStreamAsync(schoolAssists.id, new PartitionKey("ProductSum"));
|
|
var response = await cosmosClient.GetContainer("TEAMModelOS", "School").ReadItemStreamAsync(schoolAssists.id, new PartitionKey("ProductSum"));
|
|
@@ -378,8 +395,16 @@ namespace TEAMModelBI.Controllers.BISchool
|
|
|
|
|
|
return Ok(new { state = 200, schoolAssists });
|
|
return Ok(new { state = 200, schoolAssists });
|
|
}
|
|
}
|
|
- else return Ok(new { state = 404, msg = "未找到该学校!" });
|
|
|
|
-
|
|
|
|
|
|
+ //無實體學校 => 取得虛擬學校
|
|
|
|
+ else
|
|
|
|
+ {
|
|
|
|
+ await foreach (var itemSchool in cosmosClient.GetContainer("TEAMModelOS", "School").GetItemQueryIterator<AssistSchool>(queryText: sqlTxt, requestOptions: new QueryRequestOptions() { PartitionKey = new PartitionKey("VirtualBase") }))
|
|
|
|
+ {
|
|
|
|
+ schoolAssists = itemSchool;
|
|
|
|
+ }
|
|
|
|
+ if (schoolAssists.id != null) return Ok(new { state = 200, schoolAssists });
|
|
|
|
+ else return Ok(new { state = 404, msg = "未找到该学校!" });
|
|
|
|
+ }
|
|
}
|
|
}
|
|
catch (Exception ex)
|
|
catch (Exception ex)
|
|
{
|
|
{
|
|
@@ -1033,6 +1058,14 @@ namespace TEAMModelBI.Controllers.BISchool
|
|
var cosmosClient = _azureCosmos.GetCosmosClient();
|
|
var cosmosClient = _azureCosmos.GetCosmosClient();
|
|
var tableClient = _azureStorage.GetCloudTableClient();
|
|
var tableClient = _azureStorage.GetCloudTableClient();
|
|
var blobClient = _azureStorage.GetBlobContainerClient(containerName: "0-public");
|
|
var blobClient = _azureStorage.GetBlobContainerClient(containerName: "0-public");
|
|
|
|
+ List<string> codes = (jsonElement.TryGetProperty("code", out JsonElement codeJobj)) ? codeJobj.ToObject<List<string>>() : new List<string>();
|
|
|
|
+ if (schools.Count > 0 && codes.Count.Equals(0)) //分區鍵值初始化
|
|
|
|
+ {
|
|
|
|
+ for (int i = 0; i < schools.Count; i++)
|
|
|
|
+ {
|
|
|
|
+ codes.Add("Base");
|
|
|
|
+ }
|
|
|
|
+ }
|
|
////分开部署,就不需要,一站多用时,取消注释
|
|
////分开部署,就不需要,一站多用时,取消注释
|
|
//if ($"{site}".Equals(BIConst.Global))
|
|
//if ($"{site}".Equals(BIConst.Global))
|
|
//{
|
|
//{
|
|
@@ -1045,66 +1078,81 @@ namespace TEAMModelBI.Controllers.BISchool
|
|
|
|
|
|
foreach (var tempId in schools)
|
|
foreach (var tempId in schools)
|
|
{
|
|
{
|
|
- List<string> scTchIds = new();
|
|
|
|
- List<string> scStuIds = new();
|
|
|
|
- string scTecSql = $"select value(c.id) from c where ARRAY_LENGTH(c.roles) > 0 and c.status = 'join'";
|
|
|
|
- await foreach (var item in cosmosClient.GetContainer("TEAMModelOS", "School").GetItemQueryIterator<string>(queryText: scTecSql, requestOptions: new QueryRequestOptions() { PartitionKey = new PartitionKey($"Teacher-{tempId}") }))
|
|
|
|
|
|
+ int index = schools.IndexOf(tempId);
|
|
|
|
+ string code = codes[index];
|
|
|
|
+ //IES5實體學校刪除
|
|
|
|
+ if (!code.Equals("VirtualBase"))
|
|
{
|
|
{
|
|
- scTchIds.Add(item);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- string scStuSql = $"select value(c.id) from c";
|
|
|
|
- await foreach (var item in cosmosClient.GetContainer("TEAMModelOS", "Student").GetItemQueryIterator<string>(queryText: scStuSql, requestOptions: new QueryRequestOptions() { PartitionKey = new PartitionKey($"Base-{tempId}") }))
|
|
|
|
- {
|
|
|
|
- scStuIds.Add(item);
|
|
|
|
- }
|
|
|
|
|
|
+ List<string> scTchIds = new();
|
|
|
|
+ List<string> scStuIds = new();
|
|
|
|
+ string scTecSql = $"select value(c.id) from c where ARRAY_LENGTH(c.roles) > 0 and c.status = 'join'";
|
|
|
|
+ await foreach (var item in cosmosClient.GetContainer("TEAMModelOS", "School").GetItemQueryIterator<string>(queryText: scTecSql, requestOptions: new QueryRequestOptions() { PartitionKey = new PartitionKey($"Teacher-{tempId}") }))
|
|
|
|
+ {
|
|
|
|
+ scTchIds.Add(item);
|
|
|
|
+ }
|
|
|
|
|
|
- var response = await cosmosClient.GetContainer("TEAMModelOS", "School").DeleteItemStreamAsync($"{tempId}", new PartitionKey($"Base"));
|
|
|
|
- if (response.Status == 204)
|
|
|
|
- msg.AppendLine($"{tmdName}【{tmdId}】删除学校,删除状态:{response.Status},删除ID:{tempId}");
|
|
|
|
- else
|
|
|
|
- delSchoolRels.Add(new DelSchoolRel() { id = $"{tempId}", code = "Base", type = 1, status = response.Status });
|
|
|
|
|
|
+ string scStuSql = $"select value(c.id) from c";
|
|
|
|
+ await foreach (var item in cosmosClient.GetContainer("TEAMModelOS", "Student").GetItemQueryIterator<string>(queryText: scStuSql, requestOptions: new QueryRequestOptions() { PartitionKey = new PartitionKey($"Base-{tempId}") }))
|
|
|
|
+ {
|
|
|
|
+ scStuIds.Add(item);
|
|
|
|
+ }
|
|
|
|
|
|
- //删除学校信息中间
|
|
|
|
- var resBiRel = await cosmosClient.GetContainer("TEAMModelOS", "School").DeleteItemStreamAsync($"{tempId}", new PartitionKey($"BIRel"));
|
|
|
|
- if (resBiRel.Status == 204)
|
|
|
|
- msg.AppendLine($"{tmdName}【{tmdId}】删除学校信息中间件,删除状态:{resBiRel.Status},删除ID:{tempId}");
|
|
|
|
- else
|
|
|
|
- delSchoolRels.Add(new DelSchoolRel() { id = $"{tempId}", code = "Base", type = 1, status = response.Status });
|
|
|
|
|
|
+ var response = await cosmosClient.GetContainer("TEAMModelOS", "School").DeleteItemStreamAsync($"{tempId}", new PartitionKey($"Base"));
|
|
|
|
+ if (response.Status == 204)
|
|
|
|
+ msg.AppendLine($"{tmdName}【{tmdId}】删除学校,删除状态:{response.Status},删除ID:{tempId}");
|
|
|
|
+ else
|
|
|
|
+ delSchoolRels.Add(new DelSchoolRel() { id = $"{tempId}", code = "Base", type = 1, status = response.Status });
|
|
|
|
|
|
- foreach (var item in scTchIds)
|
|
|
|
- {
|
|
|
|
- //学校教师信息
|
|
|
|
- var tchRespnse = await cosmosClient.GetContainer("TEAMModelOS", "School").DeleteItemStreamAsync($"{item}", new PartitionKey($"Teacher-{tempId}"));
|
|
|
|
- if (tchRespnse.Status == 204)
|
|
|
|
- msg.AppendLine($"删除教师,删除状态:{tchRespnse.Status},删除ID:{item}");
|
|
|
|
|
|
+ //删除学校信息中间
|
|
|
|
+ var resBiRel = await cosmosClient.GetContainer("TEAMModelOS", "School").DeleteItemStreamAsync($"{tempId}", new PartitionKey($"BIRel"));
|
|
|
|
+ if (resBiRel.Status == 204)
|
|
|
|
+ msg.AppendLine($"{tmdName}【{tmdId}】删除学校信息中间件,删除状态:{resBiRel.Status},删除ID:{tempId}");
|
|
else
|
|
else
|
|
- delSchoolRels.Add(new DelSchoolRel() { id = $"{item}", code = $"Teacher-{tempId}", type = 2, status = response.Status });
|
|
|
|
|
|
+ delSchoolRels.Add(new DelSchoolRel() { id = $"{tempId}", code = "Base", type = 1, status = response.Status });
|
|
|
|
|
|
- //教师基础信息
|
|
|
|
- var tchBaseResponse = await cosmosClient.GetContainer("TEAMModelOS", "Teacher").ReadItemStreamAsync($"{item}", new PartitionKey("Base"));
|
|
|
|
- if (tchBaseResponse.Status == 200)
|
|
|
|
|
|
+ foreach (var item in scTchIds)
|
|
{
|
|
{
|
|
- using var json = await JsonDocument.ParseAsync(tchBaseResponse.ContentStream);
|
|
|
|
- Teacher teacher = json.ToObject<Teacher>();
|
|
|
|
- var tempSc = teacher.schools.Find(f => f.schoolId.Equals($"{tempId}"));
|
|
|
|
- if (tempSc != null)
|
|
|
|
|
|
+ //学校教师信息
|
|
|
|
+ var tchRespnse = await cosmosClient.GetContainer("TEAMModelOS", "School").DeleteItemStreamAsync($"{item}", new PartitionKey($"Teacher-{tempId}"));
|
|
|
|
+ if (tchRespnse.Status == 204)
|
|
|
|
+ msg.AppendLine($"删除教师,删除状态:{tchRespnse.Status},删除ID:{item}");
|
|
|
|
+ else
|
|
|
|
+ delSchoolRels.Add(new DelSchoolRel() { id = $"{item}", code = $"Teacher-{tempId}", type = 2, status = response.Status });
|
|
|
|
+
|
|
|
|
+ //教师基础信息
|
|
|
|
+ var tchBaseResponse = await cosmosClient.GetContainer("TEAMModelOS", "Teacher").ReadItemStreamAsync($"{item}", new PartitionKey("Base"));
|
|
|
|
+ if (tchBaseResponse.Status == 200)
|
|
{
|
|
{
|
|
- teacher.schools.Remove(tempSc);
|
|
|
|
- await cosmosClient.GetContainer("TEAMModelOS", "Teacher").ReplaceItemAsync<Teacher>(teacher, teacher.id, new PartitionKey("Base"));
|
|
|
|
|
|
+ using var json = await JsonDocument.ParseAsync(tchBaseResponse.ContentStream);
|
|
|
|
+ Teacher teacher = json.ToObject<Teacher>();
|
|
|
|
+ var tempSc = teacher.schools.Find(f => f.schoolId.Equals($"{tempId}"));
|
|
|
|
+ if (tempSc != null)
|
|
|
|
+ {
|
|
|
|
+ teacher.schools.Remove(tempSc);
|
|
|
|
+ await cosmosClient.GetContainer("TEAMModelOS", "Teacher").ReplaceItemAsync<Teacher>(teacher, teacher.id, new PartitionKey("Base"));
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
+ else
|
|
|
|
+ delSchoolRels.Add(new DelSchoolRel { id = $"{item}", code = "Base", type = 2, status = response.Status });
|
|
|
|
+ }
|
|
|
|
+ //删除学校学生
|
|
|
|
+ foreach (var item in scStuIds)
|
|
|
|
+ {
|
|
|
|
+ var stuRespnse = await cosmosClient.GetContainer("TEAMModelOS", "Student").DeleteItemStreamAsync($"{item}", new PartitionKey($"Base-{tempId}"));
|
|
|
|
+ if (stuRespnse.Status == 204)
|
|
|
|
+ msg.AppendLine($"删除学生,删除状态:{stuRespnse.Status},删除ID:{item}");
|
|
|
|
+ else
|
|
|
|
+ delSchoolRels.Add(new DelSchoolRel() { id = $"{item}", code = $"Base-{tempId}", type = 3, status = response.Status });
|
|
}
|
|
}
|
|
- else
|
|
|
|
- delSchoolRels.Add(new DelSchoolRel { id = $"{item}", code = "Base", type = 2, status = response.Status });
|
|
|
|
}
|
|
}
|
|
- //删除学校学生
|
|
|
|
- foreach (var item in scStuIds)
|
|
|
|
|
|
+ //虛擬學校刪除
|
|
|
|
+ else
|
|
{
|
|
{
|
|
- var stuRespnse = await cosmosClient.GetContainer("TEAMModelOS", "Student").DeleteItemStreamAsync($"{item}", new PartitionKey($"Base-{tempId}"));
|
|
|
|
- if (stuRespnse.Status == 204)
|
|
|
|
- msg.AppendLine($"删除学生,删除状态:{stuRespnse.Status},删除ID:{item}");
|
|
|
|
|
|
+ var response = await cosmosClient.GetContainer("TEAMModelOS", "School").DeleteItemStreamAsync($"{tempId}", new PartitionKey($"VirtualBase"));
|
|
|
|
+ if (response.Status == 204)
|
|
|
|
+ msg.AppendLine($"{tmdName}【{tmdId}】删除学校,删除状态:{response.Status},删除ID:{tempId}");
|
|
else
|
|
else
|
|
- delSchoolRels.Add(new DelSchoolRel() { id = $"{item}", code = $"Base-{tempId}", type = 3, status = response.Status });
|
|
|
|
|
|
+ delSchoolRels.Add(new DelSchoolRel() { id = $"{tempId}", code = "VirtualBase", type = 1, status = response.Status });
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -2388,6 +2436,7 @@ namespace TEAMModelBI.Controllers.BISchool
|
|
/// </summary>
|
|
/// </summary>
|
|
public record NotAreaSchool
|
|
public record NotAreaSchool
|
|
{
|
|
{
|
|
|
|
+ public string code { get; set; }
|
|
public string id { get; set; }
|
|
public string id { get; set; }
|
|
public string name { get; set; }
|
|
public string name { get; set; }
|
|
public string schoolCode { get; set; }
|
|
public string schoolCode { get; set; }
|