示例#1
0
 /**
  * 获取二手房计划总名次
  *
  * @param $planId
  * @param $commId
  * @param $minPrice
  * @param $maxPrice
  * @return int|string
  */
 public static function getEsfOnlineAndOnQueueNum($planId, $typecode, $minPrice, $maxPrice)
 {
     $allOnQueueChoice = Model_Plan_EsfAjkPropSpread::getOnlineAndOnQueueChoicePlanInfoByBlockAndPrice($typecode, $minPrice, $maxPrice);
     if (empty($allOnQueueChoice)) {
         return 1;
     }
     foreach ($allOnQueueChoice as $key => $row) {
         if ($planId == $row->id) {
             return $key + 1;
         }
     }
 }