|
@@ -265,7 +265,7 @@ class WorkRole extends Base{
|
|
|
|
|
|
foreach ($list->items() as &$item){
|
|
|
$uidArr = WorkUser::withJoin(['workRole'],'left')
|
|
|
- ->where(['account_id'=>$item['account_id'],'companyNo'=>$item['companyCode'],"belong"=>$param['belong']])
|
|
|
+ ->where(['account_id'=>$item['account_id'],'work_user.companyNo'=>$item['companyCode'],"belong"=>$param['belong']])
|
|
|
->findOrEmpty();
|
|
|
$item['role_name'] ='';
|
|
|
$item['user_role_id'] =0;
|