->select('it.goods_id','it.goods_name','it.goods_number','it.goods_price','it.supplier_name','o.order_id','o.order_sn','o.order_pay_type','o.order_goods_type','o.order_source','o.create_time','o.status','o.order_amount','o.currency','o.sale_id','o.cancel_reason','i.inv_type','i.invoice_status','a.consignee','s.status as shipping_status','u.user_id','u.mobile','u.email','u.client_source','c.com_name','oe.send_remark')
->select('it.goods_id','it.goods_name','it.goods_number','it.goods_price','it.supplier_name','o.order_id','o.order_sn','o.order_pay_type','o.order_goods_type','o.order_source','o.create_time','o.status','o.order_amount','o.currency','o.sale_id','o.cancel_reason','i.tax_title','i.inv_type','i.invoice_status','a.consignee','s.status as shipping_status','u.user_id','u.mobile','u.email','u.client_source','c.com_name','oe.send_remark')
->groupBy('it.rec_id')
->groupBy('it.rec_id')
->orderBy('o.create_time','DESC')
->orderBy('o.create_time','DESC')
->get();
->get();
...
@@ -874,6 +874,7 @@ Class OrderController extends Controller
...
@@ -874,6 +874,7 @@ Class OrderController extends Controller
$tmp[$i]['create_time_date']='';
$tmp[$i]['create_time_date']='';
$tmp[$i]['create_time_sec']='';
$tmp[$i]['create_time_sec']='';
$tmp[$i]['com_name']='';
$tmp[$i]['com_name']='';
$tmp[$i]['supplier_name']='';
$tmp[$i]['goods_sum']='';
$tmp[$i]['goods_sum']='';
$tmp[$i]['shipping_fee']='';
$tmp[$i]['shipping_fee']='';
$tmp[$i]['extra_fee']='';
$tmp[$i]['extra_fee']='';
...
@@ -885,7 +886,6 @@ Class OrderController extends Controller
...
@@ -885,7 +886,6 @@ Class OrderController extends Controller
$tmp[$i]['shipping_status']='';// 发货状态
$tmp[$i]['shipping_status']='';// 发货状态
$tmp[$i]['inv_type']='';// 发票类型
$tmp[$i]['inv_type']='';// 发票类型
$tmp[$i]['invoice_status']='';// 发票状态
$tmp[$i]['invoice_status']='';// 发票状态
$tmp[$i]['company_name']='';
$tmp[$i]['sale_name']='';// 推送业务员
$tmp[$i]['sale_name']='';// 推送业务员
$tmp[$i]['adtags']='';
$tmp[$i]['adtags']='';
$tmp[$i]['client_source']='';
$tmp[$i]['client_source']='';
...
@@ -897,7 +897,8 @@ Class OrderController extends Controller
...
@@ -897,7 +897,8 @@ Class OrderController extends Controller