static function getPropertyNewCount($brokerid, $p_bolStrictFreshCache = false) { // $pdo = APF_DB_Factory::get_instance()->get_pdo("anjuke_slave"); // $sql = "select count(*) from ajk_propertys where BrokerId=? and SowooId=0 and OperateState != 12"; // $stmt = $pdo->prepare($sql); // $stmt->execute(array($brokerid)); // $result = $stmt->fetchColumn(); // return $result; $objORM = new ORM_PropertyORM('ajk_propertys'); $strWhere = 'BrokerId=:BROKERID and SowooId=0 and OperateState = 1'; $arrParams = array('BROKERID' => $brokerid); $result = $objORM->getList($strWhere, $arrParams, $p_bolStrictFreshCache); if ($result) { return count($result); } else { return 0; } //return $objORM->getCnt(); }
/** * 获得SNS社区分享列表房源的套数 * @param int $p_intProId * @return array/NULL * */ static function getPropertyCntByBrokerId($condition, $params, $refresh = false) { $objORM = new ORM_PropertyORM(); $resultCnt = $objORM->getCnt($condition, $params, $refresh); return $resultCnt; }
static function getPropertyDetailNew($p_intPropertyID, $cityId, $p_bolStrictRefreshCache = false, $p_bolStrictMaster = false, $p_bolSynIDC = false) { $objORM = new ORM_PropertyORM('ajk_propertys', $p_bolStrictMaster); $objORM->PROID = $p_intPropertyID; $objORM->CITYID = $cityId; $arrProperty = $objORM->getRow($p_bolStrictRefreshCache, $p_bolSynIDC); apf_require_class('DAO_Property_sp'); if ($arrProperty['TRADETYPE'] == 1) { $arrExt = DAO_Property_sp::getPropertySale($p_intPropertyID, $p_bolStrictRefreshCache, $p_bolStrictMaster); } else { $arrExt = DAO_Property_sp::getPropertyRent($p_intPropertyID, $p_bolStrictRefreshCache, $p_bolStrictMaster); } if (!is_array($arrProperty)) { $arrProperty = array(); } if (!is_array($arrExt)) { $arrExt = array(); } unset($arrExt['URICODE']); return array_merge($arrProperty, $arrExt); }