Commit 055a66a6 authored by zhuwei's avatar zhuwei

记录操作日志

parent 50b56d8e
...@@ -185,10 +185,7 @@ class BrokerService ...@@ -185,10 +185,7 @@ class BrokerService
$id = $this->m_agent->saveAgent($save_data); $id = $this->m_agent->saveAgent($save_data);
//todo 管理员对经纪人状态操作记录 //todo 管理员对经纪人状态操作记录
$agent_status =[0=>'正常',1=>'长假',2=>'离职',3=>'转勤']; $this->rootDOLog($id, $data['status']);
$records = new GOperatingRecords();
$remark = '修改为 '.$agent_status[$data['status']];
$result = $records->record(0, 7, $remark, '',$id);
//同时修改设备绑定表 //同时修改设备绑定表
try { try {
...@@ -306,7 +303,9 @@ class BrokerService ...@@ -306,7 +303,9 @@ class BrokerService
$this->transferUserHouse($transfer_agent, $agent_old[0]['id'], $operation_id); $this->transferUserHouse($transfer_agent, $agent_old[0]['id'], $operation_id);
$id = $transfer_agent; $id = $transfer_agent;
} }
//todo 1
//todo 管理员对经纪人状态操作记录
$this->rootDOLog($id, 3);
} catch (\Exception $e) { } catch (\Exception $e) {
$id = 0; $id = 0;
...@@ -364,4 +363,17 @@ class BrokerService ...@@ -364,4 +363,17 @@ class BrokerService
$record_data['agent_id'] = $id; $record_data['agent_id'] = $id;
$m_records->insertData($record_data); $m_records->insertData($record_data);
} }
/**
* 记录操作日志
* @param $id
* @param $status
*/
private function rootDOLog($id, $status)
{
$agent_status =[0=>'正常',1=>'长假',2=>'离职',3=>'转勤'];
$records = new GOperatingRecords();
$remark = '修改为 '.$agent_status[$status];
$result = $records->record(0, 7, $remark, '',$id);
}
} }
\ No newline at end of file
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