例如:
$order = DB::table('third_orders')->select(DB::raw('count(*) as count_order, sum(order_price) as count_price'))
? ? ->where(['third_key' => $third_key])->get()->sum('order_price');
或者:
$order = DB::table('third_orders')->where(['third_key' => $third_key])->count();//總訂單數(shù)
//? $price = DB::table('third_orders')->where(['third_key' => $third_key])->sum("order_price");//總價格