@@ -11,6 +11,8 @@ import java.util.List;
@Data
public class GoodsNewBean extends Goods {
+ @ApiModelProperty(value = "商品主图")
+ private String imgUrl;
@ApiModelProperty("objId")
private String objId;
@ApiModelProperty("上标签")
@@ -35,11 +35,13 @@
<select id="queryNewGoods" resultType="com.gree.mall.miniapp.bean.goods.GoodsNewBean">
select
- a.*
+ a.*,
+ b.img_url
<if test="objId != null and objId != ''">
,b.obj_id
</if>
from goods a
+ LEFT JOIN goods_detail b ON a.goods_id = b.goods_id
join goods_news_category_goods b on a.goods_id = b.goods_id