正在显示
2 个修改的文件
包含
13 行增加
和
2 行删除
1 | <?php | 1 | <?php |
2 | namespace app\mobile\controller; | 2 | namespace app\mobile\controller; |
3 | 3 | ||
4 | +use app\mobile\model\UserJobAbility; | ||
4 | use think\Db; | 5 | use think\Db; |
5 | use app\common\controller\Api; | 6 | use app\common\controller\Api; |
6 | use app\mobile\model\UserJob; | 7 | use app\mobile\model\UserJob; |
@@ -87,7 +88,17 @@ class CompanyJob extends Api | @@ -87,7 +88,17 @@ class CompanyJob extends Api | ||
87 | } | 88 | } |
88 | // 资质能力 | 89 | // 资质能力 |
89 | if(!empty($user_job_ability_id)){ | 90 | if(!empty($user_job_ability_id)){ |
90 | - $where[] = "FIND_IN_SET('{$user_job_ability_id}',user_job_ability_ids)"; | 91 | + $ability = UserJobAbility::get($user_job_ability_id); |
92 | + if($ability['pid'] == 0){ | ||
93 | + $ability_list = UserJobAbility::where('pid',$user_job_ability_id)->select(); | ||
94 | + $ability_arr = []; | ||
95 | + foreach ($ability_list as $v){ | ||
96 | + $ability_arr[] = "FIND_IN_SET({$v['id']},user_job_ability_ids)"; | ||
97 | + } | ||
98 | + $where[] = implode(' OR ',$ability_arr); | ||
99 | + }else{ | ||
100 | + $where[] = "FIND_IN_SET('{$user_job_ability_id}',user_job_ability_ids)"; | ||
101 | + } | ||
91 | } | 102 | } |
92 | // 整合where | 103 | // 整合where |
93 | $where = function ($query) use ($where) { | 104 | $where = function ($query) use ($where) { |
@@ -22621,7 +22621,7 @@ | @@ -22621,7 +22621,7 @@ | ||
22621 | 22621 | ||
22622 | <div class="row mt0 footer"> | 22622 | <div class="row mt0 footer"> |
22623 | <div class="col-md-6" align="left"> | 22623 | <div class="col-md-6" align="left"> |
22624 | - Generated on 2020-12-20 20:06:22 </div> | 22624 | + Generated on 2020-12-21 11:33:56 </div> |
22625 | <div class="col-md-6" align="right"> | 22625 | <div class="col-md-6" align="right"> |
22626 | <a href="./" target="_blank">企智帮</a> | 22626 | <a href="./" target="_blank">企智帮</a> |
22627 | </div> | 22627 | </div> |
-
请 注册 或 登录 后发表评论