update
This commit is contained in:
parent
75095c1deb
commit
fa291dcd98
@ -160,7 +160,7 @@ class AdminController extends BaseAdminController
|
||||
$where[] = ['id','<>',$params['exclude_id']];
|
||||
}
|
||||
if(!empty($params['org_id'])){
|
||||
$where[] = ['org_id','<>',$params['org_id']];
|
||||
$where[] = ['org_id','=',$params['org_id']];
|
||||
}
|
||||
$data = Admin::field('id,name,avatar,org_id,dept_id,job_id')->where($where)->select()->each(function($item){
|
||||
$job = Jobs::field('name')->where('id',$item['job_id'])->findOrEmpty();
|
||||
|
Loading…
x
Reference in New Issue
Block a user