Browse Source

修复电站标准评定的创建用户为空的问题

zhongwei
Jone 8 months ago
parent
commit
3091f4cad2
  1. 4
      hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/wrapper/ReviewWrapper.java

4
hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/wrapper/ReviewWrapper.java

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

Loading…
Cancel
Save