| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 | 
							- <?php
 
- /**
 
-  * Created by PhpStorm.
 
-  * User: wuzhenke
 
-  * Date: 2019/1/23
 
-  * Time: 10:13
 
-  */
 
- namespace App\Repositories\Jobfair;
 
- use App\Models\Jobfair\JobfairJobsContact;
 
- use Prettus\Repository\Criteria\RequestCriteria;
 
- use Prettus\Repository\Eloquent\BaseRepository;
 
- class JobfairJobsContactRepository extends BaseRepository
 
- {
 
-     public function model()
 
-     {
 
-         return JobfairJobsContact::class;
 
-     }
 
-     public function boot()
 
-     {
 
-         $this->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();
 
-     }
 
- }
 
 
  |