|
@@ -769,7 +769,7 @@ namespace TEAMModelOS.Controllers.Client
|
|
|
if (!stuListId.ValueKind.Equals(JsonValueKind.Null) && !string.IsNullOrWhiteSpace(stuListId.GetString()))
|
|
|
{
|
|
|
classExtobj.stuListId = Convert.ToString(stuListId);
|
|
|
- await foreach (var stuitem in client.GetContainer(Constant.TEAMModelOS, "School").GetItemQueryStreamIterator(queryText: $"SELECT c.code, c.id, c.name, c.year, c.tcount, c.scount FROM c WHERE c.id = '{stuListId}' AND (NOT IS_DEFINED(c.expire) OR {nowtime} <= c.expire )", requestOptions: new QueryRequestOptions() { PartitionKey = new PartitionKey($"GroupList-{school_code}") }))
|
|
|
+ await foreach (var stuitem in client.GetContainer(Constant.TEAMModelOS, "School").GetItemQueryStreamIterator(queryText: $"SELECT c.code, c.id, c.name, c.year, c.tcount, c.scount FROM c WHERE c.id = '{stuListId}' AND ( c.expire = 0 OR IS_DEFINED(c.expire) = false OR c.expire >={nowtime} )", requestOptions: new QueryRequestOptions() { PartitionKey = new PartitionKey($"GroupList-{school_code}") }))
|
|
|
{
|
|
|
var jsonstu = await JsonDocument.ParseAsync(stuitem.ContentStream);
|
|
|
foreach (var stuobj in jsonstu.RootElement.GetProperty("Documents").EnumerateArray())
|