|
@@ -160,10 +160,6 @@ namespace TEAMModelOS.Controllers
|
|
{
|
|
{
|
|
return BadRequest();
|
|
return BadRequest();
|
|
}
|
|
}
|
|
- if (!request.TryGetProperty("areaId", out JsonElement _areaId))
|
|
|
|
- {
|
|
|
|
- return BadRequest();
|
|
|
|
- }
|
|
|
|
List<string> studentIds = new List<string>();
|
|
List<string> studentIds = new List<string>();
|
|
if (request.TryGetProperty("studentIds", out JsonElement _studentIds) && _studentIds.ValueKind.Equals(JsonValueKind.Array))
|
|
if (request.TryGetProperty("studentIds", out JsonElement _studentIds) && _studentIds.ValueKind.Equals(JsonValueKind.Array))
|
|
{
|
|
{
|
|
@@ -501,7 +497,8 @@ namespace TEAMModelOS.Controllers
|
|
await client.GetContainer(Constant.TEAMModelOS, Constant.Student).ReplaceItemAsync(rs, rs.id, new PartitionKey(rs.code));
|
|
await client.GetContainer(Constant.TEAMModelOS, Constant.Student).ReplaceItemAsync(rs, rs.id, new PartitionKey(rs.code));
|
|
}
|
|
}
|
|
if (artResults.Any()) {
|
|
if (artResults.Any()) {
|
|
- await ArtService.GenArtPDF(artResults.Select(z=>z.studentId).ToList(), $"{_artId}", $"{school}", head_lang, _serviceBus, _configuration);
|
|
|
|
|
|
+ //先移除自动化生成
|
|
|
|
+ // await ArtService.GenArtPDF(artResults.Select(z=>z.studentId).ToList(), $"{_artId}", $"{school}", head_lang, _serviceBus, _configuration);
|
|
}
|
|
}
|
|
return Ok(new { results = studentArtResults, status = 1 });
|
|
return Ok(new { results = studentArtResults, status = 1 });
|
|
}
|
|
}
|