|
@@ -225,6 +225,14 @@ class LandingPageLinkService
|
|
->where('report_user_charge_records.type', $params['type']);
|
|
->where('report_user_charge_records.type', $params['type']);
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
+ if (isset($params['status'])) {
|
|
|
|
+ $sql->whereExists(function ($query) use ($params) {
|
|
|
|
+ $query->select(DB::raw(1))
|
|
|
|
+ ->from('report_user_charge_records')
|
|
|
|
+ ->whereRaw('report_user_charge_records.order_no = orders.trade_no')
|
|
|
|
+ ->where('report_user_charge_records.status', $params['status']);
|
|
|
|
+ });
|
|
|
|
+ }
|
|
if ($is_page) {
|
|
if ($is_page) {
|
|
return $sql->paginate();
|
|
return $sql->paginate();
|
|
} else {
|
|
} else {
|