mirror of
https://gitee.com/novel_dev_team/novel-plus
synced 2026-07-20 17:54:59 +08:00
fix(novel-admin): 修复小说推荐列表分页显示异常
推荐小说不存在时,分页会显示异常
This commit is contained in:
@@ -43,7 +43,7 @@
|
|||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="count" resultType="int">
|
<select id="count" resultType="int">
|
||||||
select count(*) from book_setting t1 inner join book t2 on t1.book_id = t2.id
|
select count(*) from book_setting t1
|
||||||
<where>
|
<where>
|
||||||
<if test="id != null and id != ''">and t1.id = #{id}</if>
|
<if test="id != null and id != ''">and t1.id = #{id}</if>
|
||||||
<if test="bookId != null and bookId != ''">and t1.book_id = #{bookId}</if>
|
<if test="bookId != null and bookId != ''">and t1.book_id = #{bookId}</if>
|
||||||
|
|||||||
Reference in New Issue
Block a user