moonsflyer 8 months ago
parent
commit
e82890bd7f
1 changed files with 2 additions and 1 deletions
  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) {