From 3091f4cad25a101198f76295330fef51db7e4395 Mon Sep 17 00:00:00 2001 From: Jone <515616805@qq.com> Date: Thu, 28 Mar 2024 22:06:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=94=B5=E7=AB=99=E6=A0=87?= =?UTF-8?q?=E5=87=86=E8=AF=84=E5=AE=9A=E7=9A=84=E5=88=9B=E5=BB=BA=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E4=B8=BA=E7=A9=BA=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/hnac/hzims/safeproduct/wrapper/ReviewWrapper.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } }