优化章节字数算法,优化爬虫代码

This commit is contained in:
xiongxiaoyang
2020-12-23 23:48:34 +08:00
parent 1046a7ffc1
commit 0a10504461
4 changed files with 66 additions and 89 deletions

View File

@@ -15,8 +15,7 @@
<select id="queryTotalWordCount" parameterType="long" resultType="int">
select sum(t2.word_count) from book t1 inner join book_index t2
on t1.id = t2.book_id and t1.id = #{bookId}
select sum(word_count) from book_index where book_id = #{bookId}
</select>
<update id="updateCrawlLastTime">