Exemple #1
0
 public static function getDataByBrokerIdAndCustomerId($brokerId, $customerId)
 {
     if (empty($brokerId) || empty($customerId)) {
         return array();
     }
     return Model_Mobile_CustomerLock::getBrokerCustomerLatestForeverLock($brokerId, $customerId);
 }
 /**
  * 抢客户第二版 • 获取经纪人和客户最新永久锁定关联的关系记录
  *
  * @param $brokerId
  * @param $deviceId
  *
  * @return Model_Mobile_BrokerUserRelation | null
  */
 public static function getBrokerCustomerLatestForeverLockRelation($brokerId, $deviceId)
 {
     $relation = null;
     $latestTryLock = Model_Mobile_CustomerLock::getBrokerCustomerLatestForeverLock($brokerId, $deviceId);
     if ($latestTryLock) {
         $suffix = date('Ym', strtotime($latestTryLock->uploadDt));
         $relation = self::data_access($suffix)->filter('id', $latestTryLock->relationId)->find_only();
     }
     return $relation;
 }