wugg 8 kuukautta sitten
vanhempi
commit
b685e00661
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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;