Browse Source

#工作任务单班组查询bug修复

zhongwei
yang_shj 4 months ago
parent
commit
b6614d7c9f
  1. 6
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/duty/service/impl/ImsDutyGroupServiceImpl.java

6
hzims-service/operational/src/main/java/com/hnac/hzims/operational/duty/service/impl/ImsDutyGroupServiceImpl.java

@ -408,7 +408,11 @@ public class ImsDutyGroupServiceImpl extends ServiceImpl<ImsDutyGroupMapper, Ims
List<DutyMemberVO> 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()));

Loading…
Cancel
Save