From ff696685ef7374adf7009e641b82087af97a391c Mon Sep 17 00:00:00 2001 From: "hhb@hotmail.com" Date: Thu, 13 Mar 2025 10:40:27 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E7=A7=BB=E9=99=A4=E6=97=A0=E6=95=88?= =?UTF-8?q?=E5=8F=98=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/LaborEducationServiceImpl.java | 28 ------------------- .../impl/MoralEducationServiceImpl.java | 27 ------------------ 2 files changed, 55 deletions(-) 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<>();