From 240903a8f1c62c9db5f27502ab42fbc22abb3fa8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=AF=E7=AB=8B?= Date: Fri, 12 Mar 2021 18:14:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/data/controller/ShopTruckCompany.php | 4 ++-- app/data/view/shop_truck_company/index_search.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/data/controller/ShopTruckCompany.php b/app/data/controller/ShopTruckCompany.php index 90fc3dc83..288d83d30 100644 --- a/app/data/controller/ShopTruckCompany.php +++ b/app/data/controller/ShopTruckCompany.php @@ -35,8 +35,8 @@ class ShopTruckCompany extends Controller $query->like('name,code')->equal('status')->dateBetween('craete_at'); // 加载对应数据 $this->type = $this->request->get('type', 'index'); - if ($this->type === 'index') $query->where(['status' => '1']); - elseif ($this->type === 'recycle') $query->where(['status' => '0']); + if ($this->type === 'index') $query->where(['status' => 1]); + elseif ($this->type === 'recycle') $query->where(['status' => 0]); // 列表显示分页 $query->where(['deleted' => 0])->order('sort desc,id desc')->page(); } diff --git a/app/data/view/shop_truck_company/index_search.html b/app/data/view/shop_truck_company/index_search.html index 27f6a6aa8..03617b7a4 100644 --- a/app/data/view/shop_truck_company/index_search.html +++ b/app/data/view/shop_truck_company/index_search.html @@ -23,7 +23,7 @@
- +