商品列表 返回商家经纬度及所属地区信息
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -29,6 +29,7 @@ public class ShopGroupInfoVo {
|
||||
private Integer number;
|
||||
|
||||
private String address;
|
||||
private String districts;
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user