|
@@ -1500,7 +1500,7 @@ namespace TEAMModelOS.Controllers
|
|
|
//ResponseBuilder builder = ResponseBuilder.custom();
|
|
|
//var (id, school) = HttpContext.GetAuthTokenInfo();
|
|
|
if (!requert.TryGetProperty("id", out JsonElement id)) return BadRequest();
|
|
|
- //if (!requert.TryGetProperty("code", out JsonElement code)) return BadRequest();
|
|
|
+ if (!requert.TryGetProperty("cIds", out JsonElement cIds)) return BadRequest();
|
|
|
if (!requert.TryGetProperty("studentId", out JsonElement studentId)) return BadRequest();
|
|
|
if (!requert.TryGetProperty("code", out JsonElement school)) return BadRequest();
|
|
|
if (!requert.TryGetProperty("scode", out JsonElement scode)) return BadRequest();
|
|
@@ -1513,7 +1513,7 @@ namespace TEAMModelOS.Controllers
|
|
|
List<string> classIds = new List<string>();
|
|
|
//List<string> stus = new List<string>();
|
|
|
//存放当前学生所在班级ID或者名单ID
|
|
|
- HashSet<string> resultIds = new();
|
|
|
+ /*HashSet<string> resultIds = new();
|
|
|
//List<string> ids = new List<string>();
|
|
|
//处理班级人数(公共部分的校本名单)
|
|
|
//List<Student> students = new List<Student>();
|
|
@@ -1575,8 +1575,8 @@ namespace TEAMModelOS.Controllers
|
|
|
{
|
|
|
infoIds.Add(ids);
|
|
|
}
|
|
|
- }
|
|
|
-
|
|
|
+ }*/
|
|
|
+ List<string> infoIds = cIds.ToObject<List<string>>();
|
|
|
await foreach (var item in client.GetContainer(Constant.TEAMModelOS, "Common").GetItemQueryIterator<PaperSimple>(queryText: query, requestOptions: new QueryRequestOptions() { PartitionKey = new PartitionKey($"{scode}") }))
|
|
|
{
|
|
|
papers.Add(item);
|