Commit b36bd158 authored by zhuwei's avatar zhuwei

1

parent a8c10d50
...@@ -127,7 +127,11 @@ class CollectHouse extends Basic ...@@ -127,7 +127,11 @@ class CollectHouse extends Basic
$get_params['agents_id'] = $params["agents_id"]; $get_params['agents_id'] = $params["agents_id"];
$get_params['CollectUser.status'] = 1; $get_params['CollectUser.status'] = 1;
if(empty($params["city"])){
$conditions["Houses.city"] = trim($this->city);
}else{
$conditions["Houses.city"] = $params["city"];
}
$res = $this->aCollectHouse->getCollectList($pageNo,$pageSize,$field,$get_params); $res = $this->aCollectHouse->getCollectList($pageNo,$pageSize,$field,$get_params);
$res_total = $this->aCollectHouse->getCollectListTotal($field,$get_params); $res_total = $this->aCollectHouse->getCollectListTotal($field,$get_params);
......
...@@ -132,6 +132,13 @@ class OfficeCollectHouse extends Basic ...@@ -132,6 +132,13 @@ class OfficeCollectHouse extends Basic
$get_params['agents_id'] = $params["agents_id"]; $get_params['agents_id'] = $params["agents_id"];
$get_params['CollectUser.status'] = 1; $get_params['CollectUser.status'] = 1;
if(empty($params["city"])){
$conditions["Houses.city"] = trim($this->city);
}else{
$conditions["Houses.city"] = $params["city"];
}
$res = $this->aCollectHouse->getCollectList($pageNo,$pageSize,$field,$get_params); $res = $this->aCollectHouse->getCollectList($pageNo,$pageSize,$field,$get_params);
$res_total = $this->aCollectHouse->getCollectListTotal($field,$get_params); $res_total = $this->aCollectHouse->getCollectListTotal($field,$get_params);
$look_shop_service = new LookShopService(); $look_shop_service = new LookShopService();
......
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