JobfairPersonSignedService.php 922 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: zhanghao
  5. * Date: 2019/7/24
  6. * Time: 10:42
  7. */
  8. namespace App\Services\Jobfair;
  9. use App\Exceptions\ResponseException;
  10. use App\Repositories\Jobfair\JobfairPersonSignedRepository;
  11. use App\Repositories\ResumeRepository;
  12. class JobfairPersonSignedService
  13. {
  14. protected $jobfairPersonSignedRepository;
  15. /**
  16. * JobfairPersonalJopApplyService constructor.
  17. * @param $resumeRepository
  18. */
  19. public function __construct(JobfairPersonSignedRepository $jobfairPersonSignedRepository)
  20. {
  21. $this->jobfairPersonSignedRepository = $jobfairPersonSignedRepository;
  22. }
  23. //猜你喜欢
  24. public function likeResumes($category,$jobfair_id)
  25. {
  26. foreach ($category as $value) {
  27. $where[] = ['intention_jobs_id','like','%'.$value.'%'];
  28. }
  29. return $this->jobfairPersonSignedRepository->likeResumes($where,$jobfair_id);
  30. }
  31. }