fix(novel-admin): 修复小说推荐列表分页显示异常

推荐小说不存在时,分页会显示异常
This commit is contained in:
xiongxiaoyang
2025-10-25 11:35:37 +08:00
parent 938ae8571d
commit bd12d2f2a5

View File

@@ -43,7 +43,7 @@
</select>
<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>
<if test="id != null and id != ''">and t1.id = #{id}</if>
<if test="bookId != null and bookId != ''">and t1.book_id = #{bookId}</if>