|
|
|
@ -24,8 +24,8 @@ public class ReviewWrapper extends BaseEntityWrapper<ReviewEntity, ReviewVo> {
|
|
|
|
|
ReviewVo reviewVo = BeanUtil.copy(entity,ReviewVo.class); |
|
|
|
|
User submitter = UserCache.getUser(entity.getSubmitter()); |
|
|
|
|
User reviewer = UserCache.getUser(entity.getReviewer()); |
|
|
|
|
reviewVo.setSubmitterName(Optional.ofNullable(submitter).map(User::getName).orElse(null)); |
|
|
|
|
reviewVo.setReviewerName(Optional.ofNullable(reviewer).map(User::getName).orElse(null)); |
|
|
|
|
reviewVo.setSubmitterName(Optional.ofNullable(submitter).map(User::getRealName).orElse(null)); |
|
|
|
|
reviewVo.setReviewerName(Optional.ofNullable(reviewer).map(User::getRealName).orElse(null)); |
|
|
|
|
return reviewVo; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|