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 getPropertyListByBrokerIdNew($condition, $params, $refresh = false) { $objORM = new ORM_PropertyORM(); $result = $objORM->getList($condition, $params, $refresh); return $result; }