|
|
@ -7,8 +7,8 @@ |
|
|
|
<select id="listPage" resultType="com.yxt.goods.biz.goodscategorybrand.GoodsCategoryBrandVo"> |
|
|
|
select s.*,a.goodsTypeName as categoryName ,b.brandName as brandName; |
|
|
|
from base_category_brand s |
|
|
|
left join base_goods_type a on a.sid =s.ceategorySid |
|
|
|
left join base_brand_info b on b.sid= s.brandSid |
|
|
|
left join goods_type a on a.sid =s.ceategorySid |
|
|
|
left join goods_brand_info b on b.sid= s.brandSid |
|
|
|
<where> |
|
|
|
${ew.sqlSegment} |
|
|
|
</where> |
|
|
@ -16,14 +16,14 @@ |
|
|
|
<select id="getSkusBySpuSid" resultType="com.yxt.goods.biz.goodscategorybrand.GoodsCategoryBrandVo"> |
|
|
|
select s.*, |
|
|
|
s.own_spec as ownSpec |
|
|
|
from base_goods_sku s |
|
|
|
from goods_sku s |
|
|
|
where s.goodsSpuSid = #{spuSid} |
|
|
|
</select> |
|
|
|
<select id="getVoBySid" resultType="com.yxt.goods.biz.goodscategorybrand.GoodsCategoryBrandVo"> |
|
|
|
select s.*,a.goodsTypeName as categoryName ,b.brandName as brandName; |
|
|
|
from base_category_brand s |
|
|
|
left join base_goods_type a on a.sid =s.ceategorySid |
|
|
|
left join base_brand_info b on b.sid= s.brandSid |
|
|
|
left join goods_type a on a.sid =s.ceategorySid |
|
|
|
left join goods_brand_info b on b.sid= s.brandSid |
|
|
|
where s.sid = #{sid} |
|
|
|
</select> |
|
|
|
</mapper> |