moonsflyer il y a 8 mois
Parent
commit
e82890bd7f
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      application/admin/controller/qingdong/customer/Customer.php

+ 2 - 1
application/admin/controller/qingdong/customer/Customer.php

@@ -1354,7 +1354,8 @@ class Customer extends Base
                     $query->where(['owner_staff_id' => $owner_staff_id]);
                 }
             })
-            ->where('owner_staff_id != 0 and owner_staff_id is not null')->order($sort, $order)->select();
+            ->where('owner_staff_id != 0 and owner_staff_id is not null')->order($sort, $order)->fetchSql()->select();
+        outFileLog($list,'customer','list-export-sql');
         $list = collection($list)->toArray();
         outFileLog($list,'customer','list-export');
         if (!$list) {