| | |
| | | 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"> |
| | |
| | | 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> |