| | |
| | | a.thumb, |
| | | a.original_price, |
| | | a.present_price, |
| | | a.score, |
| | | a.is_hot, |
| | | min(b.present_price) price, |
| | | sum(b.sku_volume) saleVolume |
| | |
| | | a.goods_name goodsName |
| | | from mall_goods a |
| | | </select> |
| | | |
| | | <select id="selectOrderGoodsList" resultType="cc.mrbird.febs.mall.entity.MallGoods"> |
| | | select a.*,c.order_no from mall_goods a |
| | | inner join mall_order_item b on a.id=b.goods_id |
| | | inner join mall_order_info c on b.order_id=c.ID |
| | | where c.status=4 |
| | | <if test="memberId != null"> |
| | | and c.member_id=#{memberId} |
| | | </if> |
| | | <if test="date != null"> |
| | | and date_format(c.receving_time, '%Y-%m-%d') = date_format(#{date}, '%Y-%m-%d') |
| | | </if> |
| | | </select> |
| | | </mapper> |