| @@ -495,7 +495,7 @@ | |||||
| select 0 level,o.compose_order_type,o.compose_order_id,o.payment,o.order_status,o.create_date, | select 0 level,o.compose_order_type,o.compose_order_id,o.payment,o.order_status,o.create_date, | ||||
| o.id,o.order_number,o.tenant_id,o.parent_tenant_id,o.c_user_id,o.coupon_channel_id,o.product_id,o.payment_type,o.payment_time,o.update_date, | o.id,o.order_number,o.tenant_id,o.parent_tenant_id,o.c_user_id,o.coupon_channel_id,o.product_id,o.payment_type,o.payment_time,o.update_date, | ||||
| c.type,c.pay_vendor,c.cover_img,c.title,c.sub_title,c.sale_price,c.use_price,c.price,c.tail_price,c.orig_price,c.unit,c.valid_start_date,c.valid_end_date,c.pick_start_date,c.pick_end_date, | |||||
| c.type,c.cover_img,c.title,c.sub_title,c.sale_price,c.use_price,c.price,c.tail_price,c.orig_price,c.unit,c.valid_start_date,c.valid_end_date,c.pick_start_date,c.pick_end_date, | |||||
| o.`coupon_number`,o.`freight_price`,o.`shipping_type`,o.`shipping_address` | o.`coupon_number`,o.`freight_price`,o.`shipping_type`,o.`shipping_address` | ||||
| from wx_coupon c,wx_order o | from wx_coupon c,wx_order o | ||||
| where o.product_id = c.id and o.order_status in (0,2) | where o.product_id = c.id and o.order_status in (0,2) | ||||
| @@ -522,7 +522,7 @@ | |||||
| select 0 level, o.compose_order_type,o.compose_order_id,o.payment,o.order_status,o.create_date, | select 0 level, o.compose_order_type,o.compose_order_id,o.payment,o.order_status,o.create_date, | ||||
| o.id,o.order_number,o.tenant_id,o.parent_tenant_id,o.c_user_id,o.coupon_channel_id,o.product_id,o.payment_type,o.payment_time,o.update_date, | o.id,o.order_number,o.tenant_id,o.parent_tenant_id,o.c_user_id,o.coupon_channel_id,o.product_id,o.payment_type,o.payment_time,o.update_date, | ||||
| c.type,c.pay_vendor,c.cover_img,c.title,c.sub_title,c.sale_price,c.use_price,c.price,c.tail_price,c.orig_price,c.unit,c.valid_start_date,c.valid_end_date,c.pick_start_date,c.pick_end_date, | |||||
| c.type,c.cover_img,c.title,c.sub_title,c.sale_price,c.use_price,c.price,c.tail_price,c.orig_price,c.unit,c.valid_start_date,c.valid_end_date,c.pick_start_date,c.pick_end_date, | |||||
| o.`coupon_number`,o.`freight_price`,o.`shipping_type`,o.`shipping_address` | o.`coupon_number`,o.`freight_price`,o.`shipping_type`,o.`shipping_address` | ||||
| from wx_coupon c,wx_order o | from wx_coupon c,wx_order o | ||||
| where o.product_id = c.id and o.order_status in (1,3,4,5) | where o.product_id = c.id and o.order_status in (1,3,4,5) | ||||
| @@ -548,7 +548,7 @@ | |||||
| select 1 level,o.compose_order_type,o.compose_order_id,sum(o.payment) payment,o.order_status,min(create_date) create_date, | select 1 level,o.compose_order_type,o.compose_order_id,sum(o.payment) payment,o.order_status,min(create_date) create_date, | ||||
| null ,null ,null ,null ,null ,null ,null ,null ,null ,null , | null ,null ,null ,null ,null ,null ,null ,null ,null ,null , | ||||
| null ,null ,null ,null ,null ,null ,null ,null ,null ,null ,null ,null ,null ,null ,null , | |||||
| null ,null ,null ,null ,null ,null ,null ,null ,null ,null ,null ,null ,null ,null , | |||||
| null ,null ,null ,null | null ,null ,null ,null | ||||
| from wx_order o | from wx_order o | ||||
| where o.order_status in (0,2) | where o.order_status in (0,2) | ||||