| 12345678910111213141516171819202122232425262728293031323334353637 | 
							- <?php
 
- /**
 
-  * Created by PhpStorm.
 
-  * User: wuzhenke
 
-  * Date: 2019/1/30
 
-  * Time: 19:21
 
-  */
 
- namespace App\Repositories\Jobfair;
 
- use App\Models\Jobfair\JobfairBlacklist;
 
- use Prettus\Repository\Eloquent\BaseRepository;
 
- class JobfairBlackListRepository extends BaseRepository
 
- {
 
-     public function model()
 
-     {
 
-         return JobfairBlacklist::class;
 
-     }
 
-     public function getOne($where)
 
-     {
 
-         return $this->model->where($where)->first();
 
-     }
 
-     public function getCompanyId()
 
-     {
 
-         return $this->model->pluck('company_id')->all();
 
-     }
 
-     public function threeMonthBlackCompany()
 
-     {
 
-         return $this->model->where('type', 1)->where('created_at', '<', date('Y-m-d H:i:s', strtotime('-90 days')))->delete();
 
-     }
 
- }
 
 
  |