DBTool->execProcedure($sql); $data['code']=$rowset['code']; $data['info']=$rowset['info']; $data['room_list']=isset($rowset['rowset'])?$rowset['rowset']:array(); return $data; } // 修改子房型 function modifyChildRoom($hotel_id,$room_type,$parent_room_type,$data_child_room_name,$checkin_people,$user_id,$breakfast){ $sql = "update opera_hotel_room set update_user_id = {$user_id},room_name = '{$data_child_room_name}', occupancy_limit ={$checkin_people},breakfast_include = '{$breakfast}' where hotel_id = {$hotel_id} and parent_room_type ={$parent_room_type} and room_type = {$room_type}"; writeLog(__FUNCTION__." sql= ".$sql); $rowset = $this->DBTool->execSql($sql); $data['code'] = $rowset['code']; $data['info'] = $rowset['info']; $data['room_name'] = $data_child_room_name; return $data; } } //$obj= new HTRoomInfo; //$data = $obj ->getRoomList('235', '2016-11-10', '-1', '1', '5'); //echo json_encode($data);