|
|
<?php
|
|
|
namespace app\mobile\controller;
|
|
|
|
|
|
use app\mobile\model\UserJobAbility;
|
|
|
use think\Db;
|
|
|
use app\common\controller\Api;
|
|
|
use app\mobile\model\UserJob;
|
...
|
...
|
@@ -87,7 +88,17 @@ class CompanyJob extends Api |
|
|
}
|
|
|
// 资质能力
|
|
|
if(!empty($user_job_ability_id)){
|
|
|
$where[] = "FIND_IN_SET('{$user_job_ability_id}',user_job_ability_ids)";
|
|
|
$ability = UserJobAbility::get($user_job_ability_id);
|
|
|
if($ability['pid'] == 0){
|
|
|
$ability_list = UserJobAbility::where('pid',$user_job_ability_id)->select();
|
|
|
$ability_arr = [];
|
|
|
foreach ($ability_list as $v){
|
|
|
$ability_arr[] = "FIND_IN_SET({$v['id']},user_job_ability_ids)";
|
|
|
}
|
|
|
$where[] = implode(' OR ',$ability_arr);
|
|
|
}else{
|
|
|
$where[] = "FIND_IN_SET('{$user_job_ability_id}',user_job_ability_ids)";
|
|
|
}
|
|
|
}
|
|
|
// 整合where
|
|
|
$where = function ($query) use ($where) {
|
...
|
...
|
|