Commit 173a8b51 authored by hujun's avatar hujun

新增加客户增加字段

parent 6de6131b
...@@ -269,6 +269,22 @@ class Users extends Model ...@@ -269,6 +269,22 @@ class Users extends Model
} }
} }
if (!empty($data['province'])) {
$insert_data['province'] = $data['province'];
}
if (!empty($data['city'])) {
$insert_data['city'] = $data['city'];
}
if (!empty($data['disc'])) {
$insert_data['disc'] = $data['disc'];
}
//注册来源 10客户c端注册 20经纪人报备时添加,状态未激 30老数据报备客户 40是租客也是房东 41纯房东
if (!empty($data['source'])) {
$insert_data['source'] = $data['source'];
}
if (!empty($data['industry_type'])) { if (!empty($data['industry_type'])) {
$insert_data['industry_type'] = $data['industry_type']; $insert_data['industry_type'] = $data['industry_type'];
} }
...@@ -322,8 +338,8 @@ class Users extends Model ...@@ -322,8 +338,8 @@ class Users extends Model
public function getClient($id) public function getClient($id)
{ {
if ($id) { if ($id) {
$field = "a.id as user_id,a.user_nick,a.user_pic,a.other_pic,a.user_name,a.user_phone,a.sex,a.agent_id, $field = "a.id as user_id,a.user_nick,a.user_pic,a.other_pic,a.user_name,a.user_phone,a.sex,a.agent_id,a.industry_type,
a.industry_type,a.price_demand,a.area_demand,a.create_time,b.name,b.phone,a.first_login_time,a.referrer_id,a.referrer_source"; a.price_demand,a.area_demand,a.create_time,b.name,b.phone,a.first_login_time,a.referrer_id,a.referrer_source,a.province,a.city,a.disc,a.source";
$data = $this->field($field) $data = $this->field($field)
->alias('a') ->alias('a')
......
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