Esempio n. 1
0
 /**
  * 市场分析
  * @param $out
  * @return array
  */
 private static function prepareAnaly(&$out)
 {
     $analy = array();
     $commId = $out['propInfo']['commid'];
     //$commId = 10284;
     if (!$commId) {
         $analy['vppvOrderAndPropNum']['propNum'] = 0;
         $analy['vppvOrderAndPropNum']['order'] = 0;
         return $analy;
     }
     // 获取小区所在板块的排名和小区房源数
     $analy['vppvOrderAndPropNum'] = Bll_House_HzHouse::getVppvOrderAndPropNum($commId);
     // 获取小区对应的户型供需信息
     $analy['commSRInfo'] = Bll_House_HzHouse::getCommHouseTypeSRInfo($commId);
     // 小区价格段供需
     $analy['priceSRInfo'] = Bll_House_HzHouse::getCommPriceSRInfo($commId);
     return $analy;
 }