diff --git a/src/main/java/cn/teammodel/controller/admin/service/impl/LaborEducationServiceImpl.java b/src/main/java/cn/teammodel/controller/admin/service/impl/LaborEducationServiceImpl.java index b66945f..ffbcb3b 100644 --- a/src/main/java/cn/teammodel/controller/admin/service/impl/LaborEducationServiceImpl.java +++ b/src/main/java/cn/teammodel/controller/admin/service/impl/LaborEducationServiceImpl.java @@ -446,34 +446,6 @@ public class LaborEducationServiceImpl implements LaborEducationService { return result; } - - // 整理并返回结果 - private static List> getMaps(Map> studentScores) { - List> result = new ArrayList<>(); - - for (Map.Entry> entry : studentScores.entrySet()) { - String studentKey = entry.getKey(); - Map scoreMap = entry.getValue(); - - // 解析学生唯一标识 - String[] studentInfo = studentKey.split("\\|"); - String studentId = studentInfo[0]; - String studentName = studentInfo[1]; - String className = studentInfo[2]; - - // 构建返回结果 - Map 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> getKnowledgeBlockToPointsMap(Appraise appraise) { Map> knowledgeBlockToPointsMap = new HashMap<>(); diff --git a/src/main/java/cn/teammodel/controller/admin/service/impl/MoralEducationServiceImpl.java b/src/main/java/cn/teammodel/controller/admin/service/impl/MoralEducationServiceImpl.java index 080eccf..ba02eac 100644 --- a/src/main/java/cn/teammodel/controller/admin/service/impl/MoralEducationServiceImpl.java +++ b/src/main/java/cn/teammodel/controller/admin/service/impl/MoralEducationServiceImpl.java @@ -447,33 +447,6 @@ public class MoralEducationServiceImpl implements MoralEducationService { } - // 整理并返回结果 - private static List> getMaps(Map> studentScores) { - List> result = new ArrayList<>(); - - for (Map.Entry> entry : studentScores.entrySet()) { - String studentKey = entry.getKey(); - Map scoreMap = entry.getValue(); - - // 解析学生唯一标识 - String[] studentInfo = studentKey.split("\\|"); - String studentId = studentInfo[0]; - String studentName = studentInfo[1]; - String className = studentInfo[2]; - - // 构建返回结果 - Map 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> getKnowledgeBlockToPointsMap(Appraise appraise) { Map> knowledgeBlockToPointsMap = new HashMap<>();