|
@@ -248,7 +248,7 @@ namespace TEAMModelOS.FunctionV4
|
|
classResults.Add(item);
|
|
classResults.Add(item);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- List<Task<ItemResponse<Scoring>>> tasks = new List<Task<ItemResponse<Scoring>>>();
|
|
|
|
|
|
+ List<Task<ItemResponse<SDK.Models.Cosmos.Common.Scoring>>> tasks = new List<Task<ItemResponse<SDK.Models.Cosmos.Common.Scoring>>>();
|
|
//初始化老师阅卷记录
|
|
//初始化老师阅卷记录
|
|
//List<string> tmds = new List<string>();
|
|
//List<string> tmds = new List<string>();
|
|
/* List<string> marks = new List<string>();
|
|
/* List<string> marks = new List<string>();
|
|
@@ -305,7 +305,7 @@ namespace TEAMModelOS.FunctionV4
|
|
}
|
|
}
|
|
n++;
|
|
n++;
|
|
}
|
|
}
|
|
- Scoring sc = new Scoring
|
|
|
|
|
|
+ SDK.Models.Cosmos.Common.Scoring sc = new SDK.Models.Cosmos.Common.Scoring
|
|
{
|
|
{
|
|
id = Guid.NewGuid().ToString(),
|
|
id = Guid.NewGuid().ToString(),
|
|
code = "Scoring-" + info.school,
|
|
code = "Scoring-" + info.school,
|
|
@@ -322,7 +322,7 @@ namespace TEAMModelOS.FunctionV4
|
|
model = sub.model
|
|
model = sub.model
|
|
|
|
|
|
};
|
|
};
|
|
- tasks.Add(client.GetContainer(Constant.TEAMModelOS, "Teacher").CreateItemAsync<Scoring>(sc, new Azure.Cosmos.PartitionKey(sc.code)));
|
|
|
|
|
|
+ tasks.Add(client.GetContainer(Constant.TEAMModelOS, "Teacher").CreateItemAsync<SDK.Models.Cosmos.Common.Scoring>(sc, new Azure.Cosmos.PartitionKey(sc.code)));
|
|
}
|
|
}
|
|
//tasks.Add(redisClient.HashSetAsync($"Exam:Scoring:{eid}-{subjectId}", stuId, new { tmdId = tmds, ans = examClass.studentAnswers[index].Count > 0 ? examClass.studentAnswers[index][0] : "", score = examClass.studentScores[index] }.ToJsonString()));
|
|
//tasks.Add(redisClient.HashSetAsync($"Exam:Scoring:{eid}-{subjectId}", stuId, new { tmdId = tmds, ans = examClass.studentAnswers[index].Count > 0 ? examClass.studentAnswers[index][0] : "", score = examClass.studentScores[index] }.ToJsonString()));
|
|
}
|
|
}
|