xiaoyong931011
2023-02-10 cb5d35ab1b7d235962f2690cb58b210ed81c4232
src/main/resources/mapper/modules/MallGoodsMapper.xml
@@ -72,6 +72,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 +293,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,
@@ -341,4 +349,15 @@
        </if>
    </select>
    <select id="selectMallGoodsListQueryByRuleId" resultType="cc.mrbird.febs.mall.entity.MallGoods">
        select a.goods_name from mall_goods a where a.carriage_rule_id = #{id}
    </select>
    <select id="selectMallGoodsListQueryByRuleIdAndIsSale" resultType="cc.mrbird.febs.mall.entity.MallGoods">
        select a.goods_name
        from mall_goods a
        where a.carriage_rule_id = #{id}
            and a.is_sale = #{isSale}
    </select>
</mapper>