|
@@ -339,8 +339,8 @@ namespace TEAMModelOS.Controllers.Analysis
|
|
|
List<LessonCount> tcount = new();
|
|
|
DenseMatrix dense = null;
|
|
|
await foreach (var item in client.GetContainer(Constant.TEAMModelOS, "Common").GetItemQueryIterator<LessonCount>(
|
|
|
- queryText: $"select value(c) from c where c.year = {syear}",
|
|
|
- requestOptions: new QueryRequestOptions() { PartitionKey = new PartitionKey($"LessonCount-{code}") }))
|
|
|
+ queryText: $"select value(c) from c",
|
|
|
+ requestOptions: new QueryRequestOptions() { PartitionKey = new PartitionKey($"LessonCount-{code}-{syear}") }))
|
|
|
{
|
|
|
scount.Add(item);
|
|
|
}
|
|
@@ -349,8 +349,8 @@ namespace TEAMModelOS.Controllers.Analysis
|
|
|
{
|
|
|
//跨年
|
|
|
await foreach (var item in client.GetContainer(Constant.TEAMModelOS, "Common").GetItemQueryIterator<LessonCount>(
|
|
|
- queryText: $"select value(c) from c where c.year = {tyear}",
|
|
|
- requestOptions: new QueryRequestOptions() { PartitionKey = new PartitionKey($"LessonCount-{code}") }))
|
|
|
+ queryText: $"select value(c) from c",
|
|
|
+ requestOptions: new QueryRequestOptions() { PartitionKey = new PartitionKey($"LessonCount-{code}-{tyear}") }))
|
|
|
{
|
|
|
tcount.Add(item);
|
|
|
}
|