diff --git a/src/main/java/com/chaozhanggui/system/cashierservice/entity/vo/HomeVO.java b/src/main/java/com/chaozhanggui/system/cashierservice/entity/vo/HomeVO.java index 033cfcb..d770df2 100644 --- a/src/main/java/com/chaozhanggui/system/cashierservice/entity/vo/HomeVO.java +++ b/src/main/java/com/chaozhanggui/system/cashierservice/entity/vo/HomeVO.java @@ -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; diff --git a/src/main/java/com/chaozhanggui/system/cashierservice/entity/vo/ShopGroupInfoVo.java b/src/main/java/com/chaozhanggui/system/cashierservice/entity/vo/ShopGroupInfoVo.java index aa13629..3adef0a 100644 --- a/src/main/java/com/chaozhanggui/system/cashierservice/entity/vo/ShopGroupInfoVo.java +++ b/src/main/java/com/chaozhanggui/system/cashierservice/entity/vo/ShopGroupInfoVo.java @@ -29,6 +29,7 @@ public class ShopGroupInfoVo { private Integer number; private String address; + private String districts; } diff --git a/src/main/java/com/chaozhanggui/system/cashierservice/service/ProductService.java b/src/main/java/com/chaozhanggui/system/cashierservice/service/ProductService.java index 4458dc6..744c032 100644 --- a/src/main/java/com/chaozhanggui/system/cashierservice/service/ProductService.java +++ b/src/main/java/com/chaozhanggui/system/cashierservice/service/ProductService.java @@ -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 { diff --git a/src/main/resources/mapper/TbProductMapper.xml b/src/main/resources/mapper/TbProductMapper.xml index 428ef66..b275b2c 100644 --- a/src/main/resources/mapper/TbProductMapper.xml +++ b/src/main/resources/mapper/TbProductMapper.xml @@ -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,