Browse Source

type change

fly 4 năm trước cách đây
mục cha
commit
3d467571e5
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  1. 5 0
      src/Services/LandingPage/LandingPageLinkService.php

+ 5 - 0
src/Services/LandingPage/LandingPageLinkService.php

@@ -219,6 +219,11 @@ class LandingPageLinkService
         }
         if (isset($params['type']) && $params['type']) {
             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 {
                 $sql->whereExists(function ($query) use ($params) {
                     $query->select(DB::raw(1))