| | |
| | | </collection> |
| | | </resultMap> |
| | | |
| | | <select id="selectApiOrderListInPage" resultType="cc.mrbird.febs.mall.entity.MallOrderInfo"> |
| | | <select id="selectApiOrderListInPage" resultMap="OrderInfoMap"> |
| | | select |
| | | a.* |
| | | * |
| | | from mall_order_info a |
| | | inner join mall_order_item b on a.id=b.order_id |
| | | <where> |
| | |
| | | |
| | | <select id="getGoodsStatisticsInPage" resultType="cc.mrbird.febs.mall.vo.AdminGoodsStatisticsVo"> |
| | | select |
| | | CONCAT(goods_name, '-', sku_name) goodsName, |
| | | CONCAT(goods_name, '---', sku_name) goodsName, |
| | | SUM(cnt) goodsCnt |
| | | from mall_order_item |
| | | <where> |
| | |
| | | </foreach> |
| | | </if> |
| | | </where> |
| | | GROUP BY goods_id,goods_name |
| | | GROUP BY goods_id,goods_name,sku_name |
| | | ORDER BY goods_id desc |
| | | </select> |
| | | |