예제 #1
0
 /**
  * 设置主营业务
  *
  * @param $userId
  * @param $brokerId
  * @param $mainBusinessType
  * @return mixed
  */
 public function setMainBusiness($userId, $brokerId, $mainBusinessType)
 {
     $objBrokerMainBusiness = new Model_Broker_MainBusiness();
     $objBrokerMainBusiness->memberId = $userId;
     $objBrokerMainBusiness->ajkBrokerid = $brokerId;
     $objBrokerMainBusiness->type = $mainBusinessType;
     $objBrokerMainBusiness->save();
     return $objBrokerMainBusiness->id;
 }