diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/wrapper/ReviewWrapper.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/wrapper/ReviewWrapper.java index 3d3bbe5..f6d7ffb 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/wrapper/ReviewWrapper.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/wrapper/ReviewWrapper.java @@ -24,8 +24,8 @@ public class ReviewWrapper extends BaseEntityWrapper { 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; } }