Ejemplo n.º 1
0
 public static function IsExistsOtherCommName($CommId, $AreaCode)
 {
     $objORM = new ORM_AnjukeORM('ajk_communitys');
     $strWhere = " CommId in ( ? ) and AreaCode like '" . $AreaCode . "%'";
     $arrParams = array($CommId);
     $objORM->disableCache();
     return $objORM->getCnt($strWhere, $arrParams);
 }
Ejemplo n.º 2
0
 /**
  * 获取经纪人的邀请
  * @static
  * @param string $p_strWhere
  * @param array $p_arrParam
  * @return array
  */
 static function getBrokerInvite($p_strWhere, $p_arrParam)
 {
     $objORM = new ORM_AnjukeORM('ajk_agent_broker_invite');
     $objORM->disableCache();
     $arrInvite = $objORM->getList($p_strWhere, $p_arrParam);
     if (!empty($arrInvite)) {
         return $arrInvite[0];
     } else {
         return array();
     }
 }