SELECT a.copyright_id as copyrightId,a.copyright_name as copyrightName
FROM bi_report.book_banquanweihu a inner join (select copyright_id from user_copyright_map where user_id=#{userId} and status=1) b on a.copyright_id=b.copyright_id group by a.copyright_id,a.copyright_name;