Ver Fonte

bugfix:1408 重提

qxy há 1 mês atrás
pai
commit
c18725ea6b

+ 6 - 0
alien-entity/src/main/java/shop/alien/entity/store/vo/LifeGroupBuyMainVo.java

@@ -30,6 +30,12 @@ public class LifeGroupBuyMainVo extends LifeGroupBuyMain {
     @ApiModelProperty(value = "商家评分")
     private String scoreAvg;
 
+    @ApiModelProperty(value = "商家经营种类")
+    private String businessName;
+
+    @ApiModelProperty(value = "商家地址")
+    private String address;
+
     @ApiModelProperty(value = "团购图片url")
     private String imagePaths;
 

+ 5 - 1
alien-entity/src/main/java/shop/alien/mapper/LifeGroupBuyMainMapper.java

@@ -91,7 +91,11 @@ public interface LifeGroupBuyMainMapper extends BaseMapper<LifeGroupBuyMain> {
             "    g.created_user_id AS created_user_id,\n" +
             "    g.updated_user_id AS updated_user_id,\n" +
             "    s.store_name AS store_name,\n" +
-            "    s.score_avg AS scoreAvg,\n" +
+            "    s.store_address AS store_address,\n" +
+            "    s.store_tel AS store_tel,\n" +
+            "    ROUND(s.score_avg) AS scoreAvg,\n" +
+            "    s.business_types_name AS businessName,\n" +
+            "    s.query_address AS address,\n" +
             "    IFNULL(GROUP_CONCAT(img.img_url SEPARATOR ','), '') AS imagePaths\n" +
             "FROM\n" +
             "    life_group_buy_main g\n" +