/**
  * 获取小区详细信息
  *
  * @param int $communityId
  * @return array
  */
 public static function getCommunityDetail($communityId)
 {
     //        $communityBaseInfo = Model_Community_AjkCommunity::getCommunityInfoById($communityId);
     $communityBaseInfo = Bll_Community_APIComm::getInstance()->getInfoByIdMapping($communityId);
     $communityExtendInfo = Model_Community_CommunityExtend::getCommunityExtendInfo($communityId);
     //        $communityMapInfo = Model_Community_CommunityBaiDuMap::getCommunityMap($communityId);
     $communityMapInfo = Bll_Community_APIComm::getInstance()->getInfoByIdMapBaiDuMapping($communityId, 2);
     $communityFrmInfo = Model_Community_CommunityFrm::getCommunityFrmByCommunityId($communityId);
     return array('baseInfo' => $communityBaseInfo, 'extendInfo' => $communityExtendInfo, 'mapInfo' => $communityMapInfo, 'frmInfo' => $communityFrmInfo);
 }
示例#2
0
 public function handle_request()
 {
     $communityId = 1;
     $communityBaseInfo = Model_Community_AjkCommunity::getCommunityInfoById($communityId);
     //        echo Model_Community_AjkCommunity::data_access()->get_last_sql();
     //        print_r($communityBaseInfo);
     $communityList = Bll_Community_APIComm::getInstance()->getInfoById($communityId);
     //        print_r($communityList);
     $communityMapInfo = Model_Community_CommunityBaiDuMap::getCommunityMap($communityId);
     //        echo Model_Community_CommunityBaiDuMap::data_access()->get_last_sql();
     //        print_r($communityMapInfo);
     $commId = 1;
     $commIds = array(1);
     //        $commInfos = Model_Community_AjkCommunity::getInfoById($commIds);
     //        print_r($commInfos);
     //        $records = Model_Community_AjkCommunity::getRecordsById($commIds);
     //        print_r($records);
     //        $community = Model_Community_AjkCommunity::data_access()
     //            ->filter('commId', $communityId)
     //            ->find_only();
     //        print_r($community);
     $commInfo = Model_Community_AjkCommunity::getInfoById($commIds);
     $commInfo1 = Bll_Community_APIComm::getInstance()->getInfoByIdMapping($commId);
     //        print_r($commInfo);
     //        print_r($commInfo1);
     //
     //        $communityBaseInfo = Model_Community_AjkCommunity::getCommunityInfoById($communityId);
     //        $communityExtendInfo = Model_Community_CommunityExtend::getCommunityExtendInfo($communityId);
     //        $communityMapInfo = Model_Community_CommunityBaiDuMap::getCommunityMap($communityId);
     //        $communityFrmInfo = Model_Community_CommunityFrm::getCommunityFrmByCommunityId($communityId);
     //        $result = array(
     //            'baseInfo' => $communityBaseInfo,
     //            'extendInfo' => $communityExtendInfo,
     //            'mapInfo' => $communityMapInfo,
     //            'frmInfo' => $communityFrmInfo,
     //        );
     //        print_r($result);
     $communityBaseInfo1 = Bll_Community_APIComm::getInstance()->getInfoByIdMapping($communityId);
     $communityExtendInfo1 = Model_Community_CommunityExtend::getCommunityExtendInfo($communityId);
     $communityMapInfo1 = Bll_Community_APIComm::getInstance()->getInfoByIdMapBaiDuMapping($communityId, 2);
     $communityFrmInfo1 = Model_Community_CommunityFrm::getCommunityFrmByCommunityId($communityId);
     $result1 = array('baseInfo' => $communityBaseInfo1, 'extendInfo' => $communityExtendInfo1, 'mapInfo' => $communityMapInfo1, 'frmInfo' => $communityFrmInfo1);
     //        print_r($result1);
     //                $community = Model_Community_AjkCommunity::data_access()
     //            ->filter('commId', $commId)
     //            ->find_only();
     //        $community1 = Bll_Community_APIComm::getInstance()->getInfoByIdMapping($commId,2);
     //        $community = Bll_Community_APIComm::getInstance()->getInfoById($commId);
     //        $community = Model_Community_AjkCommunity::getInfoById($commIds);
     //        $community1 = Bll_Community_APIComm::getInstance()->getInfoByIdMapping($commIds,2);
     //        $community = Model_Community_AjkCommunity::getInfoById($commIds);
     //        $community1 = Bll_Community_APIComm::getInstance()->getInfoByIdMapping($commIds,2);
     $commIdStr = '1,2';
     $commIds = explode(',', $commIdStr);
     //        print_r($commIds);
     $community = Model_Community_AjkCommunity::getRecordsById($commIds);
     $community1 = Bll_Community_APIComm::getInstance()->getInfoByIdMapping($commIds);
     //        $community = Dao_Comm_AjkCommunity::get_community_info_byids($commIds);
     //        $community1 = Bll_Community_APIComm::getInstance()->getInfoByIdMapping($commIds);
     //        $community = Model_Community_AjkCommunity::data_access()
     //                ->filter('commId', $commId)
     //                ->find_only();
     //
     //        $community1 = Bll_Community_APIComm::getInstance()->getInfoByIdMapping($commId,2);
     //        $community = Model_Community_AjkCommunity::getRecordsById($commId);
     //        $data['commLocation']= $commInfo->commLocal;
     //        $data['sosolat']= $commInfo->sosolat;//纬度
     //        $data['sosolng']= $commInfo->sosolng;//经度
     //        $community1 = Bll_Community_APIComm::getInstance()->getInfoByIdMapping($commId,2);
     //        $community = Model_Community_AjkCommunity::data_access()
     //            ->filter('commId', $commId)
     //            ->find_only();
     //        $community1 = Bll_Community_APIComm::getInstance()->getInfoByIdMapping($commId,2);
     //
     $community = Model_Community_AjkCommunity::data_access()->filter('commId', $commId)->find_only();
     $community1 = Bll_Community_APIComm::getInstance()->getInfoByIdMapping($commId, 2);
     print_r($community);
     print_r($community1);
 }