|
|
@@ -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) {
|