Commit b7a5f707 authored by hujun's avatar hujun

price_total

parent b8fa191e
...@@ -1283,6 +1283,18 @@ class OfficeRoomService ...@@ -1283,6 +1283,18 @@ class OfficeRoomService
$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['is_exclusive_type'])) { if (isset($params['is_exclusive_type'])) {
$where['a.is_exclusive_type'] = $params['is_exclusive_type']; //是否独家0否1是 $where['a.is_exclusive_type'] = $params['is_exclusive_type']; //是否独家0否1是
} }
......
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