Ver Fonte

type change

fly há 4 anos atrás
pai
commit
eed5bd9218
1 ficheiros alterados com 5 adições e 0 exclusões
  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))