Commit 4b054076 authored by zhuwei's avatar zhuwei

1

parent 8d3987c2
......@@ -643,7 +643,7 @@ class OfficeRoomService
$result['management_fee'] = $result['management_fee'] * 0.01;
//轮播图
$result['carousel_image'] = $this->getCarouselImage($result['id']);
$result['carousel_image'] = $this->getCarouselImage($result['id'],2);
//上传人
$result['upload_info'] = $this->getUploadInfo($result['operation_id']);
//独家方
......@@ -732,10 +732,10 @@ class OfficeRoomService
}
//轮播图
public function getCarouselImage($id){
public function getCarouselImage($id,$img_type=2){
$where['img_type'] = $img_type;
$where['img_status'] = 0;
$where['house_id'] = $id;
$where['img_type'] = 2;
$house_img_data = $this->m_office_img->getListAll('id,img_name', $where);
if($house_img_data){
foreach ($house_img_data as $k=>$v) {
......
......@@ -342,7 +342,7 @@ class OfficeService
}
//轮播图
$result['carousel_image'] = $this->service_room->getCarouselImage($result['id']);
$result['carousel_image'] = $this->service_room->getCarouselImage($result['id'],0);
//房源数
$result['room_num'] = $this->getRoomNum($result['id']);
//交通信息
......@@ -373,6 +373,8 @@ class OfficeService
$m_office_room = new OfficeGRoom();
$field = "a.id,a.area,a.price_total,a.price,a.station_start,a.station_end,a.decoration";
$params["a.building_id"] = $id;
$params['a.is_rent'] = 0;
$params['a.status'] = 1;
$res = $m_office_room->getRoomInfo($field, $params);
if($res){
......
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