Commit 84d111f8 authored by zhuwei's avatar zhuwei

1

parent 4b054076
......@@ -651,7 +651,7 @@ class OfficeRoomService
//房东
$result['landlord_info'] = $this->getLandlordInfo($result['id']);
//房源数
$result['room_num'] = $this->getRoomNum($result['id'],$result['id']);
$result['room_num'] = $this->getRoomNum($result['building_id'],$result['id']);
//交通信息
$result['traffic_info'] = $this->getTrafficInfo($result['building_id']);
//参考均价
......@@ -756,7 +756,7 @@ class OfficeRoomService
//房源数
public function getRoomNum($building_id,$id){
$params['building_id'] = $building_id;
$params['id'] = array('eq',$id);
$params['id'] = array('neq',$id);
$params['is_rent'] = 0;
$params['status'] = 1;
$res = $this->m_office_room->getRoomNum($params);
......
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