From c9309087c301fbb4ed9aec53181b78b797a5d177 Mon Sep 17 00:00:00 2001 From: winter <2436197699@qq.com> Date: Tue, 26 Dec 2023 16:07:36 +0800 Subject: [PATCH] =?UTF-8?q?doc:=20=E5=A2=9E=E5=8A=A0=E4=B8=80=E4=BA=9B?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/admin/service/impl/AdminAppraiseServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/cn/teammodel/controller/admin/service/impl/AdminAppraiseServiceImpl.java b/src/main/java/cn/teammodel/controller/admin/service/impl/AdminAppraiseServiceImpl.java index e550393..7e58c3d 100644 --- a/src/main/java/cn/teammodel/controller/admin/service/impl/AdminAppraiseServiceImpl.java +++ b/src/main/java/cn/teammodel/controller/admin/service/impl/AdminAppraiseServiceImpl.java @@ -252,7 +252,7 @@ public class AdminAppraiseServiceImpl implements AdminAppraiseService { List names = rankVoList.stream().map(AppraiseNodeRankVo::getName).collect(Collectors.toList()); // 去重后的 nodes List nodesByName = appraiseRecordRepository.findAppraiseRecordInNames(String.format(PK.PK_APPRAISE_RECORD, schoolId), academicYearId, names); - // 正常情况下 name 一一对应 + // 正常情况下 name 一一对应 todo: 临时解决 Map nameNodeMap = nodesByName.stream().collect(Collectors.toMap(AppraiseTreeNode::getName, item -> item, (existing, replacement) -> { if (replacement.getPath() != null) { return replacement;