From 59b1e3149e0fd3a18249b002e5396f8d5cbdc2f1 Mon Sep 17 00:00:00 2001 From: liuweiwen <“529520975@qq.com> Date: Mon, 9 Dec 2019 10:08:34 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=A1=E7=90=86=E5=90=8E=E5=8F=B0-=E6=8E=A8?= =?UTF-8?q?=E5=B9=BF=E5=85=AC=E5=8F=B8=E6=90=9C=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PromoteCompanyController.class.php | 6 ++-- .../Admin/View/PromoteCompany/lists.html | 28 ++++++++----------- 2 files changed, 15 insertions(+), 19 deletions(-) diff --git a/Application/Admin/Controller/PromoteCompanyController.class.php b/Application/Admin/Controller/PromoteCompanyController.class.php index 21a30e831..c76267b22 100644 --- a/Application/Admin/Controller/PromoteCompanyController.class.php +++ b/Application/Admin/Controller/PromoteCompanyController.class.php @@ -21,11 +21,13 @@ class PromoteCompanyController extends ThinkController $model = M($this->modelName, 'tab_'); $map = []; $id = intval(I('id', 0)); + $company_name = trim(I('company_name')); if (!empty($id)) { $map['tab_promote_company.id'] = $id; $parameter['id'] = $id; } - + if($company_name) + $map['tab_promote_company.company_name'] = array('like',"%{$company_name}%"); if (isset($_REQUEST['status']) && $_REQUEST['status'] !== '') { $status = intval($_REQUEST['status']); $map['tab_promote_company.status'] = $status; @@ -69,7 +71,7 @@ class PromoteCompanyController extends ThinkController $this->assign('listData', $data); $this->assign('count', $count); $this->assign('commonset', M('Kuaijieicon')->where(['url' => 'Partner/lists'])->find()); - $this->meta_title = '推广公司管理'; + $this->meta_title = '推广公司'; $this->display(); } diff --git a/Application/Admin/View/PromoteCompany/lists.html b/Application/Admin/View/PromoteCompany/lists.html index 2e4c7781a..d80bc3e38 100644 --- a/Application/Admin/View/PromoteCompany/lists.html +++ b/Application/Admin/View/PromoteCompany/lists.html @@ -33,6 +33,7 @@
说明:该功能是用于录入工会所属的推广公司名称