Commit 812e2ec7 authored by zhuwei's avatar zhuwei

处理转勤经纪人ID变更

parent a151865c
......@@ -148,4 +148,25 @@ class UserAgentService
}
/**
* 处理转勤经纪人ID变更
* @param $id_new
* @param $id_old
* @return bool
*/
public function changeAgentIdForChangeZone($id_new,$id_old)
{
if(!$id_new)
return false;
$where['agent_id'] = $id_old;
$params['agent_id'] = $id_new;
$res = $this->m_user_agent->updateUserAgent($where, $params);
if($res){
return true;
}else{
return false;
}
}
}
\ No newline at end of file
......@@ -646,7 +646,6 @@ class UserService
}else{//新增
$s_user_site->addUserSite($user_id,$v);
}
}
$redis_service = new RedisCacheService();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment