From 507a10077d1caa46dd3e708719354ab07b906131 Mon Sep 17 00:00:00 2001 From: xiongxiaoyang <773861846@qq.com> Date: Fri, 17 Jan 2020 11:03:49 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/xyz/zinglizingli/books/service/BookService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);