table("tab_point_shop_record as sr") ->field("sr.user_id,sr.good_name,sr.number,sr.pay_amount,sr.create_time,sr.address") ->join("left join tab_user u on u.id = sr.user_id") ->where($map) ->order($order) ->page($page, $row) ->select(); $data['count'] = $this ->table("tab_point_shop_record as sr") ->where($map) ->join("left join tab_user u on u.id = sr.user_id") ->count(); return $data; } }