|
@@ -192,7 +192,7 @@ class WorkRole extends Base{
|
|
|
if($valid->check($param)==false)return error($valid->getError());
|
|
|
|
|
|
$info = WorkUser::withJoin(['workRole'],"left")
|
|
|
- ->where([["companyNo","=",$param['comapnyNo']],["belong","=",$param["belong"]],['account_id','=',$param['account_id']]])
|
|
|
+ ->where([["companyNo","=",$param['companyNo']],["belong","=",$param["belong"]],['account_id','=',$param['account_id']]])
|
|
|
->findOrEmpty();
|
|
|
if($info->isEmpty())return error('账户角色信息不存在');
|
|
|
$info->statusCn= WorkUser::$statusCn[$info->status];
|