作者 何书鹏
1 个管道 的构建 通过 耗费 3 秒

合并分支 'heshupeng' 到 'master'

能力筛选



查看合并请求 !176
<?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) {
... ...
... ... @@ -22621,7 +22621,7 @@
<div class="row mt0 footer">
<div class="col-md-6" align="left">
Generated on 2020-12-20 20:06:22 </div>
Generated on 2020-12-21 11:33:56 </div>
<div class="col-md-6" align="right">
<a href="./" target="_blank">企智帮</a>
</div>
... ...