->inRandomOrder()
pay_uid_amount_map = Pay::select(['uid', DB::raw("sum(money) as amount")])->where('date', pay_uid_amount_map2 = PayV2::select(['uid', DB::raw("sum(money) as amount")])->where('date', $date)
->where('trade_status', 'success')->groupBy('uid');
$pay_uid_amount_map = $pay_uid_amount_map2->union($pay_uid_amount_map)->pluck('amount', 'uid');
网友评论