Commit 34737b0f authored by hujun's avatar hujun

所属城市-商铺跟进-客户跟进-商铺列表-客户列表

parent d9aed50d
...@@ -167,10 +167,14 @@ class HomePageLog extends Basic ...@@ -167,10 +167,14 @@ class HomePageLog extends Basic
$where_["f.create_time"] = array( 'between', array( $start_time, $end_time ) ); $where_["f.create_time"] = array( 'between', array( $start_time, $end_time ) );
} }
if (empty($params['city'])) { // if (empty($params['city'])) {
$where_["f.city"] = trim($this->city) ? trim($this->city) : '上海市'; // $where_["f.city"] = trim($this->city) ? trim($this->city) : '上海市';
} else { // } else {
$where_["f.city"] = $params['city'] ? $params['city'] : '上海市'; // $where_["f.city"] = $params['city'] ? $params['city'] : '上海市';
// }
if ($this->city != '全部') {
$where_["f.city"] = $this->city;
} }
if (!empty($params['disc'])) { if (!empty($params['disc'])) {
......
...@@ -228,7 +228,11 @@ class Houses extends Basic ...@@ -228,7 +228,11 @@ class Houses extends Basic
} }
/*所在城市*/ /*所在城市*/
if (!empty($this->params['city'])) { // if (!empty($this->params['city'])) {
// $where['city'] = $this->params['city'];
// }
if ($this->city != '全部') {
$where['city'] = $this->params['city']; $where['city'] = $this->params['city'];
} }
......
...@@ -258,11 +258,11 @@ class Member extends Basic{ ...@@ -258,11 +258,11 @@ class Member extends Basic{
} }
} }
if (!empty($params['province'])) { // if (!empty($params['province'])) {
$where['a.province'] = $params['province']; // $where['a.province'] = $params['province'];
} // }
if (!empty($params['city'])) { if ($this->city != '全部') {
$where['a.city'] = $params['city']; $where['a.city'] = $params['city'];
} }
......
...@@ -82,12 +82,16 @@ class Remark extends Basic ...@@ -82,12 +82,16 @@ class Remark extends Basic
$agent_where['district_id'] = $this->params['remark_district_id']; $agent_where['district_id'] = $this->params['remark_district_id'];
} }
if (!empty($this->params['province'])) { // if (!empty($this->params['province'])) {
$where['province'] = $this->params['province']; // $where['province'] = $this->params['province'];
} // }
// if (!empty($this->params['city'])) {
// $where['city'] = $this->params['city'];
// }
if (!empty($this->params['city'])) { if ($this->city != '全部') {
$where['city'] = $this->params['city']; $where['city'] = $this->city;
} }
if (!empty($this->params['disc'])) { if (!empty($this->params['disc'])) {
......
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