|
@@ -219,6 +219,11 @@ class LandingPageLinkService
|
|
}
|
|
}
|
|
if (isset($params['type']) && $params['type']) {
|
|
if (isset($params['type']) && $params['type']) {
|
|
if ($params['type'] == 'no_log') {
|
|
if ($params['type'] == 'no_log') {
|
|
|
|
+ $sql->whereNotExists(function ($query) use ($params) {
|
|
|
|
+ $query->select(DB::raw(1))
|
|
|
|
+ ->from('report_user_charge_records')
|
|
|
|
+ ->whereRaw('report_user_charge_records.order_no = orders.trade_no');
|
|
|
|
+ });
|
|
} else {
|
|
} else {
|
|
$sql->whereExists(function ($query) use ($params) {
|
|
$sql->whereExists(function ($query) use ($params) {
|
|
$query->select(DB::raw(1))
|
|
$query->select(DB::raw(1))
|