|
@@ -749,7 +749,9 @@ namespace TEAMModelOS.Controllers
|
|
|
var client = _azureCosmos.GetCosmosClient();
|
|
|
List<object> stuList = new();
|
|
|
List<string> ids = new();
|
|
|
- ids = _stuids.ToObject<List<string>>();
|
|
|
+ if (!_stuids.ValueKind.Equals(JsonValueKind.Undefined) && _stuids.ValueKind.Equals(JsonValueKind.Array)) {
|
|
|
+ ids = _stuids.ToObject<List<string>>();
|
|
|
+ }
|
|
|
// var query = $"select c.id,c.name,c.students,c.tmids,c.periodId from c";
|
|
|
StringBuilder query = new StringBuilder($"select c.id,c.name,c.students,c.tmids,c.no,c.code,c.scope,c.school,c.creatorId,c.periodId from c ");
|
|
|
if (ids.IsNotEmpty()) {
|
|
@@ -807,7 +809,10 @@ namespace TEAMModelOS.Controllers
|
|
|
var client = _azureCosmos.GetCosmosClient();
|
|
|
List<StuList> stuList = new();
|
|
|
List<string> ids = new();
|
|
|
- ids = _stuids.ToObject<List<string>>();
|
|
|
+ if (!_stuids.ValueKind.Equals(JsonValueKind.Undefined) && _stuids.ValueKind.Equals(JsonValueKind.Array))
|
|
|
+ {
|
|
|
+ ids = _stuids.ToObject<List<string>>();
|
|
|
+ }
|
|
|
// var query = $"select c.id,c.name,c.students,c.tmids,c.periodId from c";
|
|
|
StringBuilder query = new StringBuilder($"select vaule(c) from c where c.type='research' ");
|
|
|
if (ids.IsNotEmpty())
|