|
@@ -652,11 +652,11 @@ namespace TEAMModeBI.Controllers.BISchool
|
|
|
if (!jsonElement.TryGetProperty("period", out JsonElement period)) return BadRequest();
|
|
|
if (!jsonElement.TryGetProperty("picture", out JsonElement picture)) return BadRequest();
|
|
|
if (!jsonElement.TryGetProperty("size", out JsonElement size)) return BadRequest();
|
|
|
- if (!jsonElement.TryGetProperty("teacherId", out JsonElement teacherId)) return BadRequest();
|
|
|
+ if (!jsonElement.TryGetProperty("assistId", out JsonElement _assistId)) return BadRequest();
|
|
|
if (!jsonElement.TryGetProperty("tmdId", out JsonElement _tmdId)) return BadRequest();
|
|
|
if (!jsonElement.TryGetProperty("tmdName", out JsonElement _tmdName)) return BadRequest();
|
|
|
|
|
|
- List<string> teacherID = teacherId.ToObject<List<string>>();
|
|
|
+ List<string> assistId = _assistId.ToObject<List<string>>();
|
|
|
List<string> periodS = period.ToObject<List<string>>();
|
|
|
|
|
|
SchoolAssist schoolAssist = new();
|
|
@@ -672,7 +672,7 @@ namespace TEAMModeBI.Controllers.BISchool
|
|
|
platformSource = "BI",
|
|
|
tmdId = $"{_tmdId}",
|
|
|
tmdName = $"{_tmdName}",
|
|
|
- operateDescribe = $"{_tmdName}【{_tmdId}】已操作修改学校功能,修改的学校:{_schoolId},{period},{picture},{size},{teacherId}",
|
|
|
+ operateDescribe = $"{_tmdName}【{_tmdId}】已操作修改学校功能,修改的学校:{_schoolId},{period},{picture},{size},{assistId}",
|
|
|
visitApi = "batchschool/upd-schoolassist",
|
|
|
operateTime = DateTime.Now
|
|
|
};
|
|
@@ -695,9 +695,9 @@ namespace TEAMModeBI.Controllers.BISchool
|
|
|
//修改学校
|
|
|
await cosmosClient.GetContainer(Constant.TEAMModelOS, "School").ReplaceItemAsync<School>(tempShool, tempShool.id, new PartitionKey("Base"));
|
|
|
|
|
|
- if (teacherID.Count > 0)
|
|
|
+ if (assistId.Count > 0)
|
|
|
{
|
|
|
- foreach (var itemTeacher in teacherID)
|
|
|
+ foreach (var itemTeacher in assistId)
|
|
|
{
|
|
|
Teacher tempTeacher = await cosmosClient.GetContainer(Constant.TEAMModelOS, "Teacher").ReadItemAsync<Teacher>($"{itemTeacher}", new PartitionKey("Base"));
|
|
|
if (tempTeacher != null)
|