|
@@ -2188,6 +2188,7 @@ namespace TEAMModelOS.Controllers
|
|
foreach (ufo fo in tmdInfos)
|
|
foreach (ufo fo in tmdInfos)
|
|
{
|
|
{
|
|
fo.type = 1;
|
|
fo.type = 1;
|
|
|
|
+ fo.no = members.Where(m => m.type == 1 && m.id.Equals(fo.id)).FirstOrDefault().no;
|
|
}
|
|
}
|
|
ufos.AddRange(tmdInfos);
|
|
ufos.AddRange(tmdInfos);
|
|
}
|
|
}
|
|
@@ -2206,7 +2207,7 @@ namespace TEAMModelOS.Controllers
|
|
delIds.AddRange(ids.Except(sIds).ToList());
|
|
delIds.AddRange(ids.Except(sIds).ToList());
|
|
if (stus.Any())
|
|
if (stus.Any())
|
|
{
|
|
{
|
|
- await foreach (var item in client.GetContainer(Constant.TEAMModelOS, "Student").GetItemQueryStreamIteratorSql(queryText: $"select distinct c.id,c.name from c where c.id in ({string.Join(",", stus.Select(o => $"'{o}'"))}) and c.pk = 'Base'",
|
|
|
|
|
|
+ await foreach (var item in client.GetContainer(Constant.TEAMModelOS, "Student").GetItemQueryStreamIteratorSql(queryText: $"select distinct c.id,c.name,c.no from c where c.id in ({string.Join(",", stus.Select(o => $"'{o}'"))}) and c.pk = 'Base'",
|
|
requestOptions: new QueryRequestOptions() { PartitionKey = new PartitionKey($"Base-{school}") }))
|
|
requestOptions: new QueryRequestOptions() { PartitionKey = new PartitionKey($"Base-{school}") }))
|
|
{
|
|
{
|
|
using var stuJson = await JsonDocument.ParseAsync(item.Content);
|
|
using var stuJson = await JsonDocument.ParseAsync(item.Content);
|
|
@@ -2221,7 +2222,8 @@ namespace TEAMModelOS.Controllers
|
|
id = account.GetProperty("id").GetString(),
|
|
id = account.GetProperty("id").GetString(),
|
|
name = account.GetProperty("name").GetString(),
|
|
name = account.GetProperty("name").GetString(),
|
|
//schoolId = account.GetProperty("schoolId").GetString(),
|
|
//schoolId = account.GetProperty("schoolId").GetString(),
|
|
- type = 2
|
|
|
|
|
|
+ type = 2,
|
|
|
|
+ no = account.GetProperty("no").GetString()
|
|
};
|
|
};
|
|
students.Add(fo);
|
|
students.Add(fo);
|
|
}
|
|
}
|
|
@@ -2242,7 +2244,8 @@ namespace TEAMModelOS.Controllers
|
|
{
|
|
{
|
|
id = simple.id,
|
|
id = simple.id,
|
|
name = (!string.IsNullOrWhiteSpace(simple.name)) ? simple.name : (!string.IsNullOrWhiteSpace(simple.nickname)) ? simple.nickname : "",
|
|
name = (!string.IsNullOrWhiteSpace(simple.name)) ? simple.name : (!string.IsNullOrWhiteSpace(simple.nickname)) ? simple.nickname : "",
|
|
- type = simple.type
|
|
|
|
|
|
+ type = simple.type,
|
|
|
|
+ no = simple.no
|
|
});
|
|
});
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -2321,7 +2324,7 @@ namespace TEAMModelOS.Controllers
|
|
/// <summary>
|
|
/// <summary>
|
|
/// 查询複數评测详细信息(教师用)
|
|
/// 查询複數评测详细信息(教师用)
|
|
/// </summary>
|
|
/// </summary>
|
|
- /// <param name="request"></param>
|
|
|
|
|
|
+ /// <param name="request"></param>find-summary-record
|
|
/// <returns></returns>
|
|
/// <returns></returns>
|
|
[ProducesDefaultResponseType]
|
|
[ProducesDefaultResponseType]
|
|
[Authorize(Roles = "IES")]
|
|
[Authorize(Roles = "IES")]
|
|
@@ -5173,6 +5176,7 @@ namespace TEAMModelOS.Controllers
|
|
public string id { get; set; }
|
|
public string id { get; set; }
|
|
public string name { get; set; }
|
|
public string name { get; set; }
|
|
public int type { get; set; }
|
|
public int type { get; set; }
|
|
|
|
+ public string no { get; set; }
|
|
}
|
|
}
|
|
public class stuErrorItemCnt
|
|
public class stuErrorItemCnt
|
|
{
|
|
{
|