Commit 33f5c62e authored by hujun's avatar hujun

building_images

parent 2c6e47f8
...@@ -242,7 +242,7 @@ class OfficeService ...@@ -242,7 +242,7 @@ class OfficeService
$where['disc'] = $params['disc']; $where['disc'] = $params['disc'];
} }
if (isset($params['`business_district_id`'])) { if (isset($params['business_district_id'])) {
$where['business_district_id'] = $params['business_district_id']; $where['business_district_id'] = $params['business_district_id'];
} }
...@@ -279,6 +279,7 @@ class OfficeService ...@@ -279,6 +279,7 @@ class OfficeService
} }
} }
$data[$k]['traffic'] = $traffic_arr; $data[$k]['traffic'] = $traffic_arr;
$data['building_images'] = $this->m_office_img->getListAll('id,img_name', ['house_id'=>$v['id']]);
} }
$result['data'] = $data; $result['data'] = $data;
$result['status'] = 'successful'; $result['status'] = 'successful';
...@@ -453,4 +454,35 @@ class OfficeService ...@@ -453,4 +454,35 @@ class OfficeService
$res = $m_office_room->getRoomNum($params); $res = $m_office_room->getRoomNum($params);
return $res; return $res;
} }
public function getBuilding($params)
{
if (isset($params['title'])) {
$where['title'] = ['LIKE', '%'.$params['title'].'%'];
}
if (isset($params['disc'])) {
$where['disc'] = $params['disc'];
}
if (isset($params['`business_district_id`'])) {
$where['business_district_id'] = $params['business_district_id'];
}
if (isset($params['type'])) {
$where['type'] = $params['type'];
}
if (isset($params['id'])) {
$where['id'] = $params['id'];
}
if (isset($params['city'])) {
$where['city'] = $params['city'];
}
$field = 'id,title,address,type,floor_total,business_district_id,intro';
$data = $this->m_office->getList($page_size, $page_no, '', $field, $where);
}
} }
\ No newline at end of file
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