/** * 获取计划的排队位置 * * @param $planId * @param $cityId * @param $blockId * @param $housePriceId * @return int */ public static function getChoiceWaitPosition($planId, $cityId, $blockId, $housePriceId) { $planList = Model_Plan_HzPlanBasic::getChoiceWaitPlan($blockId, $housePriceId); $index = 1; foreach ($planList as $plan) { if ($plan['id'] == $planId) { return $index; } $index++; } return $index; }