|
@@ -217,14 +217,14 @@ namespace TEAMModelFunction
|
|
|
await client.GetContainer("TEAMModelOS", "Student").UpsertItemAsync(stucourse, new PartitionKey(stucourse.code));
|
|
|
}
|
|
|
//移除名单的。 在点击相关的课程,再去二次校验是否存在,不存在则再去删除。
|
|
|
- foreach (var delStu in stuListChange.stuleave)
|
|
|
- {
|
|
|
- await client.GetContainer("TEAMModelOS", "Student").DeleteItemStreamAsync(course.id, new PartitionKey($"StuCourse-{delStu.code.Replace("Base-", "")}-{delStu.id}"));
|
|
|
- }
|
|
|
- foreach (var delTmd in stuListChange.tmdhleave)
|
|
|
- {
|
|
|
- await client.GetContainer("TEAMModelOS", "Student").DeleteItemStreamAsync(course.id, new PartitionKey($"StuCourse-{delTmd}"));
|
|
|
- }
|
|
|
+ //foreach (var delStu in stuListChange.stuleave)
|
|
|
+ //{
|
|
|
+ // await client.GetContainer("TEAMModelOS", "Student").DeleteItemStreamAsync(course.id, new PartitionKey($"StuCourse-{delStu.code.Replace("Base-", "")}-{delStu.id}"));
|
|
|
+ //}
|
|
|
+ //foreach (var delTmd in stuListChange.tmdhleave)
|
|
|
+ //{
|
|
|
+ // await client.GetContainer("TEAMModelOS", "Student").DeleteItemStreamAsync(course.id, new PartitionKey($"StuCourse-{delTmd}"));
|
|
|
+ //}
|
|
|
}
|
|
|
}
|
|
|
|