新增加入书架的书籍下次可继续上次阅读记录阅读

This commit is contained in:
xxy
2019-12-01 13:32:37 +08:00
parent 2b8eb63836
commit ace84ef155
10 changed files with 62 additions and 16 deletions

View File

@ -178,4 +178,15 @@
book_id = #{bookId,jdbcType=BIGINT}
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateNewstIndex">
update user_ref_book
set index_num = #{indexNum}
where book_id = #{bookId} and user_id = #{userId}
</update>
<select id="queryBookIndexNumber" resultType="java.lang.Integer">
select index_num from user_ref_book
where book_id = #{bookId} and user_id = #{userId}
</select>
</mapper>