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 @@
- +