mirror of
https://gitee.com/novel_dev_team/novel
synced 2026-07-20 17:52:45 +08:00
bug修复
This commit is contained in:
@@ -442,7 +442,7 @@ public class BookService {
|
|||||||
* */
|
* */
|
||||||
public void addBookParseLog(String bookUrl, String bookName, Float score) {
|
public void addBookParseLog(String bookUrl, String bookName, Float score) {
|
||||||
BookParseLogExample example = new BookParseLogExample();
|
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) {
|
if(bookParseLogMapper.countByExample(example)==0) {
|
||||||
BookParseLog bookParseLog = new BookParseLog();
|
BookParseLog bookParseLog = new BookParseLog();
|
||||||
bookParseLog.setBookUrl(bookUrl);
|
bookParseLog.setBookUrl(bookUrl);
|
||||||
|
|||||||
Reference in New Issue
Block a user