xuhy
2025-08-26 f221182c97f52bc7121b042b7ab16bf13813f851
ruoyi-service/ruoyi-order/src/main/resources/mapper/order/OrderMapper.xml
@@ -170,22 +170,21 @@
            og.goods_id,
            og.selling_price,
            og.good_json,
        o.pay_method,
            o.pay_method,
            o.payment_amount orderMoney,
            o.point ,
            o.serial_number,
        o.shop_id as shopId
            o.shop_id as shopId
        FROM
            t_order_good og
                LEFT JOIN t_order o ON og.order_id = o.id
        left join
        t_order_good og
            LEFT JOIN t_order o ON og.order_id = o.id
        where  o.del_flag = 0 and o.pay_status = 2
        <if test="null != item.orderNumber and '' != item.orderNumber">
            and o.order_number like CONCAT('%', #{item.orderNumber}, '%')
        </if>
        <if test="null != item.goodName and '' != item.goodName">
            and good_name like CONCAT('%', #{item.goodName}, '%')
            and og.good_name like CONCAT('%', #{item.goodName}, '%')
        </if>
        <if test="null != item.appUserIds and item.appUserIds.size() > 0">
@@ -204,7 +203,7 @@
            and o.order_status in (4, 8)
        </if>
        <if test="null != item.shopIds and item.shopIds.size() > 0">
            and shop_id in
            and o.shop_id in
            <foreach collection="item.shopIds" separator="," item="tem" index="index" open="(" close=")">
                #{tem}
            </foreach>