wugg 8 tháng trước cách đây
mục cha
commit
b685e00661
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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;