Commit 0aad88c4 authored by hujun's avatar hujun

搜索条件

parent f6e74b16
......@@ -125,7 +125,11 @@ class Houses extends Basic
/*0是1否显示在c端用户*/
if ($this->params['is_show'] != -1) {
$where['a.is_show'] = $this->params['is_show'];
if ($this->params['is_show'] == 1) {
$where['a.is_show'] = 0;
} else {
$where['a.is_show'] = 1;
}
}
/*商铺类型(0商场,1街铺)*/
......@@ -217,13 +221,13 @@ class Houses extends Basic
if ($this->params['dish_name'] != NULL) {
$where['c.name'] = [ 'LIKE', '%' . $this->params['dish_name'] . '%' ];
$where['b.type'] = [ '=', 2 ];
$where['b.type'] = 2;
$where['b.is_del'] = 0;
}
if ($this->params['dish_phone'] != NULL) {
$where['c.phone'] = [ 'LIKE', '%' . $this->params['dish_phone'] . '%' ];
$where['b.type'] = [ '=', 2 ];
$where['b.type'] = 2;
$where['b.is_del'] = 0;
}
......
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