コード例 #1
0
 /**
  * 根据房源和经纪人ID获取委托房源信息
  *
  * @param int $brokerHouseId
  * @param int $brokerId
  * @return array
  */
 public static function getCommissionByBrokerHouseId($brokerHouseId, $brokerId)
 {
     $commissionRelation = Model_House_Commission::getCommissionByBrokerHouseId($brokerHouseId, $brokerId);
     if (empty($commissionRelation)) {
         return array();
     }
     $houseId = $commissionRelation['houseId'];
     $houseInfo = Model_House_CommissionHouse::getHouseById($houseId);
     if (empty($houseInfo)) {
         return array();
     }
     return array_merge($commissionRelation, array('house' => $houseInfo));
 }