where('login_name','=', $login_name)->find(); } public function getInfoById($id) { if (empty($id)) { return false; } return $this->where('id', '=', $id)->find(); } public function getInfoList($where='',$pageNum=1,$pageSize=10) { return $this->where($where)->page($pageNum,$pageSize)->select(); } public function getInfoListCount($where='') { return $this->where($where)->select()->count(); } }