diff --git a/novel-front/src/main/java/xyz/zinglizingli/books/service/BookService.java b/novel-front/src/main/java/xyz/zinglizingli/books/service/BookService.java index db0eff72..68ae8670 100644 --- a/novel-front/src/main/java/xyz/zinglizingli/books/service/BookService.java +++ b/novel-front/src/main/java/xyz/zinglizingli/books/service/BookService.java @@ -442,7 +442,7 @@ public int countByPicName(String fileName) { * */ public void addBookParseLog(String bookUrl, String bookName, Float score) { BookParseLogExample example = new BookParseLogExample(); - example.createCriteria().andBookUrlEqualTo(bookUrl); + example.createCriteria().andBookUrlEqualTo(bookUrl).andCreateTimeGreaterThan(new Date(System.currentTimeMillis()-1000*60*60)); if(bookParseLogMapper.countByExample(example)==0) { BookParseLog bookParseLog = new BookParseLog(); bookParseLog.setBookUrl(bookUrl);