/** * 获取经纪人推广中的房源 * * @param int $brokerId * @param int $cityId * @param int $planId * @return array */ public static function getPropFixedPlanRelation($brokerId, $cityId, $planId) { return Model_Plan_EsfPropFixedPlanRelation::getPropFixedPlanRelation($brokerId, $cityId, $planId); }
/** * 获取定价推广中的房源 * * @param int $cityId * @param int $brokerId * @return array */ public static function getFixSpreadHouse($cityId, $brokerId) { $fixPlan = Model_Plan_EsfFixedPlan::getValidPlan($brokerId); if (empty($fixPlan)) { return array(); } $planId = $fixPlan['id']; $fixPlanRelationList = Model_Plan_EsfPropFixedPlanRelation::getPropFixedPlanRelation($brokerId, $cityId, $planId); $houseIds = array(); foreach ($fixPlanRelationList as $fixPlanRelation) { $houseIds[] = $fixPlanRelation['propId']; } return $houseIds; }