release: PC 门店防呆

release-2024-04-25
huangyw 3 months ago
parent 348c31586d
commit e960ef5925

@ -166,6 +166,14 @@ public class StoreService {
.fetchCount(); .fetchCount();
storeList.forEach(store -> { 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) { if (store.getRegionId() != null) {
Region regionById = regionService.getRegionById(store.getRegionId()); Region regionById = regionService.getRegionById(store.getRegionId());
store.setRegion(regionById); store.setRegion(regionById);

@ -71,6 +71,11 @@ public class StorePCVO implements Serializable {
@ApiModelProperty(value = "门店访问量") @ApiModelProperty(value = "门店访问量")
private Integer visitCount; private Integer visitCount;
@ApiModelProperty(value = "头像")
String contactAvatar;
@ApiModelProperty(value = "昵称")
String contactNickName;
@Transient @Transient
Region region; Region region;

Loading…
Cancel
Save