Commit 5462e1c6 authored by zhuwei's avatar zhuwei

客户关联记录

parent 9a30caa2
......@@ -752,7 +752,8 @@ class UserService
$params_['bind_id'] = $params_bind_id;
$res = $this->user->updateUsers($params_user_id,$params_);
if($res ==1){
$this->userDoLog($agent_id,$params_user_id,$params_bind_id,1);
$this->userDoLog($params_user_id,$params_bind_id,$agent_id,1);
$this->userDoLog($params_bind_id,$params_user_id,$agent_id,1);
$redis_service = new RedisCacheService();
$redis_service->userCache($user_id);
return true;
......@@ -761,6 +762,22 @@ class UserService
}
}
/**
* 记录操作日志
* @param $user_id
* @param $remove_bind_id
* @param $agent_id
* @param int $type
*/
private function userDoLog($user_id, $remove_bind_id,$agent_id,$type=0)
{
$records = new GOperatingRecords();
$remark = '与ID: '.$remove_bind_id.'解除绑定关系';
if($type == 1){
$remark = '与ID: '.$remove_bind_id.'添加绑定';
}
$records->record($agent_id, 8, $remark, '',$user_id);
}
/**
* 解除绑定关系
* @param $now_user_id //当前详情页客户
......@@ -805,6 +822,9 @@ class UserService
return 0;
}
/**
* 客户绑定详情
* @param $user_id
......@@ -831,21 +851,6 @@ class UserService
return $user_info_list;
}
/**
* 记录操作日志
* @param $id
* @param $remove_bind_id
* @param $agent_id
*/
private function userDoLog($id, $remove_bind_id,$agent_id,$type=0)
{
$records = new GOperatingRecords();
$remark = '与ID: '.$remove_bind_id.'解除绑定关系';
if($type == 1){
$remark = '与ID: '.$remove_bind_id.'添加绑定';
}
$records->record($agent_id, 8, $remark, '',$id);
}
/**
......
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