wugg 8 月之前
父节点
当前提交
b685e00661
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/bug/controller/WorkRole.php

+ 1 - 1
app/bug/controller/WorkRole.php

@@ -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;