1
0
mirror of https://gitee.com/bookshelfplus/bookshelfplus synced 2025-09-22 01:30:40 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee

用户收藏列表后端完成

This commit is contained in:
2022-04-07 10:38:25 +08:00
parent 1d93ade6ff
commit af88f65679
5 changed files with 68 additions and 7 deletions

View File

@@ -286,4 +286,14 @@
author = #{author,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
<select id="selectFavoritesListByUserId" parameterType="java.lang.Integer" resultMap="ResultMapWithBLOBs">
select
book_info.id, book_name, category_id, publishing_house, `language`, copyright, is_delete, thumbnail
<!--<include refid="Base_Column_List" />-->
,
<include refid="Blob_Column_List" />,
from user_book_favorites_relation
left join book_info on user_book_favorites_relation.book_id = book_info.id
where user_book_favorites_relation.user_id = #{userId,jdbcType=INTEGER}
</select>
</mapper>