From b6614d7c9f81a35569aef8b88fd7ca523134b6d8 Mon Sep 17 00:00:00 2001 From: yang_shj <1069818635@QQ.com> Date: Tue, 23 Jul 2024 13:45:41 +0800 Subject: [PATCH] =?UTF-8?q?#=E5=B7=A5=E4=BD=9C=E4=BB=BB=E5=8A=A1=E5=8D=95?= =?UTF-8?q?=E7=8F=AD=E7=BB=84=E6=9F=A5=E8=AF=A2bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../operational/duty/service/impl/ImsDutyGroupServiceImpl.java | 6 +++++- 1 file changed, 5 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 c5cd17b..7ee5f6a 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 @@ -408,7 +408,11 @@ public class ImsDutyGroupServiceImpl extends ServiceImpl members = group.getMember().stream().peek(member->{ User person = UserCache.getUser(member.getPersonId()); if (ObjectUtil.isNotEmpty(person)) { - member.setPersonName(person.getName()); + if(StringUtil.isBlank(person.getRealName())){ + member.setPersonName(person.getName()); + }else{ + member.setPersonName(person.getRealName()); + } } }).collect(Collectors.toList()); group.setMember(members.stream().filter(o->StringUtil.isNotBlank(o.getPersonName())).collect(Collectors.toList()));