Commit dc6c6f19 authored by zhuwei's avatar zhuwei

1

parent cc9c7c85
...@@ -150,32 +150,38 @@ class UserService ...@@ -150,32 +150,38 @@ class UserService
//客户姓名 修改记录 //客户姓名 修改记录
if (!empty($data['user_name']) && ($data['user_name'] != $user_name)) { if (!empty($data['user_name']) && ($data['user_name'] != $user_name)) {
$this->userFieldChangeLog($this->operation_id,$id,$user_name,$data['user_name'],'user_name'); $this->userFieldChangeLog($this->operation_id,$id,$user_name,$data['user_name'],
'user_name');
} }
//客户委托类型 修改记录 //客户委托类型 修改记录
if (is_numeric($data['entrust_type']) && ($data['entrust_type'] != $entrust_type_old)) { if (is_numeric($data['entrust_type']) && ($data['entrust_type'] != $entrust_type_old)) {
$this->userFieldChangeLog($this->operation_id,$id,$entrust_type_old,$data['entrust_type'],'entrust_type'); $this->userFieldChangeLog($this->operation_id,$id,$entrust_type_old,$data['entrust_type'],
'entrust_type');
} }
//具体业态 修改记录 //具体业态 修改记录
if (!empty($data['concrete_industry']) && ($data['concrete_industry'] != $concrete_industry_old)) { if (!empty($data['concrete_industry']) && ($data['concrete_industry'] != $concrete_industry_old)) {
$this->userFieldChangeLog($this->operation_id,$id,$concrete_industry_old,$data['concrete_industry'],'concrete_industry'); $this->userFieldChangeLog($this->operation_id,$id,$concrete_industry_old,
$data['concrete_industry'],'concrete_industry');
} }
//价格需求 修改记录 //价格需求 修改记录
if (!empty($data['price_demand']) && ($data['price_demand'] != $price_demand_old)) { if (!empty($data['price_demand']) && ($data['price_demand'] != $price_demand_old)) {
$this->userFieldChangeLog($this->operation_id,$id,$price_demand_old,$data['price_demand'],'price_demand'); $this->userFieldChangeLog($this->operation_id,$id,$price_demand_old,
$data['price_demand'],'price_demand');
} }
//面积需求 修改记录 //面积需求 修改记录
if (!empty($data['area_demand']) && ($data['area_demand'] != $area_demand_old)) { if (!empty($data['area_demand']) && ($data['area_demand'] != $area_demand_old)) {
$this->userFieldChangeLog($this->operation_id,$id,$area_demand_old,$data['area_demand'],'area_demand'); $this->userFieldChangeLog($this->operation_id,$id,$area_demand_old,
$data['area_demand'],'area_demand');
} }
//更新业绩统计 //更新业绩统计
$agent = new AAgents(); $agent = new AAgents();
$agent_data = $agent->getAgentInfo('id,name,phone,store_id,district_id', $data['agents_id']); $agent_data = $agent->getAgentInfo('id,name,phone,store_id,district_id', $data['agents_id']);
$sum = new ResultsSummaryNewTask(); $sum = new ResultsSummaryNewTask();
$date = date('Y-m-d'); $date = date('Y-m-d');
$sum->updateTotalByAgentId($agent_data['id'], $agent_data['store_id'], $agent_data['district_id'], $date, $site_id); $sum->updateTotalByAgentId($agent_data['id'], $agent_data['store_id'], $agent_data['district_id'],
$date, $site_id);
} catch (\Exception $e) { } catch (\Exception $e) {
$result['status'] = 'fail'; $result['status'] = 'fail';
$result['msg'] = $e->getMessage(); $result['msg'] = $e->getMessage();
......
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