Browse Source

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

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

4
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->{ List<DutyMemberVO> members = group.getMember().stream().peek(member->{
User person = UserCache.getUser(member.getPersonId()); User person = UserCache.getUser(member.getPersonId());
if (ObjectUtil.isNotEmpty(person)) { if (ObjectUtil.isNotEmpty(person)) {
if(StringUtil.isBlank(person.getRealName())){
member.setPersonName(person.getName()); member.setPersonName(person.getName());
}else{
member.setPersonName(person.getRealName());
}
} }
}).collect(Collectors.toList()); }).collect(Collectors.toList());
group.setMember(members.stream().filter(o->StringUtil.isNotBlank(o.getPersonName())).collect(Collectors.toList())); group.setMember(members.stream().filter(o->StringUtil.isNotBlank(o.getPersonName())).collect(Collectors.toList()));

Loading…
Cancel
Save