-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c9c714e
commit 7733cf1
Showing
7 changed files
with
441 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
136 changes: 136 additions & 0 deletions
136
novel-common/src/main/java/com/java2nb/novel/entity/CrawlSingleTask.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,136 @@ | ||
package com.java2nb.novel.entity; | ||
|
||
import java.util.Date; | ||
import javax.annotation.Generated; | ||
|
||
public class CrawlSingleTask { | ||
@Generated("org.mybatis.generator.api.MyBatisGenerator") | ||
private Long id; | ||
|
||
@Generated("org.mybatis.generator.api.MyBatisGenerator") | ||
private Integer sourceId; | ||
|
||
@Generated("org.mybatis.generator.api.MyBatisGenerator") | ||
private String sourceName; | ||
|
||
@Generated("org.mybatis.generator.api.MyBatisGenerator") | ||
private String sourceBookId; | ||
|
||
@Generated("org.mybatis.generator.api.MyBatisGenerator") | ||
private Integer catId; | ||
|
||
@Generated("org.mybatis.generator.api.MyBatisGenerator") | ||
private String bookName; | ||
|
||
@Generated("org.mybatis.generator.api.MyBatisGenerator") | ||
private String authorName; | ||
|
||
@Generated("org.mybatis.generator.api.MyBatisGenerator") | ||
private Byte taskStatus; | ||
|
||
@Generated("org.mybatis.generator.api.MyBatisGenerator") | ||
private Byte excCount; | ||
|
||
@Generated("org.mybatis.generator.api.MyBatisGenerator") | ||
private Date createTime; | ||
|
||
@Generated("org.mybatis.generator.api.MyBatisGenerator") | ||
public Long getId() { | ||
return id; | ||
} | ||
|
||
@Generated("org.mybatis.generator.api.MyBatisGenerator") | ||
public void setId(Long id) { | ||
this.id = id; | ||
} | ||
|
||
@Generated("org.mybatis.generator.api.MyBatisGenerator") | ||
public Integer getSourceId() { | ||
return sourceId; | ||
} | ||
|
||
@Generated("org.mybatis.generator.api.MyBatisGenerator") | ||
public void setSourceId(Integer sourceId) { | ||
this.sourceId = sourceId; | ||
} | ||
|
||
@Generated("org.mybatis.generator.api.MyBatisGenerator") | ||
public String getSourceName() { | ||
return sourceName; | ||
} | ||
|
||
@Generated("org.mybatis.generator.api.MyBatisGenerator") | ||
public void setSourceName(String sourceName) { | ||
this.sourceName = sourceName == null ? null : sourceName.trim(); | ||
} | ||
|
||
@Generated("org.mybatis.generator.api.MyBatisGenerator") | ||
public String getSourceBookId() { | ||
return sourceBookId; | ||
} | ||
|
||
@Generated("org.mybatis.generator.api.MyBatisGenerator") | ||
public void setSourceBookId(String sourceBookId) { | ||
this.sourceBookId = sourceBookId == null ? null : sourceBookId.trim(); | ||
} | ||
|
||
@Generated("org.mybatis.generator.api.MyBatisGenerator") | ||
public Integer getCatId() { | ||
return catId; | ||
} | ||
|
||
@Generated("org.mybatis.generator.api.MyBatisGenerator") | ||
public void setCatId(Integer catId) { | ||
this.catId = catId; | ||
} | ||
|
||
@Generated("org.mybatis.generator.api.MyBatisGenerator") | ||
public String getBookName() { | ||
return bookName; | ||
} | ||
|
||
@Generated("org.mybatis.generator.api.MyBatisGenerator") | ||
public void setBookName(String bookName) { | ||
this.bookName = bookName == null ? null : bookName.trim(); | ||
} | ||
|
||
@Generated("org.mybatis.generator.api.MyBatisGenerator") | ||
public String getAuthorName() { | ||
return authorName; | ||
} | ||
|
||
@Generated("org.mybatis.generator.api.MyBatisGenerator") | ||
public void setAuthorName(String authorName) { | ||
this.authorName = authorName == null ? null : authorName.trim(); | ||
} | ||
|
||
@Generated("org.mybatis.generator.api.MyBatisGenerator") | ||
public Byte getTaskStatus() { | ||
return taskStatus; | ||
} | ||
|
||
@Generated("org.mybatis.generator.api.MyBatisGenerator") | ||
public void setTaskStatus(Byte taskStatus) { | ||
this.taskStatus = taskStatus; | ||
} | ||
|
||
@Generated("org.mybatis.generator.api.MyBatisGenerator") | ||
public Byte getExcCount() { | ||
return excCount; | ||
} | ||
|
||
@Generated("org.mybatis.generator.api.MyBatisGenerator") | ||
public void setExcCount(Byte excCount) { | ||
this.excCount = excCount; | ||
} | ||
|
||
@Generated("org.mybatis.generator.api.MyBatisGenerator") | ||
public Date getCreateTime() { | ||
return createTime; | ||
} | ||
|
||
@Generated("org.mybatis.generator.api.MyBatisGenerator") | ||
public void setCreateTime(Date createTime) { | ||
this.createTime = createTime; | ||
} | ||
} |
69 changes: 69 additions & 0 deletions
69
novel-common/src/main/java/com/java2nb/novel/mapper/CrawlSingleTaskDynamicSqlSupport.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
package com.java2nb.novel.mapper; | ||
|
||
import java.sql.JDBCType; | ||
import java.util.Date; | ||
import javax.annotation.Generated; | ||
import org.mybatis.dynamic.sql.SqlColumn; | ||
import org.mybatis.dynamic.sql.SqlTable; | ||
|
||
public final class CrawlSingleTaskDynamicSqlSupport { | ||
@Generated("org.mybatis.generator.api.MyBatisGenerator") | ||
public static final CrawlSingleTask crawlSingleTask = new CrawlSingleTask(); | ||
|
||
@Generated("org.mybatis.generator.api.MyBatisGenerator") | ||
public static final SqlColumn<Long> id = crawlSingleTask.id; | ||
|
||
@Generated("org.mybatis.generator.api.MyBatisGenerator") | ||
public static final SqlColumn<Integer> sourceId = crawlSingleTask.sourceId; | ||
|
||
@Generated("org.mybatis.generator.api.MyBatisGenerator") | ||
public static final SqlColumn<String> sourceName = crawlSingleTask.sourceName; | ||
|
||
@Generated("org.mybatis.generator.api.MyBatisGenerator") | ||
public static final SqlColumn<String> sourceBookId = crawlSingleTask.sourceBookId; | ||
|
||
@Generated("org.mybatis.generator.api.MyBatisGenerator") | ||
public static final SqlColumn<Integer> catId = crawlSingleTask.catId; | ||
|
||
@Generated("org.mybatis.generator.api.MyBatisGenerator") | ||
public static final SqlColumn<String> bookName = crawlSingleTask.bookName; | ||
|
||
@Generated("org.mybatis.generator.api.MyBatisGenerator") | ||
public static final SqlColumn<String> authorName = crawlSingleTask.authorName; | ||
|
||
@Generated("org.mybatis.generator.api.MyBatisGenerator") | ||
public static final SqlColumn<Byte> taskStatus = crawlSingleTask.taskStatus; | ||
|
||
@Generated("org.mybatis.generator.api.MyBatisGenerator") | ||
public static final SqlColumn<Byte> excCount = crawlSingleTask.excCount; | ||
|
||
@Generated("org.mybatis.generator.api.MyBatisGenerator") | ||
public static final SqlColumn<Date> createTime = crawlSingleTask.createTime; | ||
|
||
@Generated("org.mybatis.generator.api.MyBatisGenerator") | ||
public static final class CrawlSingleTask extends SqlTable { | ||
public final SqlColumn<Long> id = column("id", JDBCType.BIGINT); | ||
|
||
public final SqlColumn<Integer> sourceId = column("source_id", JDBCType.INTEGER); | ||
|
||
public final SqlColumn<String> sourceName = column("source_name", JDBCType.VARCHAR); | ||
|
||
public final SqlColumn<String> sourceBookId = column("source_book_id", JDBCType.VARCHAR); | ||
|
||
public final SqlColumn<Integer> catId = column("cat_id", JDBCType.INTEGER); | ||
|
||
public final SqlColumn<String> bookName = column("book_name", JDBCType.VARCHAR); | ||
|
||
public final SqlColumn<String> authorName = column("author_name", JDBCType.VARCHAR); | ||
|
||
public final SqlColumn<Byte> taskStatus = column("task_status", JDBCType.TINYINT); | ||
|
||
public final SqlColumn<Byte> excCount = column("exc_count", JDBCType.TINYINT); | ||
|
||
public final SqlColumn<Date> createTime = column("create_time", JDBCType.TIMESTAMP); | ||
|
||
public CrawlSingleTask() { | ||
super("crawl_single_task"); | ||
} | ||
} | ||
} |
Oops, something went wrong.