Commit f97e516b authored by hujun's avatar hujun

1

parent f6bae3c6
...@@ -133,10 +133,6 @@ class BrokerService ...@@ -133,10 +133,6 @@ class BrokerService
$this->m_agent->saveAgent(['id'=>$agent_old[0]['id'],'status'=>3]); $this->m_agent->saveAgent(['id'=>$agent_old[0]['id'],'status'=>3]);
} }
} else { } else {
$change_old_id = $agent_old[0]['id'];
//将原来的id作为新的
$data['id'] = $agent_old[0]['id'];
$id = $this->m_agent->saveAgent($data);
//新增一条转勤状态 //新增一条转勤状态
$new_agent['name'] = $agent_old[0]['name']; $new_agent['name'] = $agent_old[0]['name'];
$new_agent['phone'] = $agent_old[0]['phone']; $new_agent['phone'] = $agent_old[0]['phone'];
...@@ -153,6 +149,11 @@ class BrokerService ...@@ -153,6 +149,11 @@ class BrokerService
$new_agent['auth_group_id'] = $agent_old[0]['auth_group_id']; $new_agent['auth_group_id'] = $agent_old[0]['auth_group_id'];
$new_agent['level'] = $agent_old[0]['level']; $new_agent['level'] = $agent_old[0]['level'];
$this->m_agent->saveAgent($new_agent); $this->m_agent->saveAgent($new_agent);
$change_old_id = $agent_old[0]['id'];
//将原来的id作为新的
$data['id'] = $agent_old[0]['id'];
$id = $this->m_agent->saveAgent($data);
} }
if ($id > 0) { if ($id > 0) {
......
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