商品列表 返回商家经纬度及所属地区信息

This commit is contained in:
2024-05-17 09:25:45 +08:00
parent 200b75e04d
commit 879f4307bd
4 changed files with 12 additions and 0 deletions

View File

@@ -59,6 +59,7 @@ public class HomeVO {
* 距离
*/
private String distances ="100";
private String districts;
private Integer id;
/**
@@ -122,6 +123,13 @@ public class HomeVO {
this.shopName = shopName;
}
public String getDistricts() {
return districts;
}
public void setDistricts(String districts) {
this.districts = districts;
}
public String getProductName() {
return productName;

View File

@@ -29,6 +29,7 @@ public class ShopGroupInfoVo {
private Integer number;
private String address;
private String districts;
}

View File

@@ -194,6 +194,7 @@ public class ProductService {
homeVO.setId(o.getProId());
homeVO.setShopName(o.getShopName());
homeVO.setShopImage(o.getShopImg());
homeVO.setDistricts(o.getDistricts());
if (StringUtils.isBlank(o.getShopTag())) {
homeVO.setShopTag(new ArrayList<>());
} else {

View File

@@ -949,6 +949,7 @@
info.tag AS shopTag,
info.lat AS lat,
info.lng AS lng,
info.districts as districts,
pro.id AS proId,
pro.`name` AS proName,
pro.cover_img AS proImg,
@@ -992,6 +993,7 @@
info.tag AS shopTag,
info.lat AS lat,
info.lng AS lng,
info.districts as districts,
pro.id AS proId,
pro.`name` AS proName,
pro.cover_img AS proImg,