From 63eab8bbae3eaf585582baceb0519e773736a0a6 Mon Sep 17 00:00:00 2001 From: PoffyZhang <99775271@qq.com> Date: Wed, 8 Nov 2023 17:04:45 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=84=E5=AE=A1=E6=B8=85=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pmapi/projectdeclared/manage/ReviewChecklistManage.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/ReviewChecklistManage.java b/pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/ReviewChecklistManage.java index ac6b4d6..932e774 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/ReviewChecklistManage.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/ReviewChecklistManage.java @@ -96,7 +96,9 @@ public class ReviewChecklistManage { reviewHumans = DeclaredProjectContant.ReviewChecklist.REVIEW_HUMANS_ZZD; } List users = userInfoHelper.getUserFullInfoByEmployeeCodes(reviewHumans); - Map userMap = users.stream().collect(Collectors.toMap(u -> u.getEmployeeCode() + Set userSet = Sets.newHashSet(); + Map userMap = users.stream().filter(u -> userSet.add(u.getEmployeeCode())) + .collect(Collectors.toMap(u -> u.getEmployeeCode() , u -> u.getUsername())); List records = CollUtils.convert(page.getRecords(), w -> { ProjectReviewCheckListItemVO item = new ProjectReviewCheckListItemVO();