diff --git a/app/crmAdmin/service/CustomerService.php b/app/crmAdmin/service/CustomerService.php index e079a03..504e478 100644 --- a/app/crmAdmin/service/CustomerService.php +++ b/app/crmAdmin/service/CustomerService.php @@ -114,9 +114,12 @@ class CustomerService $query->whereIn('grade', $grade); } - if ($recycle == 'recycle' || $scene == 'recycle' || $seas == 'seas' || $scene == 'seas' || $scene == 'audit') { + if ($recycle == 'recycle' || $scene == 'recycle' || $scene == 'audit') { $query->onlyTrashed(); } + if ($seas == 'seas' || $scene == 'seas') { + $query->withTrashed(); + } if (!$export) { $customer = $query->orderBy('id', 'desc')->paginate($perPage, ['*'], 'page', $page);