|
@@ -41,19 +41,9 @@ class School extends Controller
|
|
|
*/
|
|
|
public function index()
|
|
|
{
|
|
|
- $this->title = '学校管理';
|
|
|
- $query = $this->_query($this->table);
|
|
|
- $query->equal('status')->dateBetween('login_at,create_at');
|
|
|
- $query->like('name,contact_phone#phone,contact_mail#mail');
|
|
|
- // 加载对应数据列表
|
|
|
- $this->type = input('type', 'all');
|
|
|
- if ($this->type === 'all') {
|
|
|
- $query->where(['is_deleted' => 0, 'status' => 1]);
|
|
|
- } elseif ($this->type = 'recycle') {
|
|
|
- $query->where(['is_deleted' => 0, 'status' => 0]);
|
|
|
- }
|
|
|
- // 列表排序并显示
|
|
|
- $query->order('sort desc,id desc')->page();
|
|
|
+ $this->title = '学校信息管理';
|
|
|
+ $query = $this->_query($this->table)->where('is_deleted',0)->like('phone')->like('name')->equal('type,county_id');
|
|
|
+ $query->order('id desc')->page();
|
|
|
}
|
|
|
|
|
|
/**
|