pushCriteria(app(RequestCriteria::class)); } public function getResumeTrainByResumeId($resume_id) { return $this->model->where('resume_id', $resume_id)->orderByRaw('startyear desc,startmonth desc')->get()->toArray(); } public function resumeTrainAdd($date) { return $this->model->create($date); } public function getResumeById($id) { return $this->model->find($id)->toArray(); } public function updateResume($data, $id) { return $this->update($data, $id); } public function resumeTrainDelete($id) { return $this->delete($id); } public function getResumeTrainCount($resume_id) { return $this->model->where('resume_id', $resume_id)->count(); } public function getResumeMany($id) { return $this->model->where('id', $id)->get()->toArray(); } public function getTrainByU($resume_id, $uid) { return $this->model->where(['resume_id'=>$resume_id,'uid'=>$uid])->get(); } public function addInsert($date) { return $this->model->insert($date); } public function getResumeTrain($where) { return $this->model->where($where)->first(); } }