mirror of
https://gitee.com/novel_dev_team/novel-plus
synced 2026-07-20 17:54:59 +08:00
爬虫代码优化
This commit is contained in:
@@ -171,7 +171,7 @@ public class CrawlParser {
|
|||||||
int indexNum = 0;
|
int indexNum = 0;
|
||||||
|
|
||||||
//总字数
|
//总字数
|
||||||
Integer totalWordCount = 0;
|
Integer totalWordCount = book.getWordCount() == null ? 0 : book.getWordCount();
|
||||||
|
|
||||||
while (isFindIndex) {
|
while (isFindIndex) {
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
<select id="queryNeedUpdateBook" resultType="com.java2nb.novel.entity.Book">
|
<select id="queryNeedUpdateBook" resultType="com.java2nb.novel.entity.Book">
|
||||||
|
|
||||||
select id,crawl_source_id,crawl_book_id,crawl_last_time,pic_url
|
select id,crawl_source_id,crawl_book_id,crawl_last_time,pic_url,word_count
|
||||||
from book where last_index_update_time > #{startDate} and crawl_source_id is not null
|
from book where last_index_update_time > #{startDate} and crawl_source_id is not null
|
||||||
order by crawl_last_time
|
order by crawl_last_time
|
||||||
limit ${limit}
|
limit ${limit}
|
||||||
|
|||||||
Reference in New Issue
Block a user