Commit e8e259a6afa3927a4f97fbeec66280895b15ea86
1 parent
499b3b2d
修复一个bug
- 修复一个bug
Showing
1 changed file
with
1 additions
and
1 deletions
fw-shirasawa-service/src/main/java/cn/fw/shirasawa/service/bus/follow/strategy/AbstractFollowStrategy.java
... | ... | @@ -412,7 +412,7 @@ public abstract class AbstractFollowStrategy implements FollowStrategy { |
412 | 412 | return new ArrayList<>(); |
413 | 413 | } |
414 | 414 | List<Long> recordIds = followRecordList.stream().map(FollowRecord::getId).collect(Collectors.toList()); |
415 | - Map<Long, String> map = followRecordList.stream().collect(Collectors.toMap(FollowRecord::getId, FollowRecord::getUserName)); | |
415 | + Map<Long, String> map = followRecordList.stream().collect(Collectors.toMap(FollowRecord::getId, r -> Optional.ofNullable(r.getUserName()).orElse(""))); | |
416 | 416 | List<FollowRecordLog> attachments = followRecordLogService.getListByRecordIds(recordIds); |
417 | 417 | if (CollectionUtils.isEmpty(attachments)) { |
418 | 418 | return new ArrayList<>(); | ... | ... |