table("tab_point_record as pr") ->field("pr.*,u.account,pt.name") ->where($map) ->join("tab_user u on u.id=pr.user_id") ->join("tab_point_type pt on pr.type_id = pt.id") ->order($order) ->page($page,$row) ->select(); $data['count'] = $this ->table("tab_point_record as pr") ->where($map) ->join("tab_user u on u.id=pr.user_id") ->join("tab_point_type pt on pr.type_id = pt.id") ->count(); return $data; } }