Commit c903c19c authored by zhuwei's avatar zhuwei

管理员对经纪人状态操作记录

parent e729c128
......@@ -19,6 +19,7 @@ use app\model\AOperatingRecords;
use app\model\ASite;
use app\model\AuthGroupSite;
use app\model\GHousesToAgents;
use app\model\GOperatingRecords;
use app\model\OMarchInModel;
use app\model\Users;
......@@ -183,6 +184,11 @@ class BrokerService
$save_data['id'] = $data['id'];
$id = $this->m_agent->saveAgent($save_data);
//todo 管理员对经纪人状态操作记录
$agent_status =[0=>'正常',1=>'长假',2=>'离职',3=>'转勤'];
$records = new GOperatingRecords();
$remark = '修改为 '.$agent_status[$data['status']];
$result = $records->record(0, 7, $remark, '',$id);
//同时修改设备绑定表
try {
......@@ -300,6 +306,8 @@ class BrokerService
$this->transferUserHouse($transfer_agent, $agent_old[0]['id'], $operation_id);
$id = $transfer_agent;
}
//todo 1
} catch (\Exception $e) {
$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