Commit 472bacd5 authored by clone's avatar clone

1

parent 941cf74d
...@@ -84,6 +84,16 @@ class OfficeRoomApiService ...@@ -84,6 +84,16 @@ class OfficeRoomApiService
$where['a.price'] = ['between', [$params['price_start'] * 100, $params['price_end'] * 100]]; //租金单价 $where['a.price'] = ['between', [$params['price_start'] * 100, $params['price_end'] * 100]]; //租金单价
} }
if (isset($params['price_total_start'])) {
$where['a.price_total'] = ['>', $params['price_total_start'] * 100];//租金总单价
}
if (isset($params['price_total_end'])) {
$where['a.price_total'] = ['<', $params['price_end'] * 100];//租金总单价
}
if (isset($params['price_total_start']) && isset($params['price_total_end'])) {
$where['a.price_total'] = ['between', [$params['price_total_start'] * 100, $params['price_total_end'] * 100]]; //租金总单价
if (isset($params['shop_sign'])) { if (isset($params['shop_sign'])) {
$where['a.shop_sign'] = ['like', '%' . $params['shop_sign'] . '%']; //商铺标签 $where['a.shop_sign'] = ['like', '%' . $params['shop_sign'] . '%']; //商铺标签
} }
......
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