Ver Fonte

调整格式

zhouj1203@hotmail.com há 3 anos atrás
pai
commit
b38bbd4a3e
1 ficheiros alterados com 3 adições e 3 exclusões
  1. 3 3
      TEAMModelOS/Controllers/School/StudentController.cs

+ 3 - 3
TEAMModelOS/Controllers/School/StudentController.cs

@@ -1980,16 +1980,16 @@ namespace TEAMModelOS.Controllers
                 }
                 if (tmdids.IsNotEmpty())
                 {
-                    List<TmdInfo> infos = new List<TmdInfo>();
+                    
                     List<string> inids = new List<string>();
                     tmdids.ForEach(x => { inids.Add($"'{x}'"); });
                     var insql = string.Join(",", inids);
                     var queryslt = $"SELECT  value(c) FROM c where c.id in ({insql})";
                     await foreach (var item in client.GetContainer("TEAMModelOS", "Teacher").GetItemQueryIterator<TmdInfo>(queryText: queryslt, requestOptions: new QueryRequestOptions() { PartitionKey = new PartitionKey($"Base") }))
                     {
-                        infos.Add(item);
+                        tmdinfos.Add(item);
                     }
-                    tmdinfos.AddRange(infos);
+                    //tmdinfos.AddRange(infos);
                 }
                 return Ok(new { stus, tmdinfos });
             }