|
@@ -41,7 +41,7 @@ class LeadMessage extends Controller
|
|
|
if ($companyName) $map[] = ['company_name', 'like', "%$companyName%"];
|
|
if ($companyName) $map[] = ['company_name', 'like', "%$companyName%"];
|
|
|
if (!is_null($status)) $map[] = ['status', '=', $status];
|
|
if (!is_null($status)) $map[] = ['status', '=', $status];
|
|
|
// 查询系统用户
|
|
// 查询系统用户
|
|
|
- $Paginator = $LeadMessageModel->query()->where($map)->orderByDesc('id')->paginate($limit, ['id', 'phone', 'company_name', 'position', 'remarks', 'status', 'insert_time', 'update_time']);
|
|
|
|
|
|
|
+ $Paginator = $LeadMessageModel->query()->where($map)->orderByDesc('id')->paginate($limit);
|
|
|
// 获取数据
|
|
// 获取数据
|
|
|
$data['total'] = $Paginator->total();
|
|
$data['total'] = $Paginator->total();
|
|
|
$data['current_page'] = $Paginator->currentPage();
|
|
$data['current_page'] = $Paginator->currentPage();
|