DBTool->queryBySql($sql); return $res; } //查询基础房型名称 public function getroom($res_id) { $sql = "select res_name from base_resource WHERE res_id='$res_id'"; writeLog(__FUNCTION__ . " sql= " . $sql); $res = $this->DBTool->queryBySql($sql); return $res; } //查询parent_id // public function getparentid($area_id) // { // $sql = "select parent_id from base_area WHERE id='$area_id'"; // writeLog(__FUNCTION__ . " sql= " . $sql); // $res = $this->DBTool->queryBySql($sql); // return $res; // } //查询parent_id public function getssqid($area_id) { $sql = "select top_area_id,parent_area_id from base_area_view WHERE area_id='$area_id'"; writeLog(__FUNCTION__ . " sql= " . $sql); $res = $this->DBTool->queryBySql($sql); return $res; } //查询省市区列表 public function getlist($parent_area_id) { $sql = "select area_id,area_name from base_area_view WHERE parent_area_id='$parent_area_id' AND area_id<3223"; writeLog(__FUNCTION__ . " sql= " . $sql); $res = $this->DBTool->queryBySql($sql); $list = $res['rowset']; return $list; } //更新酒店信息 public function updateHotel($hotel_id, $address, $room_type_all, $area_id, $user_id, $star_level, $hotel_name) { $sql = "update opera_hotel set hotel_address='$address', room_type_all='$room_type_all', room_type_sale='$room_type_all', area_id='$area_id', update_user_id='$user_id', update_time=now() , star_level='$star_level', hotel_name='$hotel_name' WHERE hotel_id='$hotel_id'"; writeLog(__FUNCTION__ . " sql= " . $sql); $res = $this->DBTool->execSql($sql); return $res; } }