正在显示
1 个修改的文件
包含
14 行增加
和
0 行删除
| @@ -544,6 +544,20 @@ class ProjectController extends BaseController | @@ -544,6 +544,20 @@ class ProjectController extends BaseController | ||
| 544 | $this->map['entry_position'] = ['in',$this->map['entry_position']]; | 544 | $this->map['entry_position'] = ['in',$this->map['entry_position']]; |
| 545 | } | 545 | } |
| 546 | $lists = $hrManagerModel->list($this->map,'id',['id','manage_id','name','entry_position','is_leader']); | 546 | $lists = $hrManagerModel->list($this->map,'id',['id','manage_id','name','entry_position','is_leader']); |
| 547 | + | ||
| 548 | + //zgj 售后技术排序调整 start | ||
| 549 | + if(isset($this->map['entry_position'][1]) && in_array(45,$this->map['entry_position'][1])){ | ||
| 550 | + $ar_sort = ['王娇'=>1,'银蝶'=>2,'胡哲'=>3,'郭婷婷'=>4,'徐庆'=>5,'邓锦康'=>6,'兰波'=>7]; | ||
| 551 | + foreach ($lists as $k=>$v){ | ||
| 552 | + $lists[$k]['sort'] = 0; | ||
| 553 | + if(in_array($v['name'],array_keys($ar_sort))){ | ||
| 554 | + $lists[$k]['sort'] = $ar_sort[$v['name']]; | ||
| 555 | + } | ||
| 556 | + } | ||
| 557 | + $sort_arr = array_column($lists, 'sort'); | ||
| 558 | + array_multisort($sort_arr,SORT_DESC,$lists); | ||
| 559 | + } | ||
| 560 | + //售后技术排序调整 end | ||
| 547 | $this->response('success',Code::SUCCESS,$lists); | 561 | $this->response('success',Code::SUCCESS,$lists); |
| 548 | } | 562 | } |
| 549 | 563 |
-
请 注册 或 登录 后发表评论