Commit 8aec1456df3475474eb32b0f7a06b0da8d493429
1 parent
95a4c043
优化跟进记录显示客户姓名
Showing
2 changed files
with
6 additions
and
0 deletions
fw-shirasawa-domain/src/main/java/cn/fw/shirasawa/domain/vo/follow/FollowRecordHistoryVO.java
fw-shirasawa-service/src/main/java/cn/fw/shirasawa/service/bus/follow/strategy/AbstractFollowStrategy.java
... | ... | @@ -262,11 +262,13 @@ public abstract class AbstractFollowStrategy implements FollowStrategy { |
262 | 262 | if (CollectionUtils.isEmpty(attachments)) { |
263 | 263 | return new ArrayList<>(); |
264 | 264 | } |
265 | + MemberUserDTO user = memberRpcService.user(task.getMemberId()); | |
265 | 266 | List<FollowRecordHistoryVO> list = new ArrayList<>(); |
266 | 267 | for (FollowRecordLog attachment : attachments) { |
267 | 268 | FollowRecordHistoryVO vo = new FollowRecordHistoryVO(); |
268 | 269 | vo.setAttachments(attachment.getAttachments()); |
269 | 270 | vo.setId(attachment.getId()); |
271 | + vo.setCustomerName(Optional.of(user).map(MemberUserDTO::getRealName).orElse(null)); | |
270 | 272 | vo.setRecordId(attachment.getRecordId()); |
271 | 273 | vo.setTaskId(attachment.getTaskId()); |
272 | 274 | vo.setAttType(attachment.getAttType()); | ... | ... |