private function prepareData($nowPage, $pageSize)
 {/*{{{*/
     $option['prov'] = Area::getProvinceNameList();
     $option['goodVoteCount'] = 10;
     $option['filterKeys'] = array('疼痛', '种牙齿医院', '种植牙齿医院', '种牙医院', '种植牙医院', '植牙医院', '牙齿种植医院');
     $option['orderby'] = " fld_DiseaseId asc ";
     $option['filterHospitalIds'] = BeanFinder::get('configs')->excludeHospitalIds;
     $option['filterKeys'] = BeanFinder::get('configs')->excludeDiseaseKeys;
     $hospitalList = HospitalClient::getInstance()->getDiseaseAreaHospitalGroupByOption($nowPage, $pageSize , $option);
     BeanFinder::get('LocalCache')->removeAll(); 
     if($hospitalList)
     {
         return $this->getDisHospital($hospitalList);
     }
     else 
     {
         return array();
     }
 }/*}}}*/
Esempio n. 2
0
    protected function getData($nowPage, $pageSize)
    {/*{{{*/
        $res = array();
        $data = array();
        $provinceList = Area::getProvinceNameList();
        $provinceListExt =  array('海南', '贵州', '青海', '内蒙古', '新疆');
        $provinceList = array_merge($provinceList, $provinceListExt);
        foreach($provinceList as $province)
        {
            $res = $this->getRealData($nowPage, $pageSize, $province);
            foreach($res as $value)
            {
                if(!empty($value))
                {
                    $data[] = $value;
                }
                unset($value);
            }
            unset($province);
        }
        BeanFinder::get('LocalCache')->removeAll(); 
        return $data;

    }/*}}}*/
 public function sitemapHospitalList($request, $response)
 {/*{{{*/
     $provNameList = Area::getProvinceNameList();
     $hospitalList = HospitalClient::getInstance()->getListByProvinceAry($provNameList); 
     $provList = array();
     foreach ($hospitalList as $hospital)
     {
         $provList[$hospital->province][] = $hospital;
     }
     $response->provList = $provList;
 }/*}}}*/