xiaoyong931011
2023-03-24 3be9d9273c03c204e37d145e7160fd570a31d26b
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>