|
@@ -111,43 +111,9 @@ FROM (
|
|
|
ORDER BY update_time DESC
|
|
ORDER BY update_time DESC
|
|
|
) AS rn
|
|
) AS rn
|
|
|
FROM (
|
|
FROM (
|
|
|
- SELECT
|
|
|
|
|
- id, group_info_id, merchant_id, user_id, shipping_address_id, purchase_count,
|
|
|
|
|
- order_no, accounts_payable, actual_payment, payment_type, payment_time, coupon,
|
|
|
|
|
- discount, status, remark, create_time, create_by, update_time, update_by,
|
|
|
|
|
- payment_status, payment_status_desc, payment_success_time, del_flg, curier_company,
|
|
|
|
|
- refund_fee, refund_time, anonymous, pick_up_type, ship_time, refund_success_time,
|
|
|
|
|
- refund_recv_accout, refund_account, refund_request_source, card_price, act_price,
|
|
|
|
|
- goods_price_json, payment_sub_type, team_first, refuse_status, prop1, prop2, prop3,
|
|
|
|
|
- point, order_type, trade_amount, refund_type, refund_reason, evaluation,
|
|
|
|
|
- user_refund_time, refund_status, merchant_refund_reason, point_deduct, shipping_cost,
|
|
|
|
|
- merchant_remark, pay_record, order_sub_type, give_user_code, give_order_id, read_flag,
|
|
|
|
|
- give_num, invoice_id, combination_no, open_self, refund_desc, goods_allocate,
|
|
|
|
|
- close_payment_status, close_payment_time, finished_time, expire_time, settlement_amount,
|
|
|
|
|
- platform_coupon, platform_discount, discount_amount, member_discount, shipping_free_id,
|
|
|
|
|
- shipping_free_amount, discount_point, un_shipped_num, pre_un_shipped_num, wait_shipped_num,
|
|
|
|
|
- pre_wait_shipped_num, refuse_time, refuse_notice, pickup_time, waring_type, waring_status,
|
|
|
|
|
- point_type, delivery_end_time, serve_status, self_pickup_time, act_discount
|
|
|
|
|
- FROM raw.raw_trd_card_group_order_info_his_o
|
|
|
|
|
|
|
+ SELECT * FROM raw.raw_trd_card_group_order_info_his_o
|
|
|
UNION ALL
|
|
UNION ALL
|
|
|
- SELECT
|
|
|
|
|
- id, group_info_id, merchant_id, user_id, shipping_address_id, purchase_count,
|
|
|
|
|
- order_no, accounts_payable, actual_payment, payment_type, payment_time, coupon,
|
|
|
|
|
- discount, status, remark, create_time, create_by, update_time, update_by,
|
|
|
|
|
- payment_status, payment_status_desc, payment_success_time, del_flg, curier_company,
|
|
|
|
|
- refund_fee, refund_time, anonymous, pick_up_type, ship_time, refund_success_time,
|
|
|
|
|
- refund_recv_accout, refund_account, refund_request_source, card_price, act_price,
|
|
|
|
|
- goods_price_json, payment_sub_type, team_first, refuse_status, prop1, prop2, prop3,
|
|
|
|
|
- point, order_type, trade_amount, refund_type, refund_reason, evaluation,
|
|
|
|
|
- user_refund_time, refund_status, merchant_refund_reason, point_deduct, shipping_cost,
|
|
|
|
|
- merchant_remark, pay_record, order_sub_type, give_user_code, give_order_id, read_flag,
|
|
|
|
|
- give_num, invoice_id, combination_no, open_self, refund_desc, goods_allocate,
|
|
|
|
|
- close_payment_status, close_payment_time, finished_time, expire_time, settlement_amount,
|
|
|
|
|
- platform_coupon, platform_discount, discount_amount, member_discount, shipping_free_id,
|
|
|
|
|
- shipping_free_amount, discount_point, un_shipped_num, pre_un_shipped_num, wait_shipped_num,
|
|
|
|
|
- pre_wait_shipped_num, refuse_time, refuse_notice, pickup_time, waring_type, waring_status,
|
|
|
|
|
- point_type, delivery_end_time, serve_status, self_pickup_time, act_discount
|
|
|
|
|
- FROM raw.raw_trd_card_group_order_info_inc_d
|
|
|
|
|
|
|
+ SELECT * FROM raw.raw_trd_card_group_order_info_inc_d
|
|
|
) u
|
|
) u
|
|
|
) t
|
|
) t
|
|
|
WHERE t.rn = 1;
|
|
WHERE t.rn = 1;
|