Beispiel #1
0
 /**
  * 获取经纪人最经修改手机号码的记录
  * @param  $p_intCommID
  * @param  $p_bolStrictFreshCache
  */
 public static function getEditMobileLog($p_intBrokerID, $p_bolStrictFreshCache = true)
 {
     $objORM = new ORM_ActionORM('ajk_broker_editmobile_log');
     $strWhere = 'BrokerId = ? order by Id desc limit 1';
     $arrParams = array($p_intBrokerID);
     return $objORM->getList($strWhere, $arrParams, $p_bolStrictFreshCache);
 }
Beispiel #2
0
 public static function insert_into_planlog($params)
 {
     $orm = new ORM_ActionORM("l_hp_plan_log_" . date("m"));
     foreach ($params as $field => $value) {
         $orm->{$field} = $value;
     }
     return $orm->addData();
 }
 public static function addShopSwitcherLog($p_intBrokerId, $p_intShopId, $p_intIsOpen)
 {
     $objORM = new ORM_ActionORM('log_shop_switcher');
     $objORM->BROKERID = $p_intBrokerId;
     $objORM->SHOPID = $p_intShopId;
     $objORM->ISOPEN = $p_intIsOpen;
     $objORM->POSTTIME = time();
     return $objORM->addData();
 }
Beispiel #4
0
 /**
  * 记录接受邀请注册的经纪人的记录
  * @param array $p_arrParam
  * @param bealoon $p_bolCreateCache
  */
 public function insertAcceptFriendInviteBroker($p_arrParam, $p_bolCreateCache = true)
 {
     $objORM = new ORM_ActionORM('accept_friend_invite_broker');
     foreach ($p_arrParam as $strKey => $mixValue) {
         $objORM->{$strKey} = $mixValue;
     }
     return $objORM->addData($p_bolCreateCache);
 }
Beispiel #5
0
 /**
  * 根据删除图片id得到删除原因
  * @param unknown_type $TableName
  * @param unknown_type $p_intLogId
  * @param unknown_type $p_bolStrictFreshCache
  */
 public static function getUnPassedPicReason($TableName, $p_intLogId, $p_bolStrictFreshCache = false)
 {
     $objORM = new ORM_ActionORM($TableName);
     $objORM->DEAL_IMAGE_LOG_ID = $p_intLogId;
     return $objORM->getRow($p_bolStrictFreshCache);
 }
Beispiel #6
0
 /**
  * 依据经纪人ID获取单条数据
  * @param $p_intID
  * @param bool $p_bolRefresh
  * @return array
  */
 public function getOneStudyTrackData($p_intBrokerID, $p_bolRefresh = false)
 {
     $objORM = new ORM_ActionORM('log_broker_recentstudy');
     $arrRtn = $objORM->getList('BROKERID = ? and DATEM = ? limit 1', array($p_intBrokerID, date('Ym')), $p_bolRefresh);
     return empty($arrRtn) ? array() : $arrRtn[0];
 }
 public static function getBrokerActivityCentreByBrokerID($p_intBrokerID)
 {
     $objORM = new ORM_ActionORM('ajk_activity_log');
     return $objORM->getlist("BrokerId = ?", array($p_intBrokerID), true);
 }