Field = new Field($this->app); $this->department = new DepartmentModel(); $this->model = new CostProjectModel(); $this->uid = get_login_admin('id'); } public function cdatalist(){ // if (request()->isAjax()) { $param = get_params(); $inarr=array(); $rows = empty($param['limit']) ? get_config('app . page_size') : $param['limit']; $order = empty($param['order']) ? 'id desc' : $param['order']; $list = $this->model->where("id",$param["project_id"])->field('review_head,operate_head,operate_team')->select()->toArray(); $a = $list[0]; $ids = $a["review_head"].','.$a["operate_head"].','.$a["operate_team"]; $ids = explode(",",$ids); // Db::name("admin")->whereIn("id",$ids)->join() halt($ids); // }else{ // // } } public function gdatalist(){ if (request()->isAjax()) { $param = get_params(); $rows = empty($param['limit']) ? get_config('app . page_size') : $param['limit']; $order = empty($param['order']) ? 'id desc' : $param['order']; $list = $this->model->where("id",$param["project_id"])->field('')->select()->toArray(); }else{ } } }