pushCriteria(app(RequestCriteria::class)); } /**获取单条职位联系人 * @param $data * @return mixed */ public function getContact($data) { return $this->model->where($data)->first(); } public function store($data) { return $this->model->create($data); } public function update(array $data, $id) { return $this->model->where('pid', $id)->update($data); } public function deleteJobContact($ids) { return $this->model->whereIn('pid', $ids)->delete(); } }