Commit b4e775bd authored by hujun's avatar hujun

房源搜索

parent 779c1f30
...@@ -843,7 +843,7 @@ class OfficeRoomService ...@@ -843,7 +843,7 @@ class OfficeRoomService
return $result; return $result;
} }
$landlord_where['phone'] = ['LIKE','%'.$params['landlord_phone'].'%']; $landlord_where['phone'] = ['LIKE','%'.$params['landlord_phone'].'%'];
$landlord_where['status'] = 0; $landlord_where['is_del'] = 0;
$landlord_arr = $this->landlord_phone->getList(1,1000, '', 'house_id', $landlord_where); $landlord_arr = $this->landlord_phone->getList(1,1000, '', 'house_id', $landlord_where);
if (empty($landlord_arr)) { if (empty($landlord_arr)) {
...@@ -855,7 +855,7 @@ class OfficeRoomService ...@@ -855,7 +855,7 @@ class OfficeRoomService
$landlord_house_id[] = $v['house_id']; $landlord_house_id[] = $v['house_id'];
} }
$landlord_str = implode(',', $landlord_house_id); $landlord_str = implode(',', $landlord_house_id);
$where[] = ['EXP', "id in ({$landlord_str})"]; $where[] = ['EXP', "a.id in ({$landlord_str})"];
} }
} }
/*房东手机号搜索 end*/ /*房东手机号搜索 end*/
...@@ -945,12 +945,12 @@ class OfficeRoomService ...@@ -945,12 +945,12 @@ class OfficeRoomService
/*租金总价*/ /*租金总价*/
if (isset($params['price_total_end'])) { if (isset($params['price_total_end'])) {
$where['a.price_total_end'] = $params['price_total_end']; $where['a.price_total'] = $params['price_total_end'];
} }
/*租金总价*/ /*租金总价*/
if (isset($params['price_total_end']) && isset($params['price_total_start'])) { if (isset($params['price_total_end']) && isset($params['price_total_start'])) {
$where['a.area_end'] = ['between', [$params['price_total_start'], $params['price_total_end']]]; $where['a.price_total'] = ['between', [$params['price_total_start'], $params['price_total_end']]];
} }
/*租金单价*/ /*租金单价*/
...@@ -960,12 +960,12 @@ class OfficeRoomService ...@@ -960,12 +960,12 @@ class OfficeRoomService
/*租金单价*/ /*租金单价*/
if (isset($params['price_end'])) { if (isset($params['price_end'])) {
$where['a.price_total_end'] = $params['price_end']; $where['a.price'] = $params['price_end'];
} }
/*租金单价*/ /*租金单价*/
if (isset($params['price_end']) && isset($params['price_start'])) { if (isset($params['price_end']) && isset($params['price_start'])) {
$where['a.area_end'] = ['between', [$params['price_start'], $params['price_end']]]; $where['a.price'] = ['between', [$params['price_start'], $params['price_end']]];
} }
/*可容纳工位*/ /*可容纳工位*/
...@@ -979,8 +979,9 @@ class OfficeRoomService ...@@ -979,8 +979,9 @@ class OfficeRoomService
} }
/*可容纳工位*/ /*可容纳工位*/
if (isset($params['station_end']) && isset($params['price_start'])) { if (isset($params['station_end']) && isset($params['station_start'])) {
$where['a.area_end'] = ['between', [$params['station_start'], $params['station_end']]]; $where['a.station_start'] = ['>', $params['station_start']];
$where['a.station_end'] = ['>', $params['station_end']];
} }
//编号 //编号
......
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