mirror of
https://github.com/201206030/novel.git
synced 2025-04-27 07:30:50 +00:00
bug修复
This commit is contained in:
parent
eb4785d8fd
commit
507a10077d
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user