| | |
| | | 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, |
| | |
| | | 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, |
| | |
| | | </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> |