Commit a79c9c5e authored by zhuwei's avatar zhuwei

运营数据

parent f1ccf2f8
...@@ -82,8 +82,7 @@ class User extends Basic ...@@ -82,8 +82,7 @@ class User extends Basic
"pageSize" => 15, "pageSize" => 15,
"status" => 0, "status" => 0,
);*/ );*/
$field = "id as user_id,sex,user_name,city,user_phone,user_status,agent_id,create_time,industry_type,price_demand, $field = "id as user_id,sex,user_name,city,user_phone,user_status,agent_id,create_time,industry_type,price_demand,area_demand,vip,user_label";
area_demand,vip,source,source_intro";
$conditions = []; $conditions = [];
...@@ -157,7 +156,7 @@ class User extends Basic ...@@ -157,7 +156,7 @@ class User extends Basic
foreach ($userList as $k => $v) { foreach ($userList as $k => $v) {
/*判断是否纯房东 0:否 1:是 start*/ /*判断是否纯房东 0:否 1:是 start*/
$is_single_homeowner = 0; $is_single_homeowner = 0;
if ($v['source'] == 41) { if ($v['user_label'] == 2) {
//source 41纯房东 //source 41纯房东
$is_single_homeowner = 1; $is_single_homeowner = 1;
} }
......
...@@ -1187,7 +1187,23 @@ class AAgents extends BaseModel ...@@ -1187,7 +1187,23 @@ class AAgents extends BaseModel
return $result; return $result;
} }
/**
* 客户来电数
* @param $field
* @param $params
* @return false|\PDOStatement|string|\think\Collection
*/
public function getUserPhoneNum($field ,$params)
{
$result = Db::table($this->table)
->field($field)
->where($params)
->group('district_id')
->select();
//echo $this->getLastSql();
return $result;
}
} }
\ 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