Skip to content

Commit

Permalink
bug修复
Browse files Browse the repository at this point in the history
  • Loading branch information
x201206030 committed Jan 17, 2020
1 parent eb4785d commit 507a100
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 507a100

Please sign in to comment.