Commit 3b3e3eee authored by hujun's avatar hujun

商铺自定义搜索

parent 7a51dc2b
......@@ -404,6 +404,21 @@ class Houses extends Basic
}
}
if (!empty($this->params['area_start']) && empty($this->params['area_end'])) {
$where['rent_type'] = 1;
$where['shop_area_start'] = ['>=', $this->params['area_start']];
}
if (!empty($this->params['area_end']) && empty($this->params['area_start'])) {
$where['rent_type'] = 1;
$where['shop_area_start'] = ['<=', $this->params['area_end']];
}
if (!empty($this->params['area_end']) && !empty($this->params['area_start'])) {
$where['rent_type'] = 1;
$where['shop_area_start'] = ['between', [$this->params['area_start'], $this->params['area_end']]];
}
if (!empty($this->params['business_id'])) {
$where['business_district_id'] = $this->params['business_id'];
}
......
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