| | |
| | | <if test="param.endDate!=null and param.endDate!=''"> |
| | | AND Date(toc.create_time) <= #{param.endDate} |
| | | </if> |
| | | GROUP BY tog.goods_name |
| | | GROUP BY mapValue |
| | | ORDER BY mapValue DESC LIMIT 15 |
| | | </select> |
| | | |
| | |
| | | WHEN 2 THEN "秒杀活动订单" |
| | | WHEN 3 THEN "线下创建订单" |
| | | END mapKey, |
| | | IFNULL(SUM(toc.order_money),0) mapValue |
| | | IFNULL(SUM(tog.goods_receivable_money),0) mapValue |
| | | FROM t_order toc |
| | | INNER JOIN t_order_goods tog ON tog.order_id = toc.order_id |
| | | WHERE toc.del_flag = 0 AND toc.order_status = 3 |
| | | <if test="param.goodsType != null and param.goodsType != ''"> |
| | | AND tog.goods_type = #{param.goodsType} |
| | |
| | | <if test="param.endDate!=null and param.endDate!=''"> |
| | | AND Date(toc.create_time) <= #{param.endDate} |
| | | </if> |
| | | GROUP BY toc.order_from |
| | | ORDER BY SUM(toc.order_money) DESC LIMIT 15 |
| | | GROUP BY mapKey |
| | | ORDER BY mapValue DESC LIMIT 15 |
| | | </select> |
| | | |
| | | <select id="totalMerOrder" resultType="com.ruoyi.order.domain.vo.MerTotalOrderVo"> |