bug修复

This commit is contained in:
xiongxiaoyang 2020-01-17 11:03:49 +08:00
parent eb4785d8fd
commit 507a10077d

View File

@ -442,7 +442,7 @@ public class BookService {
* */
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);