fly 4 anni fa
parent
commit
3d467571e5
1 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  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))