Commit f37f69d7 authored by hujun's avatar hujun

商铺列表搜索条件

parent feebde44
...@@ -99,17 +99,17 @@ class Houses extends Basic ...@@ -99,17 +99,17 @@ class Houses extends Basic
$pageSize = empty($this->params['pageSize']) ? 15 : $this->params['pageSize']; $pageSize = empty($this->params['pageSize']) ? 15 : $this->params['pageSize'];
/*精选商铺--0是1否*/ /*精选商铺--0是1否*/
if ($this->params['is_carefully_chosen'] != NULL) { if ($this->params['is_carefully_chosen'] != -1) {
$where['is_carefully_chosen'] = $this->params['is_carefully_chosen']; $where['is_carefully_chosen'] = $this->params['is_carefully_chosen'];
} }
/*0是1否显示在c端用户*/ /*0是1否显示在c端用户*/
if ($this->params['is_show'] != NULL) { if ($this->params['is_show'] != -1) {
$where['is_show'] = $this->params['is_show']; $where['is_show'] = $this->params['is_show'];
} }
/*商铺类型(0商场,1街铺)*/ /*商铺类型(0商场,1街铺)*/
if ($this->params['shop_type'] != NULL) { if ($this->params['shop_type'] != -1) {
$where['shop_type'] = $this->params['shop_type']; $where['shop_type'] = $this->params['shop_type'];
} }
...@@ -148,7 +148,7 @@ class Houses extends Basic ...@@ -148,7 +148,7 @@ class Houses extends Basic
} }
/*是否独家0否1是*/ /*是否独家0否1是*/
if ($this->params['is_exclusive_type'] != NULL) { if ($this->params['is_exclusive_type'] != -1) {
$where['is_exclusive_type'] = $this->params['is_exclusive_type']; $where['is_exclusive_type'] = $this->params['is_exclusive_type'];
} }
...@@ -168,7 +168,7 @@ class Houses extends Basic ...@@ -168,7 +168,7 @@ class Houses extends Basic
} }
/*根据库存判断是否已租*/ /*根据库存判断是否已租*/
if ($this->params['leased'] != NULL) { if ($this->params['leased'] != -1) {
if ($this->params['leased'] == 0) { if ($this->params['leased'] == 0) {
$where['residue_num'] = 0; $where['residue_num'] = 0;
} else { } else {
......
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