1
xiaoyong931011
2023-01-17 61bdd325c8324c24c7092ae1f4e2194fc049457c
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>