xiaoyong931011
2023-02-13 0ef2ea54b85d11f537a761e2028a40ec1ec1df1b
src/main/resources/mapper/modules/MallGoodsMapper.xml
@@ -22,6 +22,10 @@
        <result property="hasCarriage" column="has_carriage" />
        <result property="carriage" column="carriage" />
        <result property="isNormal" column="is_normal" />
        <result property="carriageType" column="carriage_type" />
        <result property="carriageAmount" column="carriage_amount" />
        <result property="carriageRuleId" column="carriage_rule_id" />
        <result property="goodsWeight" column="goods_weight" />
        <collection property="styles" ofType="cc.mrbird.febs.mall.entity.MallGoodsStyle">
            <id property="id" column="style_id" />
            <result property="name" column="style_name" />
@@ -72,6 +76,10 @@
                a.present_price,
                a.score,
                a.is_hot,
                a.carriage_type,
                a.carriage_amount,
                a.carriage_rule_id,
                a.goods_weight,
                min(b.id) skuId,
                min(b.present_price) price,
                sum(b.stock) stock,
@@ -289,6 +297,10 @@
        a.present_price,
        a.score,
        a.is_hot,
        a.carriage_type,
        a.carriage_amount,
        a.carriage_rule_id,
        a.goods_weight,
        min(b.id) skuId,
        min(b.present_price) price,
        sum(b.stock) stock,