xiaoyong931011
2022-12-22 ab13cdcfe8c9852be7a606c272a42bb0fa7d2cf1
src/main/resources/mapper/modules/MallGoodsSkuMapper.xml
@@ -26,7 +26,11 @@
    </select>
    <select id="selectSkuByGoodsId" resultType="cc.mrbird.febs.mall.entity.MallGoodsSku">
        select a.*, b.name styleName from mall_goods_sku a
        select
               a.*,
               b.name styleName,
               b.name goodsName
        from mall_goods_sku a
        inner join mall_goods_style b on a.style_id=b.id
        where a.goods_id=#{id}
    </select>