|
@@ -289,7 +289,7 @@ namespace TEAMModelOS.Controllers
|
|
|
//string school_code = code.ToString().Substring(typeof(ExamClassResult).Name.Length + 1);
|
|
|
var response = await client.GetContainer("TEAMModelOS", "Common").DeleteItemStreamAsync(id.ToString(), new PartitionKey($"Exam-{code}"));
|
|
|
//删除blob 相关资料
|
|
|
- await _azureStorage.GetBlobServiceClient().DelectBlobs(code.ToString(),new List<string> { $"exam/{id}" });
|
|
|
+ await _azureStorage.GetBlobServiceClient().DelectBlobs(code.ToString(), new List<string> { $"exam/{id}" });
|
|
|
//通知评测删除信息
|
|
|
var messageBlob = new ServiceBusMessage(new { id = Guid.NewGuid().ToString(), progress = "delete", root = $"exam/{id}", name = $"{code}" }.ToJsonString());
|
|
|
messageBlob.ApplicationProperties.Add("name", "BlobRoot");
|
|
@@ -381,7 +381,7 @@ namespace TEAMModelOS.Controllers
|
|
|
};
|
|
|
await _azureStorage.Save<SchoolYear>(sy);
|
|
|
}
|
|
|
- var query = $"select c.id,c.name,c.code,c.period,c.startTime,c.endTime,c.stuCount,c.type,c.progress,c.examType,c.createTime,c.source, c.subjects, c.grades, c.scope,c.classes,c.sRate,c.lostStu from c ";
|
|
|
+ var query = $"select c.id,c.name,c.code,c.period,c.startTime,c.endTime,c.stuCount,c.type,c.progress,c.examType,c.createTime,c.source, c.subjects, c.grades,c.owner, c.scope,c.classes,c.sRate,c.lostStu from c ";
|
|
|
if (requert.TryGetProperty("classIds", out JsonElement classIds))
|
|
|
{
|
|
|
List<string> ids = classIds.ToObject<List<string>>();
|