feat: 手机端阅读历史页面适配

This commit is contained in:
xiongxiaoyang
2023-10-12 09:28:29 +08:00
parent 8bc05a1606
commit 4c9f39ab19
5 changed files with 405 additions and 70 deletions

View File

@ -4,12 +4,25 @@
<mapper namespace="com.java2nb.novel.mapper.FrontUserReadHistoryMapper">
<select id="listReadHistory" parameterType="long" resultType="com.java2nb.novel.vo.BookReadHistoryVO">
select t1.book_id,t1.pre_content_id,t2.book_name,t2.cat_id,t2.cat_name,t2.last_index_id,t2.last_index_name,t2.last_index_update_time
from user_read_history t1 inner join book t2 on t1.book_id = t2.id and t1.user_id = #{userId}
select t1.book_id,
t1.pre_content_id,
t2.book_name,
t2.cat_id,
t2.cat_name,
t2.last_index_id,
t2.last_index_name,
t2.last_index_update_time,
t2.pic_url,
t2.author_id,
t2.author_name,
t2.book_desc,
t2.book_status
from user_read_history t1
inner join book t2 on t1.book_id = t2.id and t1.user_id = #{userId}
order by t1.create_time desc
</select>
</mapper>