|
@@ -35,11 +35,13 @@
|
|
|
|
|
|
|
|
<select id="queryNewGoods" resultType="com.gree.mall.miniapp.bean.goods.GoodsNewBean">
|
|
<select id="queryNewGoods" resultType="com.gree.mall.miniapp.bean.goods.GoodsNewBean">
|
|
|
select
|
|
select
|
|
|
- a.*
|
|
|
|
|
|
|
+ a.*,
|
|
|
|
|
+ b.img_url
|
|
|
<if test="objId != null and objId != ''">
|
|
<if test="objId != null and objId != ''">
|
|
|
,b.obj_id
|
|
,b.obj_id
|
|
|
</if>
|
|
</if>
|
|
|
from goods a
|
|
from goods a
|
|
|
|
|
+ LEFT JOIN goods_detail b ON a.goods_id = b.goods_id
|
|
|
<if test="objId != null and objId != ''">
|
|
<if test="objId != null and objId != ''">
|
|
|
join goods_news_category_goods b on a.goods_id = b.goods_id
|
|
join goods_news_category_goods b on a.goods_id = b.goods_id
|
|
|
</if>
|
|
</if>
|