From 37589c4773a927da6c3fd7017cf7c09ee25ca9c9 Mon Sep 17 00:00:00 2001 From: ty <1577900710@qq.com> Date: Fri, 22 Mar 2024 17:15:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=80=BC=E7=8F=AD=E5=A2=9E=E5=8A=A0=E5=80=BC?= =?UTF-8?q?=E7=8F=AD=E9=95=BF=E5=90=8D=E7=A7=B0=E5=92=8C=E4=BA=BA=E5=91=98?= =?UTF-8?q?=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../hzims/operational/duty/service/impl/ImsDutyGroupServiceImpl.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/duty/service/impl/ImsDutyGroupServiceImpl.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/duty/service/impl/ImsDutyGroupServiceImpl.java index eb4d5b2..ef0e5a0 100644 --- a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/duty/service/impl/ImsDutyGroupServiceImpl.java +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/duty/service/impl/ImsDutyGroupServiceImpl.java @@ -171,7 +171,8 @@ public class ImsDutyGroupServiceImpl extends BaseServiceImpl imsDutyGroupPVOS = imsDutyGroupPService.listByGroupId(entity.getId()); if (CollectionUtil.isNotEmpty(imsDutyGroupPVOS)){ - List userIds = imsDutyGroupPVOS.stream().map(ImsDutyGroupPVO::getPersonId).collect(Collectors.toList()); + List userIds = imsDutyGroupPVOS.stream() + .map(ImsDutyGroupPVO::getPersonId).filter(s->entity.getManagerId().equals(s)).collect(Collectors.toList()); String name=""; for (int i1 = 0; i1 < userIds.size(); i1++) { name=name+UserCache.getUser(userIds.get(i1)).getName();