bug
jiangqs
2023-08-26 3660bfa60949ab823f6604b3e49067275c481b22
ruoyi-modules/ruoyi-order/src/main/resources/mapper/order/OrderMapper.xml
@@ -1555,7 +1555,7 @@
        <if test="param.endDate!=null and param.endDate!=''">
            AND Date(toc.create_time) &lt;= #{param.endDate}
        </if>
        GROUP BY tog.goods_name
        GROUP BY mapValue
        ORDER BY mapValue DESC LIMIT 15
    </select>
@@ -1566,8 +1566,9 @@
        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}
@@ -1587,8 +1588,8 @@
        <if test="param.endDate!=null and param.endDate!=''">
            AND Date(toc.create_time) &lt;= #{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">