fetchAll($sql); if ($result) { return Util::returnArrSu('', $result); } else { return Util::returnArrEr('数据库错误'); } } /** * Function Description:获取poi详情 * Function Name: getPoiInfo * @param $poi_id * * @return array * * @author 张帅 */ public function getPoiInfo($poi_id) { $sql = '' . 'SELECT a.id as area_id, a.area_name, a.poi_type, REPLACE(substring(v.parent_area_id_list,2,length(v.parent_area_id_list)-2),\'}{\',\',\') AS parent_area_id, REPLACE(REPLACE(substring(v.parent_area_name_list,2),\'}{\',\',\'),\'}\',\'\') AS parent_area_name FROM base_area AS a, base_area_view AS v WHERE a.id = v.area_id AND a.id in (' . $poi_id . ')'; $result = $this->fetchAll($sql); if ($result) { return Util::returnArrSu('', $result); } else { return Util::returnArrEr('数据库错误'); } } }