Commit 2d361eec authored by zhuwei's avatar zhuwei

1

parent 5e695691
......@@ -756,7 +756,7 @@ class OfficeRoomService
//房源数
public function getRoomNum($building_id,$id){
$params['building_id'] = $building_id;
$params['id'] = array('neq',$id);
// $params['id'] = array('neq',$id);
$params['is_rent'] = 0;
$params['status'] = 1;
$res = $this->m_office_room->getRoomNum($params);
......
......@@ -350,6 +350,7 @@ class OfficeGRoom extends BaseModel
public function getRoomNum($params)
{
$result = $this->where($params)->count();
big_log($this->getLastSql());
return $result;
}
......
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