mobile = $postData['mobile']; $this->sso_id = $postData['id']; $this->compilation_id = $postData['cid']; $this->cname = $postData['cname']; $this->sid = $staff['sid']; $this->cid = $staff['cid']; $this->client_id = !empty($postData['client_id']) && $postData['client_id'] != 0 ? $postData['client_id'] : 0; $this->addtime = time(); return $this->insert(); } public function getList($sql = ' 1') { return $this->find(array('where' => $sql, 'desc' => 'id', 'asArray' => true)); } public function getListByssoID($ssoid) { return $this->find(array('where' => 'sso_id=?', 'param' => array($ssoid), 'desc' => 'id', 'asArray' => TRUE)); } public function getOneByssoID($ssoid) { return $this->getOne(array('where' => 'sso_id=?', 'param' => array($ssoid), 'desc' => 'id', 'asArray' => TRUE)); } public function setClientID($ssoid, $client_id) { $this->client_id = $client_id; return $this->update(array('where' => 'sso_id=?', 'param' => array($ssoid))); } public function getCompilationList() { return $this->find(array('select' => 'compilation_id,cname,cid', 'groupby' => 'cname', 'desc' => 'id', 'asArray' => TRUE)); } } ?>