|
@@ -237,12 +237,12 @@ namespace TEAMModelOS.Controllers
|
|
//List<IdPk> idPk = await _azureCosmos.DeleteAll<Course>(request);
|
|
//List<IdPk> idPk = await _azureCosmos.DeleteAll<Course>(request);
|
|
//await client.GetContainer("TEAMModelOS", "School").DeleteItemStreamAsync(id.ToString(), new PartitionKey($"Class-{code}"));
|
|
//await client.GetContainer("TEAMModelOS", "School").DeleteItemStreamAsync(id.ToString(), new PartitionKey($"Class-{code}"));
|
|
StringBuilder sqlM = new StringBuilder();
|
|
StringBuilder sqlM = new StringBuilder();
|
|
- sqlM.Append("select value(c) from c join A0 in c.courses ");
|
|
|
|
|
|
+ sqlM.Append("select value(c) from c ");
|
|
Dictionary<string, object> dict_management = new Dictionary<string, object>();
|
|
Dictionary<string, object> dict_management = new Dictionary<string, object>();
|
|
//处理ID
|
|
//处理ID
|
|
if (request.ids.IsNotEmpty())
|
|
if (request.ids.IsNotEmpty())
|
|
{
|
|
{
|
|
- dict_management.Add("A0.course.id", request.ids.ToArray());
|
|
|
|
|
|
+ dict_management.Add("courses[*].course.id", request.ids.ToArray());
|
|
}
|
|
}
|
|
List <CourseManagement> managements = new List<CourseManagement>();
|
|
List <CourseManagement> managements = new List<CourseManagement>();
|
|
AzureCosmosQuery cosmosDbQuery_1 = SQLHelper.GetSQL(dict_management, sqlM);
|
|
AzureCosmosQuery cosmosDbQuery_1 = SQLHelper.GetSQL(dict_management, sqlM);
|