From e960ef5925ce451a072552597cf50a48ca51cf7b Mon Sep 17 00:00:00 2001 From: huangyw <1207046171@qq.com> Date: Tue, 3 Sep 2024 08:43:13 +0800 Subject: [PATCH] =?UTF-8?q?release:=20PC=20=E9=97=A8=E5=BA=97=E9=98=B2?= =?UTF-8?q?=E5=91=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/luoo/user/service/StoreService.java | 8 ++++++++ .../src/main/java/com/luoo/user/vo/store/StorePCVO.java | 5 +++++ 2 files changed, 13 insertions(+) diff --git a/luoo_user/src/main/java/com/luoo/user/service/StoreService.java b/luoo_user/src/main/java/com/luoo/user/service/StoreService.java index d02686b..e2d0715 100644 --- a/luoo_user/src/main/java/com/luoo/user/service/StoreService.java +++ b/luoo_user/src/main/java/com/luoo/user/service/StoreService.java @@ -166,6 +166,14 @@ public class StoreService { .fetchCount(); storeList.forEach(store -> { + + String contact = store.getContact(); + if (StringUtils.isNotBlank(contact)) { + UserInfo byId = userInfoService.findById(contact); + store.setContactNickName(byId == null ? "" : byId.getNickName()); + store.setContactAvatar(byId == null ? "" : byId.getAvatar()); + } + if (store.getRegionId() != null) { Region regionById = regionService.getRegionById(store.getRegionId()); store.setRegion(regionById); diff --git a/luoo_user/src/main/java/com/luoo/user/vo/store/StorePCVO.java b/luoo_user/src/main/java/com/luoo/user/vo/store/StorePCVO.java index 4000397..8a24a1c 100644 --- a/luoo_user/src/main/java/com/luoo/user/vo/store/StorePCVO.java +++ b/luoo_user/src/main/java/com/luoo/user/vo/store/StorePCVO.java @@ -71,6 +71,11 @@ public class StorePCVO implements Serializable { @ApiModelProperty(value = "门店访问量") private Integer visitCount; + @ApiModelProperty(value = "头像") + String contactAvatar; + + @ApiModelProperty(value = "昵称") + String contactNickName; @Transient Region region;