Commit e7f37f0e authored by hujun's avatar hujun

商铺列表搜索条件修改

parent dd4c7f59
......@@ -112,7 +112,6 @@ class Houses extends Basic
$pageSize = empty($this->params['pageSize']) ? 15 : $this->params['pageSize'];
$where['a.status'] = [ '<>', 3 ];
$where['b.is_del'] = 0;
/*精选商铺--0是1否*/
if ($this->params['is_carefully_chosen'] != -1) {
......@@ -219,14 +218,15 @@ class Houses extends Basic
if ($this->params['dish_name'] != NULL) {
$where['c.name'] = [ 'LIKE', '%' . $this->params['dish_name'] . '%' ];
$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.is_del'] = 0;
}
/*房东手机号搜索*/
if ($this->params['landlord_phone'] != NULL) {
$where['d.landlord_phone'] = [ 'LIKE', '%' . $this->params['landlord_phone'] . '%' ];
......
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