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;