|
|
@ -446,34 +446,6 @@ public class LaborEducationServiceImpl implements LaborEducationService {
|
|
|
|
return result;
|
|
|
|
return result;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 整理并返回结果
|
|
|
|
|
|
|
|
private static List<Map<String, Object>> getMaps(Map<String, Map<String, Integer>> studentScores) {
|
|
|
|
|
|
|
|
List<Map<String, Object>> result = new ArrayList<>();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for (Map.Entry<String, Map<String, Integer>> entry : studentScores.entrySet()) {
|
|
|
|
|
|
|
|
String studentKey = entry.getKey();
|
|
|
|
|
|
|
|
Map<String, Integer> scoreMap = entry.getValue();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 解析学生唯一标识
|
|
|
|
|
|
|
|
String[] studentInfo = studentKey.split("\\|");
|
|
|
|
|
|
|
|
String studentId = studentInfo[0];
|
|
|
|
|
|
|
|
String studentName = studentInfo[1];
|
|
|
|
|
|
|
|
String className = studentInfo[2];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 构建返回结果
|
|
|
|
|
|
|
|
Map<String, Object> studentResult = new HashMap<>();
|
|
|
|
|
|
|
|
studentResult.put("studentId", studentId);
|
|
|
|
|
|
|
|
studentResult.put("studentName", studentName);
|
|
|
|
|
|
|
|
studentResult.put("className", className);
|
|
|
|
|
|
|
|
studentResult.put("scores", scoreMap);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
result.add(studentResult);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return result;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 构建知识块到知识点的映射 (一个知识块对应多个知识点)
|
|
|
|
// 构建知识块到知识点的映射 (一个知识块对应多个知识点)
|
|
|
|
private static Map<String, List<String>> getKnowledgeBlockToPointsMap(Appraise appraise) {
|
|
|
|
private static Map<String, List<String>> getKnowledgeBlockToPointsMap(Appraise appraise) {
|
|
|
|
Map<String, List<String>> knowledgeBlockToPointsMap = new HashMap<>();
|
|
|
|
Map<String, List<String>> knowledgeBlockToPointsMap = new HashMap<>();
|
|
|
|