Commit 6b8be47e authored by hujun's avatar hujun

跟进列表搜索修改

parent 4026baea
...@@ -76,15 +76,13 @@ class Remark extends Basic ...@@ -76,15 +76,13 @@ class Remark extends Basic
} }
//跟进人门店 //跟进人门店
if (!empty($this->params['remark_store'])) { if (!empty($this->params['remark_store_id'])) {
$where['f.district_name'] = ['NOT NULL']; $where['b.stroe_id'] = $this->params['remark_store_id'];
$where['e.store_name'] = ['like', "%{$this->params['remark_store']}%"];
} }
//跟进人部门 //跟进人部门
if (!empty($this->params['remark_district'])) { if (!empty($this->params['remark_district_id'])) {
$where['e.store_name'] = ['NOT NULL']; $where['b.district_id'] = $this->params['remark_district_id'];
$where['f.district_name'] = ['like', "%{$this->params['remark_district']}%"];
} }
$field = 'c.id,a.create_time,a.content,b.name as admin,d.name as label_name,c.user_nick,c.user_phone,a.user_status'; $field = 'c.id,a.create_time,a.content,b.name as admin,d.name as label_name,c.user_nick,c.user_phone,a.user_status';
......
...@@ -217,8 +217,6 @@ class UPhoneFollowPp extends BaseModel ...@@ -217,8 +217,6 @@ class UPhoneFollowPp extends BaseModel
->join('a_agents b','a.agent_id = b.id', 'left') ->join('a_agents b','a.agent_id = b.id', 'left')
->join('u_users c','a.user_id = c.id', 'left') ->join('u_users c','a.user_id = c.id', 'left')
->join('u_labels d','d.id = a.labels_id', 'left') ->join('u_labels d','d.id = a.labels_id', 'left')
->join('a_store e', 'b.store_id = e.id', 'left')
->join('a_district f', 'b.district_id= f.id', 'left')
->where($params) ->where($params)
->order($order_) ->order($order_)
->limit($pageSize) ->limit($pageSize)
...@@ -237,8 +235,6 @@ class UPhoneFollowPp extends BaseModel ...@@ -237,8 +235,6 @@ class UPhoneFollowPp extends BaseModel
return $this->alias('a') return $this->alias('a')
->join('a_agents b','a.agent_id = b.id', 'left') ->join('a_agents b','a.agent_id = b.id', 'left')
->join('u_users c','a.user_id = c.id', 'left') ->join('u_users c','a.user_id = c.id', 'left')
->join('a_store e', 'b.store_id = e.id', 'left')
->join('a_district f', 'b.district_id= f.id', 'left')
->where($params) ->where($params)
->count(); ->count();
} }
......
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