mirror of
https://github.com/201206030/novel.git
synced 2025-06-23 23:58:30 +00:00
bug修复
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user