mirror of
https://gitee.com/bookshelfplus/bookshelfplus
synced 2025-09-05 00:21:38 +08:00
自动生成数据库映射文件
This commit is contained in:
@@ -171,7 +171,7 @@
|
||||
<!--允许移动生成的文件-->
|
||||
<verbose>true</verbose>
|
||||
<!--自动覆盖文件-->
|
||||
<overwrite>false</overwrite>
|
||||
<overwrite>true</overwrite>
|
||||
<!--mybatis配置文件路径-->
|
||||
<configurationFile>
|
||||
src/main/resources/mybatis-generator.xml
|
||||
|
@@ -0,0 +1,69 @@
|
||||
package plus.bookshelf.Dao.DO;
|
||||
|
||||
public class AuthorDO {
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column book_author_info.id
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
private Integer id;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column book_author_info.name
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column book_author_info.id
|
||||
*
|
||||
* @return the value of book_author_info.id
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column book_author_info.id
|
||||
*
|
||||
* @param id the value for book_author_info.id
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column book_author_info.name
|
||||
*
|
||||
* @return the value of book_author_info.name
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column book_author_info.name
|
||||
*
|
||||
* @param name the value for book_author_info.name
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public void setName(String name) {
|
||||
this.name = name == null ? null : name.trim();
|
||||
}
|
||||
}
|
201
bookshelfplus/src/main/java/plus/bookshelf/Dao/DO/BookDO.java
Normal file
201
bookshelfplus/src/main/java/plus/bookshelf/Dao/DO/BookDO.java
Normal file
@@ -0,0 +1,201 @@
|
||||
package plus.bookshelf.Dao.DO;
|
||||
|
||||
public class BookDO extends BookDOKey {
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column book_info.category_id
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
private Integer categoryId;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column book_info.publishing_house_id
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
private Integer publishingHouseId;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column book_info.language
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
private String language;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column book_info.copyright
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
private String copyright;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column book_info.is_delete
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
private Boolean isDelete;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column book_info.description
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
private String description;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column book_info.category_id
|
||||
*
|
||||
* @return the value of book_info.category_id
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public Integer getCategoryId() {
|
||||
return categoryId;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column book_info.category_id
|
||||
*
|
||||
* @param categoryId the value for book_info.category_id
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public void setCategoryId(Integer categoryId) {
|
||||
this.categoryId = categoryId;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column book_info.publishing_house_id
|
||||
*
|
||||
* @return the value of book_info.publishing_house_id
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public Integer getPublishingHouseId() {
|
||||
return publishingHouseId;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column book_info.publishing_house_id
|
||||
*
|
||||
* @param publishingHouseId the value for book_info.publishing_house_id
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public void setPublishingHouseId(Integer publishingHouseId) {
|
||||
this.publishingHouseId = publishingHouseId;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column book_info.language
|
||||
*
|
||||
* @return the value of book_info.language
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public String getLanguage() {
|
||||
return language;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column book_info.language
|
||||
*
|
||||
* @param language the value for book_info.language
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public void setLanguage(String language) {
|
||||
this.language = language == null ? null : language.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column book_info.copyright
|
||||
*
|
||||
* @return the value of book_info.copyright
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public String getCopyright() {
|
||||
return copyright;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column book_info.copyright
|
||||
*
|
||||
* @param copyright the value for book_info.copyright
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public void setCopyright(String copyright) {
|
||||
this.copyright = copyright == null ? null : copyright.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column book_info.is_delete
|
||||
*
|
||||
* @return the value of book_info.is_delete
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public Boolean getIsDelete() {
|
||||
return isDelete;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column book_info.is_delete
|
||||
*
|
||||
* @param isDelete the value for book_info.is_delete
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public void setIsDelete(Boolean isDelete) {
|
||||
this.isDelete = isDelete;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column book_info.description
|
||||
*
|
||||
* @return the value of book_info.description
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column book_info.description
|
||||
*
|
||||
* @param description the value for book_info.description
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public void setDescription(String description) {
|
||||
this.description = description == null ? null : description.trim();
|
||||
}
|
||||
}
|
@@ -0,0 +1,69 @@
|
||||
package plus.bookshelf.Dao.DO;
|
||||
|
||||
public class BookDOKey {
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column book_info.id
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
private Byte id;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column book_info.book_name
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
private String bookName;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column book_info.id
|
||||
*
|
||||
* @return the value of book_info.id
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public Byte getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column book_info.id
|
||||
*
|
||||
* @param id the value for book_info.id
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public void setId(Byte id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column book_info.book_name
|
||||
*
|
||||
* @return the value of book_info.book_name
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public String getBookName() {
|
||||
return bookName;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column book_info.book_name
|
||||
*
|
||||
* @param bookName the value for book_info.book_name
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public void setBookName(String bookName) {
|
||||
this.bookName = bookName == null ? null : bookName.trim();
|
||||
}
|
||||
}
|
@@ -0,0 +1,234 @@
|
||||
package plus.bookshelf.Dao.DO;
|
||||
|
||||
public class CategoryDO {
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column category_info.id
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
private Integer id;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column category_info.name
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column category_info.isShow
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
private Boolean isshow;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column category_info.order
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
private Integer order;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column category_info.level
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
private Integer level;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column category_info.parentId
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
private Integer parentid;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column category_info.description
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
private String description;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column category_info.id
|
||||
*
|
||||
* @return the value of category_info.id
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column category_info.id
|
||||
*
|
||||
* @param id the value for category_info.id
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column category_info.name
|
||||
*
|
||||
* @return the value of category_info.name
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column category_info.name
|
||||
*
|
||||
* @param name the value for category_info.name
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public void setName(String name) {
|
||||
this.name = name == null ? null : name.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column category_info.isShow
|
||||
*
|
||||
* @return the value of category_info.isShow
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public Boolean getIsshow() {
|
||||
return isshow;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column category_info.isShow
|
||||
*
|
||||
* @param isshow the value for category_info.isShow
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public void setIsshow(Boolean isshow) {
|
||||
this.isshow = isshow;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column category_info.order
|
||||
*
|
||||
* @return the value of category_info.order
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public Integer getOrder() {
|
||||
return order;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column category_info.order
|
||||
*
|
||||
* @param order the value for category_info.order
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public void setOrder(Integer order) {
|
||||
this.order = order;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column category_info.level
|
||||
*
|
||||
* @return the value of category_info.level
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public Integer getLevel() {
|
||||
return level;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column category_info.level
|
||||
*
|
||||
* @param level the value for category_info.level
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public void setLevel(Integer level) {
|
||||
this.level = level;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column category_info.parentId
|
||||
*
|
||||
* @return the value of category_info.parentId
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public Integer getParentid() {
|
||||
return parentid;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column category_info.parentId
|
||||
*
|
||||
* @param parentid the value for category_info.parentId
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public void setParentid(Integer parentid) {
|
||||
this.parentid = parentid;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column category_info.description
|
||||
*
|
||||
* @return the value of category_info.description
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column category_info.description
|
||||
*
|
||||
* @param description the value for category_info.description
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public void setDescription(String description) {
|
||||
this.description = description == null ? null : description.trim();
|
||||
}
|
||||
}
|
467
bookshelfplus/src/main/java/plus/bookshelf/Dao/DO/FileDO.java
Normal file
467
bookshelfplus/src/main/java/plus/bookshelf/Dao/DO/FileDO.java
Normal file
@@ -0,0 +1,467 @@
|
||||
package plus.bookshelf.Dao.DO;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
public class FileDO extends FileDOKey {
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column file_info.file_display_name
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
private String fileDisplayName;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column file_info.file_name
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
private String fileName;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column file_info.file_format
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
private String fileFormat;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column file_info.number_of_pages
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
private Integer numberOfPages;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column file_info.watermark
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
private Boolean watermark;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column file_info.advertising
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
private Boolean advertising;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column file_info.book_origin
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
private Byte bookOrigin;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column file_info.thumbnail
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
private String thumbnail;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column file_info.file_create_at
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
private Date fileCreateAt;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column file_info.file_modified_at
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
private Date fileModifiedAt;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column file_info.file_size
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
private Integer fileSize;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column file_info.hash_md5
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
private String hashMd5;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column file_info.hash_sha1
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
private String hashSha1;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column file_info.hash_sha256
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
private String hashSha256;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column file_info.file_display_name
|
||||
*
|
||||
* @return the value of file_info.file_display_name
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public String getFileDisplayName() {
|
||||
return fileDisplayName;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column file_info.file_display_name
|
||||
*
|
||||
* @param fileDisplayName the value for file_info.file_display_name
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public void setFileDisplayName(String fileDisplayName) {
|
||||
this.fileDisplayName = fileDisplayName == null ? null : fileDisplayName.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column file_info.file_name
|
||||
*
|
||||
* @return the value of file_info.file_name
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public String getFileName() {
|
||||
return fileName;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column file_info.file_name
|
||||
*
|
||||
* @param fileName the value for file_info.file_name
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public void setFileName(String fileName) {
|
||||
this.fileName = fileName == null ? null : fileName.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column file_info.file_format
|
||||
*
|
||||
* @return the value of file_info.file_format
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public String getFileFormat() {
|
||||
return fileFormat;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column file_info.file_format
|
||||
*
|
||||
* @param fileFormat the value for file_info.file_format
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public void setFileFormat(String fileFormat) {
|
||||
this.fileFormat = fileFormat == null ? null : fileFormat.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column file_info.number_of_pages
|
||||
*
|
||||
* @return the value of file_info.number_of_pages
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public Integer getNumberOfPages() {
|
||||
return numberOfPages;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column file_info.number_of_pages
|
||||
*
|
||||
* @param numberOfPages the value for file_info.number_of_pages
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public void setNumberOfPages(Integer numberOfPages) {
|
||||
this.numberOfPages = numberOfPages;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column file_info.watermark
|
||||
*
|
||||
* @return the value of file_info.watermark
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public Boolean getWatermark() {
|
||||
return watermark;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column file_info.watermark
|
||||
*
|
||||
* @param watermark the value for file_info.watermark
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public void setWatermark(Boolean watermark) {
|
||||
this.watermark = watermark;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column file_info.advertising
|
||||
*
|
||||
* @return the value of file_info.advertising
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public Boolean getAdvertising() {
|
||||
return advertising;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column file_info.advertising
|
||||
*
|
||||
* @param advertising the value for file_info.advertising
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public void setAdvertising(Boolean advertising) {
|
||||
this.advertising = advertising;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column file_info.book_origin
|
||||
*
|
||||
* @return the value of file_info.book_origin
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public Byte getBookOrigin() {
|
||||
return bookOrigin;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column file_info.book_origin
|
||||
*
|
||||
* @param bookOrigin the value for file_info.book_origin
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public void setBookOrigin(Byte bookOrigin) {
|
||||
this.bookOrigin = bookOrigin;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column file_info.thumbnail
|
||||
*
|
||||
* @return the value of file_info.thumbnail
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public String getThumbnail() {
|
||||
return thumbnail;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column file_info.thumbnail
|
||||
*
|
||||
* @param thumbnail the value for file_info.thumbnail
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public void setThumbnail(String thumbnail) {
|
||||
this.thumbnail = thumbnail == null ? null : thumbnail.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column file_info.file_create_at
|
||||
*
|
||||
* @return the value of file_info.file_create_at
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public Date getFileCreateAt() {
|
||||
return fileCreateAt;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column file_info.file_create_at
|
||||
*
|
||||
* @param fileCreateAt the value for file_info.file_create_at
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public void setFileCreateAt(Date fileCreateAt) {
|
||||
this.fileCreateAt = fileCreateAt;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column file_info.file_modified_at
|
||||
*
|
||||
* @return the value of file_info.file_modified_at
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public Date getFileModifiedAt() {
|
||||
return fileModifiedAt;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column file_info.file_modified_at
|
||||
*
|
||||
* @param fileModifiedAt the value for file_info.file_modified_at
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public void setFileModifiedAt(Date fileModifiedAt) {
|
||||
this.fileModifiedAt = fileModifiedAt;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column file_info.file_size
|
||||
*
|
||||
* @return the value of file_info.file_size
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public Integer getFileSize() {
|
||||
return fileSize;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column file_info.file_size
|
||||
*
|
||||
* @param fileSize the value for file_info.file_size
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public void setFileSize(Integer fileSize) {
|
||||
this.fileSize = fileSize;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column file_info.hash_md5
|
||||
*
|
||||
* @return the value of file_info.hash_md5
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public String getHashMd5() {
|
||||
return hashMd5;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column file_info.hash_md5
|
||||
*
|
||||
* @param hashMd5 the value for file_info.hash_md5
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public void setHashMd5(String hashMd5) {
|
||||
this.hashMd5 = hashMd5 == null ? null : hashMd5.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column file_info.hash_sha1
|
||||
*
|
||||
* @return the value of file_info.hash_sha1
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public String getHashSha1() {
|
||||
return hashSha1;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column file_info.hash_sha1
|
||||
*
|
||||
* @param hashSha1 the value for file_info.hash_sha1
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public void setHashSha1(String hashSha1) {
|
||||
this.hashSha1 = hashSha1 == null ? null : hashSha1.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column file_info.hash_sha256
|
||||
*
|
||||
* @return the value of file_info.hash_sha256
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public String getHashSha256() {
|
||||
return hashSha256;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column file_info.hash_sha256
|
||||
*
|
||||
* @param hashSha256 the value for file_info.hash_sha256
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public void setHashSha256(String hashSha256) {
|
||||
this.hashSha256 = hashSha256 == null ? null : hashSha256.trim();
|
||||
}
|
||||
}
|
@@ -0,0 +1,69 @@
|
||||
package plus.bookshelf.Dao.DO;
|
||||
|
||||
public class FileDOKey {
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column file_info.id
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
private Integer id;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column file_info.book_id
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
private Integer bookId;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column file_info.id
|
||||
*
|
||||
* @return the value of file_info.id
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column file_info.id
|
||||
*
|
||||
* @param id the value for file_info.id
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column file_info.book_id
|
||||
*
|
||||
* @return the value of file_info.book_id
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public Integer getBookId() {
|
||||
return bookId;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column file_info.book_id
|
||||
*
|
||||
* @param bookId the value for file_info.book_id
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public void setBookId(Integer bookId) {
|
||||
this.bookId = bookId;
|
||||
}
|
||||
}
|
@@ -0,0 +1,234 @@
|
||||
package plus.bookshelf.Dao.DO;
|
||||
|
||||
public class FileObjectDO {
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column file_object_info.id
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
private Integer id;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column file_object_info.fileId
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
private Integer fileid;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column file_object_info.storage_medium_type
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
private Byte storageMediumType;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column file_object_info.file_path
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
private String filePath;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column file_object_info.file_pwd
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
private String filePwd;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column file_object_info.file_share_code
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
private String fileShareCode;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column file_object_info.additional_fields
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
private String additionalFields;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column file_object_info.id
|
||||
*
|
||||
* @return the value of file_object_info.id
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column file_object_info.id
|
||||
*
|
||||
* @param id the value for file_object_info.id
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column file_object_info.fileId
|
||||
*
|
||||
* @return the value of file_object_info.fileId
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public Integer getFileid() {
|
||||
return fileid;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column file_object_info.fileId
|
||||
*
|
||||
* @param fileid the value for file_object_info.fileId
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public void setFileid(Integer fileid) {
|
||||
this.fileid = fileid;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column file_object_info.storage_medium_type
|
||||
*
|
||||
* @return the value of file_object_info.storage_medium_type
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public Byte getStorageMediumType() {
|
||||
return storageMediumType;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column file_object_info.storage_medium_type
|
||||
*
|
||||
* @param storageMediumType the value for file_object_info.storage_medium_type
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public void setStorageMediumType(Byte storageMediumType) {
|
||||
this.storageMediumType = storageMediumType;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column file_object_info.file_path
|
||||
*
|
||||
* @return the value of file_object_info.file_path
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public String getFilePath() {
|
||||
return filePath;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column file_object_info.file_path
|
||||
*
|
||||
* @param filePath the value for file_object_info.file_path
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public void setFilePath(String filePath) {
|
||||
this.filePath = filePath == null ? null : filePath.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column file_object_info.file_pwd
|
||||
*
|
||||
* @return the value of file_object_info.file_pwd
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public String getFilePwd() {
|
||||
return filePwd;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column file_object_info.file_pwd
|
||||
*
|
||||
* @param filePwd the value for file_object_info.file_pwd
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public void setFilePwd(String filePwd) {
|
||||
this.filePwd = filePwd == null ? null : filePwd.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column file_object_info.file_share_code
|
||||
*
|
||||
* @return the value of file_object_info.file_share_code
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public String getFileShareCode() {
|
||||
return fileShareCode;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column file_object_info.file_share_code
|
||||
*
|
||||
* @param fileShareCode the value for file_object_info.file_share_code
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public void setFileShareCode(String fileShareCode) {
|
||||
this.fileShareCode = fileShareCode == null ? null : fileShareCode.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column file_object_info.additional_fields
|
||||
*
|
||||
* @return the value of file_object_info.additional_fields
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public String getAdditionalFields() {
|
||||
return additionalFields;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column file_object_info.additional_fields
|
||||
*
|
||||
* @param additionalFields the value for file_object_info.additional_fields
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public void setAdditionalFields(String additionalFields) {
|
||||
this.additionalFields = additionalFields == null ? null : additionalFields.trim();
|
||||
}
|
||||
}
|
@@ -0,0 +1,69 @@
|
||||
package plus.bookshelf.Dao.DO;
|
||||
|
||||
public class PublishingHouseDO {
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column book_publishing_house_info.id
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
private Integer id;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column book_publishing_house_info.name
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column book_publishing_house_info.id
|
||||
*
|
||||
* @return the value of book_publishing_house_info.id
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column book_publishing_house_info.id
|
||||
*
|
||||
* @param id the value for book_publishing_house_info.id
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column book_publishing_house_info.name
|
||||
*
|
||||
* @return the value of book_publishing_house_info.name
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column book_publishing_house_info.name
|
||||
*
|
||||
* @param name the value for book_publishing_house_info.name
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public void setName(String name) {
|
||||
this.name = name == null ? null : name.trim();
|
||||
}
|
||||
}
|
@@ -0,0 +1,69 @@
|
||||
package plus.bookshelf.Dao.DO;
|
||||
|
||||
public class ThumbnailDO {
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column book_thumbnail_info.id
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
private Integer id;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column book_thumbnail_info.path
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
private String path;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column book_thumbnail_info.id
|
||||
*
|
||||
* @return the value of book_thumbnail_info.id
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column book_thumbnail_info.id
|
||||
*
|
||||
* @param id the value for book_thumbnail_info.id
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column book_thumbnail_info.path
|
||||
*
|
||||
* @return the value of book_thumbnail_info.path
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public String getPath() {
|
||||
return path;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column book_thumbnail_info.path
|
||||
*
|
||||
* @param path the value for book_thumbnail_info.path
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
public void setPath(String path) {
|
||||
this.path = path == null ? null : path.trim();
|
||||
}
|
||||
}
|
@@ -0,0 +1,53 @@
|
||||
package plus.bookshelf.Dao.Mapper;
|
||||
|
||||
import plus.bookshelf.Dao.DO.AuthorDO;
|
||||
|
||||
public interface AuthorDOMapper {
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table book_author_info
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table book_author_info
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
int insert(AuthorDO record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table book_author_info
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
int insertSelective(AuthorDO record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table book_author_info
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
AuthorDO selectByPrimaryKey(Integer id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table book_author_info
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
int updateByPrimaryKeySelective(AuthorDO record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table book_author_info
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
int updateByPrimaryKey(AuthorDO record);
|
||||
}
|
@@ -0,0 +1,62 @@
|
||||
package plus.bookshelf.Dao.Mapper;
|
||||
|
||||
import plus.bookshelf.Dao.DO.BookDO;
|
||||
import plus.bookshelf.Dao.DO.BookDOKey;
|
||||
|
||||
public interface BookDOMapper {
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table book_info
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
int deleteByPrimaryKey(BookDOKey key);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table book_info
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
int insert(BookDO record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table book_info
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
int insertSelective(BookDO record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table book_info
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
BookDO selectByPrimaryKey(BookDOKey key);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table book_info
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
int updateByPrimaryKeySelective(BookDO record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table book_info
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
int updateByPrimaryKeyWithBLOBs(BookDO record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table book_info
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
int updateByPrimaryKey(BookDO record);
|
||||
}
|
@@ -0,0 +1,61 @@
|
||||
package plus.bookshelf.Dao.Mapper;
|
||||
|
||||
import plus.bookshelf.Dao.DO.CategoryDO;
|
||||
|
||||
public interface CategoryDOMapper {
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table category_info
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table category_info
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
int insert(CategoryDO record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table category_info
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
int insertSelective(CategoryDO record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table category_info
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
CategoryDO selectByPrimaryKey(Integer id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table category_info
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
int updateByPrimaryKeySelective(CategoryDO record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table category_info
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
int updateByPrimaryKeyWithBLOBs(CategoryDO record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table category_info
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
int updateByPrimaryKey(CategoryDO record);
|
||||
}
|
@@ -0,0 +1,54 @@
|
||||
package plus.bookshelf.Dao.Mapper;
|
||||
|
||||
import plus.bookshelf.Dao.DO.FileDO;
|
||||
import plus.bookshelf.Dao.DO.FileDOKey;
|
||||
|
||||
public interface FileDOMapper {
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table file_info
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
int deleteByPrimaryKey(FileDOKey key);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table file_info
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
int insert(FileDO record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table file_info
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
int insertSelective(FileDO record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table file_info
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
FileDO selectByPrimaryKey(FileDOKey key);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table file_info
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
int updateByPrimaryKeySelective(FileDO record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table file_info
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
int updateByPrimaryKey(FileDO record);
|
||||
}
|
@@ -0,0 +1,53 @@
|
||||
package plus.bookshelf.Dao.Mapper;
|
||||
|
||||
import plus.bookshelf.Dao.DO.FileObjectDO;
|
||||
|
||||
public interface FileObjectDOMapper {
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table file_object_info
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table file_object_info
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
int insert(FileObjectDO record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table file_object_info
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
int insertSelective(FileObjectDO record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table file_object_info
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
FileObjectDO selectByPrimaryKey(Integer id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table file_object_info
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
int updateByPrimaryKeySelective(FileObjectDO record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table file_object_info
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
int updateByPrimaryKey(FileObjectDO record);
|
||||
}
|
@@ -0,0 +1,53 @@
|
||||
package plus.bookshelf.Dao.Mapper;
|
||||
|
||||
import plus.bookshelf.Dao.DO.PublishingHouseDO;
|
||||
|
||||
public interface PublishingHouseDOMapper {
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table book_publishing_house_info
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table book_publishing_house_info
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
int insert(PublishingHouseDO record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table book_publishing_house_info
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
int insertSelective(PublishingHouseDO record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table book_publishing_house_info
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
PublishingHouseDO selectByPrimaryKey(Integer id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table book_publishing_house_info
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
int updateByPrimaryKeySelective(PublishingHouseDO record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table book_publishing_house_info
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
int updateByPrimaryKey(PublishingHouseDO record);
|
||||
}
|
@@ -0,0 +1,53 @@
|
||||
package plus.bookshelf.Dao.Mapper;
|
||||
|
||||
import plus.bookshelf.Dao.DO.ThumbnailDO;
|
||||
|
||||
public interface ThumbnailDOMapper {
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table book_thumbnail_info
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table book_thumbnail_info
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
int insert(ThumbnailDO record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table book_thumbnail_info
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
int insertSelective(ThumbnailDO record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table book_thumbnail_info
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
ThumbnailDO selectByPrimaryKey(Integer id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table book_thumbnail_info
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
int updateByPrimaryKeySelective(ThumbnailDO record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table book_thumbnail_info
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
*/
|
||||
int updateByPrimaryKey(ThumbnailDO record);
|
||||
}
|
98
bookshelfplus/src/main/resources/mapping/AuthorDOMapper.xml
Normal file
98
bookshelfplus/src/main/resources/mapping/AuthorDOMapper.xml
Normal file
@@ -0,0 +1,98 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="plus.bookshelf.Dao.Mapper.AuthorDOMapper">
|
||||
<resultMap id="BaseResultMap" type="plus.bookshelf.Dao.DO.AuthorDO">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Sat Mar 12 18:53:08 SGT 2022.
|
||||
-->
|
||||
<id column="id" jdbcType="INTEGER" property="id" />
|
||||
<result column="name" jdbcType="VARCHAR" property="name" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Sat Mar 12 18:53:08 SGT 2022.
|
||||
-->
|
||||
id, name
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Sat Mar 12 18:53:08 SGT 2022.
|
||||
-->
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from book_author_info
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Sat Mar 12 18:53:08 SGT 2022.
|
||||
-->
|
||||
delete from book_author_info
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</delete>
|
||||
<insert id="insert" parameterType="plus.bookshelf.Dao.DO.AuthorDO">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Sat Mar 12 18:53:08 SGT 2022.
|
||||
-->
|
||||
insert into book_author_info (id, name)
|
||||
values (#{id,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="plus.bookshelf.Dao.DO.AuthorDO">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Sat Mar 12 18:53:08 SGT 2022.
|
||||
-->
|
||||
insert into book_author_info
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="name != null">
|
||||
name,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
#{id,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="name != null">
|
||||
#{name,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="plus.bookshelf.Dao.DO.AuthorDO">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Sat Mar 12 18:53:08 SGT 2022.
|
||||
-->
|
||||
update book_author_info
|
||||
<set>
|
||||
<if test="name != null">
|
||||
name = #{name,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="plus.bookshelf.Dao.DO.AuthorDO">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Sat Mar 12 18:53:08 SGT 2022.
|
||||
-->
|
||||
update book_author_info
|
||||
set name = #{name,jdbcType=VARCHAR}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
</mapper>
|
200
bookshelfplus/src/main/resources/mapping/BookDOMapper.xml
Normal file
200
bookshelfplus/src/main/resources/mapping/BookDOMapper.xml
Normal file
@@ -0,0 +1,200 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="plus.bookshelf.Dao.Mapper.BookDOMapper">
|
||||
<resultMap id="BaseResultMap" type="plus.bookshelf.Dao.DO.BookDO">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Sat Mar 12 18:53:08 SGT 2022.
|
||||
-->
|
||||
<id column="id" jdbcType="TINYINT" property="id" />
|
||||
<id column="book_name" jdbcType="VARCHAR" property="bookName" />
|
||||
<result column="category_id" jdbcType="INTEGER" property="categoryId" />
|
||||
<result column="publishing_house_id" jdbcType="INTEGER" property="publishingHouseId" />
|
||||
<result column="language" jdbcType="VARCHAR" property="language" />
|
||||
<result column="copyright" jdbcType="VARCHAR" property="copyright" />
|
||||
<result column="is_delete" jdbcType="BIT" property="isDelete" />
|
||||
</resultMap>
|
||||
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="plus.bookshelf.Dao.DO.BookDO">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Sat Mar 12 18:53:08 SGT 2022.
|
||||
-->
|
||||
<result column="description" jdbcType="LONGVARCHAR" property="description" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Sat Mar 12 18:53:08 SGT 2022.
|
||||
-->
|
||||
id, book_name, category_id, publishing_house_id, language, copyright, is_delete
|
||||
</sql>
|
||||
<sql id="Blob_Column_List">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Sat Mar 12 18:53:08 SGT 2022.
|
||||
-->
|
||||
description
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" parameterType="plus.bookshelf.Dao.DO.BookDOKey" resultMap="ResultMapWithBLOBs">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Sat Mar 12 18:53:08 SGT 2022.
|
||||
-->
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
,
|
||||
<include refid="Blob_Column_List" />
|
||||
from book_info
|
||||
where id = #{id,jdbcType=TINYINT}
|
||||
and book_name = #{bookName,jdbcType=VARCHAR}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="plus.bookshelf.Dao.DO.BookDOKey">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Sat Mar 12 18:53:08 SGT 2022.
|
||||
-->
|
||||
delete from book_info
|
||||
where id = #{id,jdbcType=TINYINT}
|
||||
and book_name = #{bookName,jdbcType=VARCHAR}
|
||||
</delete>
|
||||
<insert id="insert" parameterType="plus.bookshelf.Dao.DO.BookDO">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Sat Mar 12 18:53:08 SGT 2022.
|
||||
-->
|
||||
insert into book_info (id, book_name, category_id,
|
||||
publishing_house_id, language, copyright,
|
||||
is_delete, description)
|
||||
values (#{id,jdbcType=TINYINT}, #{bookName,jdbcType=VARCHAR}, #{categoryId,jdbcType=INTEGER},
|
||||
#{publishingHouseId,jdbcType=INTEGER}, #{language,jdbcType=VARCHAR}, #{copyright,jdbcType=VARCHAR},
|
||||
#{isDelete,jdbcType=BIT}, #{description,jdbcType=LONGVARCHAR})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="plus.bookshelf.Dao.DO.BookDO">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Sat Mar 12 18:53:08 SGT 2022.
|
||||
-->
|
||||
insert into book_info
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="bookName != null">
|
||||
book_name,
|
||||
</if>
|
||||
<if test="categoryId != null">
|
||||
category_id,
|
||||
</if>
|
||||
<if test="publishingHouseId != null">
|
||||
publishing_house_id,
|
||||
</if>
|
||||
<if test="language != null">
|
||||
language,
|
||||
</if>
|
||||
<if test="copyright != null">
|
||||
copyright,
|
||||
</if>
|
||||
<if test="isDelete != null">
|
||||
is_delete,
|
||||
</if>
|
||||
<if test="description != null">
|
||||
description,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
#{id,jdbcType=TINYINT},
|
||||
</if>
|
||||
<if test="bookName != null">
|
||||
#{bookName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="categoryId != null">
|
||||
#{categoryId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="publishingHouseId != null">
|
||||
#{publishingHouseId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="language != null">
|
||||
#{language,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="copyright != null">
|
||||
#{copyright,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="isDelete != null">
|
||||
#{isDelete,jdbcType=BIT},
|
||||
</if>
|
||||
<if test="description != null">
|
||||
#{description,jdbcType=LONGVARCHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="plus.bookshelf.Dao.DO.BookDO">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Sat Mar 12 18:53:08 SGT 2022.
|
||||
-->
|
||||
update book_info
|
||||
<set>
|
||||
<if test="categoryId != null">
|
||||
category_id = #{categoryId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="publishingHouseId != null">
|
||||
publishing_house_id = #{publishingHouseId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="language != null">
|
||||
language = #{language,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="copyright != null">
|
||||
copyright = #{copyright,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="isDelete != null">
|
||||
is_delete = #{isDelete,jdbcType=BIT},
|
||||
</if>
|
||||
<if test="description != null">
|
||||
description = #{description,jdbcType=LONGVARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=TINYINT}
|
||||
and book_name = #{bookName,jdbcType=VARCHAR}
|
||||
</update>
|
||||
<update id="updateByPrimaryKeyWithBLOBs" parameterType="plus.bookshelf.Dao.DO.BookDO">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Sat Mar 12 18:53:08 SGT 2022.
|
||||
-->
|
||||
update book_info
|
||||
set category_id = #{categoryId,jdbcType=INTEGER},
|
||||
publishing_house_id = #{publishingHouseId,jdbcType=INTEGER},
|
||||
language = #{language,jdbcType=VARCHAR},
|
||||
copyright = #{copyright,jdbcType=VARCHAR},
|
||||
is_delete = #{isDelete,jdbcType=BIT},
|
||||
description = #{description,jdbcType=LONGVARCHAR}
|
||||
where id = #{id,jdbcType=TINYINT}
|
||||
and book_name = #{bookName,jdbcType=VARCHAR}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="plus.bookshelf.Dao.DO.BookDO">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Sat Mar 12 18:53:08 SGT 2022.
|
||||
-->
|
||||
update book_info
|
||||
set category_id = #{categoryId,jdbcType=INTEGER},
|
||||
publishing_house_id = #{publishingHouseId,jdbcType=INTEGER},
|
||||
language = #{language,jdbcType=VARCHAR},
|
||||
copyright = #{copyright,jdbcType=VARCHAR},
|
||||
is_delete = #{isDelete,jdbcType=BIT}
|
||||
where id = #{id,jdbcType=TINYINT}
|
||||
and book_name = #{bookName,jdbcType=VARCHAR}
|
||||
</update>
|
||||
</mapper>
|
188
bookshelfplus/src/main/resources/mapping/CategoryDOMapper.xml
Normal file
188
bookshelfplus/src/main/resources/mapping/CategoryDOMapper.xml
Normal file
@@ -0,0 +1,188 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="plus.bookshelf.Dao.Mapper.CategoryDOMapper">
|
||||
<resultMap id="BaseResultMap" type="plus.bookshelf.Dao.DO.CategoryDO">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Sat Mar 12 18:53:08 SGT 2022.
|
||||
-->
|
||||
<id column="id" jdbcType="INTEGER" property="id" />
|
||||
<result column="name" jdbcType="VARCHAR" property="name" />
|
||||
<result column="isShow" jdbcType="BIT" property="isshow" />
|
||||
<result column="order" jdbcType="INTEGER" property="order" />
|
||||
<result column="level" jdbcType="INTEGER" property="level" />
|
||||
<result column="parentId" jdbcType="INTEGER" property="parentid" />
|
||||
</resultMap>
|
||||
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="plus.bookshelf.Dao.DO.CategoryDO">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Sat Mar 12 18:53:08 SGT 2022.
|
||||
-->
|
||||
<result column="description" jdbcType="LONGVARCHAR" property="description" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Sat Mar 12 18:53:08 SGT 2022.
|
||||
-->
|
||||
id, name, isShow, order, level, parentId
|
||||
</sql>
|
||||
<sql id="Blob_Column_List">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Sat Mar 12 18:53:08 SGT 2022.
|
||||
-->
|
||||
description
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="ResultMapWithBLOBs">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Sat Mar 12 18:53:08 SGT 2022.
|
||||
-->
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
,
|
||||
<include refid="Blob_Column_List" />
|
||||
from category_info
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Sat Mar 12 18:53:08 SGT 2022.
|
||||
-->
|
||||
delete from category_info
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</delete>
|
||||
<insert id="insert" parameterType="plus.bookshelf.Dao.DO.CategoryDO">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Sat Mar 12 18:53:08 SGT 2022.
|
||||
-->
|
||||
insert into category_info (id, name, isShow,
|
||||
order, level, parentId,
|
||||
description)
|
||||
values (#{id,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, #{isshow,jdbcType=BIT},
|
||||
#{order,jdbcType=INTEGER}, #{level,jdbcType=INTEGER}, #{parentid,jdbcType=INTEGER},
|
||||
#{description,jdbcType=LONGVARCHAR})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="plus.bookshelf.Dao.DO.CategoryDO">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Sat Mar 12 18:53:08 SGT 2022.
|
||||
-->
|
||||
insert into category_info
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="name != null">
|
||||
name,
|
||||
</if>
|
||||
<if test="isshow != null">
|
||||
isShow,
|
||||
</if>
|
||||
<if test="order != null">
|
||||
order,
|
||||
</if>
|
||||
<if test="level != null">
|
||||
level,
|
||||
</if>
|
||||
<if test="parentid != null">
|
||||
parentId,
|
||||
</if>
|
||||
<if test="description != null">
|
||||
description,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
#{id,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="name != null">
|
||||
#{name,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="isshow != null">
|
||||
#{isshow,jdbcType=BIT},
|
||||
</if>
|
||||
<if test="order != null">
|
||||
#{order,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="level != null">
|
||||
#{level,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="parentid != null">
|
||||
#{parentid,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="description != null">
|
||||
#{description,jdbcType=LONGVARCHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="plus.bookshelf.Dao.DO.CategoryDO">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Sat Mar 12 18:53:08 SGT 2022.
|
||||
-->
|
||||
update category_info
|
||||
<set>
|
||||
<if test="name != null">
|
||||
name = #{name,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="isshow != null">
|
||||
isShow = #{isshow,jdbcType=BIT},
|
||||
</if>
|
||||
<if test="order != null">
|
||||
order = #{order,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="level != null">
|
||||
level = #{level,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="parentid != null">
|
||||
parentId = #{parentid,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="description != null">
|
||||
description = #{description,jdbcType=LONGVARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
<update id="updateByPrimaryKeyWithBLOBs" parameterType="plus.bookshelf.Dao.DO.CategoryDO">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Sat Mar 12 18:53:08 SGT 2022.
|
||||
-->
|
||||
update category_info
|
||||
set name = #{name,jdbcType=VARCHAR},
|
||||
isShow = #{isshow,jdbcType=BIT},
|
||||
order = #{order,jdbcType=INTEGER},
|
||||
level = #{level,jdbcType=INTEGER},
|
||||
parentId = #{parentid,jdbcType=INTEGER},
|
||||
description = #{description,jdbcType=LONGVARCHAR}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="plus.bookshelf.Dao.DO.CategoryDO">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Sat Mar 12 18:53:08 SGT 2022.
|
||||
-->
|
||||
update category_info
|
||||
set name = #{name,jdbcType=VARCHAR},
|
||||
isShow = #{isshow,jdbcType=BIT},
|
||||
order = #{order,jdbcType=INTEGER},
|
||||
level = #{level,jdbcType=INTEGER},
|
||||
parentId = #{parentid,jdbcType=INTEGER}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
</mapper>
|
264
bookshelfplus/src/main/resources/mapping/FileDOMapper.xml
Normal file
264
bookshelfplus/src/main/resources/mapping/FileDOMapper.xml
Normal file
@@ -0,0 +1,264 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="plus.bookshelf.Dao.Mapper.FileDOMapper">
|
||||
<resultMap id="BaseResultMap" type="plus.bookshelf.Dao.DO.FileDO">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Sat Mar 12 18:53:08 SGT 2022.
|
||||
-->
|
||||
<id column="id" jdbcType="INTEGER" property="id" />
|
||||
<id column="book_id" jdbcType="INTEGER" property="bookId" />
|
||||
<result column="file_display_name" jdbcType="VARCHAR" property="fileDisplayName" />
|
||||
<result column="file_name" jdbcType="VARCHAR" property="fileName" />
|
||||
<result column="file_format" jdbcType="VARCHAR" property="fileFormat" />
|
||||
<result column="number_of_pages" jdbcType="INTEGER" property="numberOfPages" />
|
||||
<result column="watermark" jdbcType="BIT" property="watermark" />
|
||||
<result column="advertising" jdbcType="BIT" property="advertising" />
|
||||
<result column="book_origin" jdbcType="TINYINT" property="bookOrigin" />
|
||||
<result column="thumbnail" jdbcType="VARCHAR" property="thumbnail" />
|
||||
<result column="file_create_at" jdbcType="TIMESTAMP" property="fileCreateAt" />
|
||||
<result column="file_modified_at" jdbcType="TIMESTAMP" property="fileModifiedAt" />
|
||||
<result column="file_size" jdbcType="INTEGER" property="fileSize" />
|
||||
<result column="hash_md5" jdbcType="VARCHAR" property="hashMd5" />
|
||||
<result column="hash_sha1" jdbcType="VARCHAR" property="hashSha1" />
|
||||
<result column="hash_sha256" jdbcType="VARCHAR" property="hashSha256" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Sat Mar 12 18:53:08 SGT 2022.
|
||||
-->
|
||||
id, book_id, file_display_name, file_name, file_format, number_of_pages, watermark,
|
||||
advertising, book_origin, thumbnail, file_create_at, file_modified_at, file_size,
|
||||
hash_md5, hash_sha1, hash_sha256
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" parameterType="plus.bookshelf.Dao.DO.FileDOKey" resultMap="BaseResultMap">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Sat Mar 12 18:53:08 SGT 2022.
|
||||
-->
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from file_info
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
and book_id = #{bookId,jdbcType=INTEGER}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="plus.bookshelf.Dao.DO.FileDOKey">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Sat Mar 12 18:53:08 SGT 2022.
|
||||
-->
|
||||
delete from file_info
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
and book_id = #{bookId,jdbcType=INTEGER}
|
||||
</delete>
|
||||
<insert id="insert" parameterType="plus.bookshelf.Dao.DO.FileDO">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Sat Mar 12 18:53:08 SGT 2022.
|
||||
-->
|
||||
insert into file_info (id, book_id, file_display_name,
|
||||
file_name, file_format, number_of_pages,
|
||||
watermark, advertising, book_origin,
|
||||
thumbnail, file_create_at, file_modified_at,
|
||||
file_size, hash_md5, hash_sha1,
|
||||
hash_sha256)
|
||||
values (#{id,jdbcType=INTEGER}, #{bookId,jdbcType=INTEGER}, #{fileDisplayName,jdbcType=VARCHAR},
|
||||
#{fileName,jdbcType=VARCHAR}, #{fileFormat,jdbcType=VARCHAR}, #{numberOfPages,jdbcType=INTEGER},
|
||||
#{watermark,jdbcType=BIT}, #{advertising,jdbcType=BIT}, #{bookOrigin,jdbcType=TINYINT},
|
||||
#{thumbnail,jdbcType=VARCHAR}, #{fileCreateAt,jdbcType=TIMESTAMP}, #{fileModifiedAt,jdbcType=TIMESTAMP},
|
||||
#{fileSize,jdbcType=INTEGER}, #{hashMd5,jdbcType=VARCHAR}, #{hashSha1,jdbcType=VARCHAR},
|
||||
#{hashSha256,jdbcType=VARCHAR})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="plus.bookshelf.Dao.DO.FileDO">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Sat Mar 12 18:53:08 SGT 2022.
|
||||
-->
|
||||
insert into file_info
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="bookId != null">
|
||||
book_id,
|
||||
</if>
|
||||
<if test="fileDisplayName != null">
|
||||
file_display_name,
|
||||
</if>
|
||||
<if test="fileName != null">
|
||||
file_name,
|
||||
</if>
|
||||
<if test="fileFormat != null">
|
||||
file_format,
|
||||
</if>
|
||||
<if test="numberOfPages != null">
|
||||
number_of_pages,
|
||||
</if>
|
||||
<if test="watermark != null">
|
||||
watermark,
|
||||
</if>
|
||||
<if test="advertising != null">
|
||||
advertising,
|
||||
</if>
|
||||
<if test="bookOrigin != null">
|
||||
book_origin,
|
||||
</if>
|
||||
<if test="thumbnail != null">
|
||||
thumbnail,
|
||||
</if>
|
||||
<if test="fileCreateAt != null">
|
||||
file_create_at,
|
||||
</if>
|
||||
<if test="fileModifiedAt != null">
|
||||
file_modified_at,
|
||||
</if>
|
||||
<if test="fileSize != null">
|
||||
file_size,
|
||||
</if>
|
||||
<if test="hashMd5 != null">
|
||||
hash_md5,
|
||||
</if>
|
||||
<if test="hashSha1 != null">
|
||||
hash_sha1,
|
||||
</if>
|
||||
<if test="hashSha256 != null">
|
||||
hash_sha256,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
#{id,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="bookId != null">
|
||||
#{bookId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="fileDisplayName != null">
|
||||
#{fileDisplayName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fileName != null">
|
||||
#{fileName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fileFormat != null">
|
||||
#{fileFormat,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="numberOfPages != null">
|
||||
#{numberOfPages,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="watermark != null">
|
||||
#{watermark,jdbcType=BIT},
|
||||
</if>
|
||||
<if test="advertising != null">
|
||||
#{advertising,jdbcType=BIT},
|
||||
</if>
|
||||
<if test="bookOrigin != null">
|
||||
#{bookOrigin,jdbcType=TINYINT},
|
||||
</if>
|
||||
<if test="thumbnail != null">
|
||||
#{thumbnail,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fileCreateAt != null">
|
||||
#{fileCreateAt,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="fileModifiedAt != null">
|
||||
#{fileModifiedAt,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="fileSize != null">
|
||||
#{fileSize,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="hashMd5 != null">
|
||||
#{hashMd5,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="hashSha1 != null">
|
||||
#{hashSha1,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="hashSha256 != null">
|
||||
#{hashSha256,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="plus.bookshelf.Dao.DO.FileDO">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Sat Mar 12 18:53:08 SGT 2022.
|
||||
-->
|
||||
update file_info
|
||||
<set>
|
||||
<if test="fileDisplayName != null">
|
||||
file_display_name = #{fileDisplayName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fileName != null">
|
||||
file_name = #{fileName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fileFormat != null">
|
||||
file_format = #{fileFormat,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="numberOfPages != null">
|
||||
number_of_pages = #{numberOfPages,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="watermark != null">
|
||||
watermark = #{watermark,jdbcType=BIT},
|
||||
</if>
|
||||
<if test="advertising != null">
|
||||
advertising = #{advertising,jdbcType=BIT},
|
||||
</if>
|
||||
<if test="bookOrigin != null">
|
||||
book_origin = #{bookOrigin,jdbcType=TINYINT},
|
||||
</if>
|
||||
<if test="thumbnail != null">
|
||||
thumbnail = #{thumbnail,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fileCreateAt != null">
|
||||
file_create_at = #{fileCreateAt,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="fileModifiedAt != null">
|
||||
file_modified_at = #{fileModifiedAt,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="fileSize != null">
|
||||
file_size = #{fileSize,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="hashMd5 != null">
|
||||
hash_md5 = #{hashMd5,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="hashSha1 != null">
|
||||
hash_sha1 = #{hashSha1,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="hashSha256 != null">
|
||||
hash_sha256 = #{hashSha256,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
and book_id = #{bookId,jdbcType=INTEGER}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="plus.bookshelf.Dao.DO.FileDO">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Sat Mar 12 18:53:08 SGT 2022.
|
||||
-->
|
||||
update file_info
|
||||
set file_display_name = #{fileDisplayName,jdbcType=VARCHAR},
|
||||
file_name = #{fileName,jdbcType=VARCHAR},
|
||||
file_format = #{fileFormat,jdbcType=VARCHAR},
|
||||
number_of_pages = #{numberOfPages,jdbcType=INTEGER},
|
||||
watermark = #{watermark,jdbcType=BIT},
|
||||
advertising = #{advertising,jdbcType=BIT},
|
||||
book_origin = #{bookOrigin,jdbcType=TINYINT},
|
||||
thumbnail = #{thumbnail,jdbcType=VARCHAR},
|
||||
file_create_at = #{fileCreateAt,jdbcType=TIMESTAMP},
|
||||
file_modified_at = #{fileModifiedAt,jdbcType=TIMESTAMP},
|
||||
file_size = #{fileSize,jdbcType=INTEGER},
|
||||
hash_md5 = #{hashMd5,jdbcType=VARCHAR},
|
||||
hash_sha1 = #{hashSha1,jdbcType=VARCHAR},
|
||||
hash_sha256 = #{hashSha256,jdbcType=VARCHAR}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
and book_id = #{bookId,jdbcType=INTEGER}
|
||||
</update>
|
||||
</mapper>
|
157
bookshelfplus/src/main/resources/mapping/FileObjectDOMapper.xml
Normal file
157
bookshelfplus/src/main/resources/mapping/FileObjectDOMapper.xml
Normal file
@@ -0,0 +1,157 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="plus.bookshelf.Dao.Mapper.FileObjectDOMapper">
|
||||
<resultMap id="BaseResultMap" type="plus.bookshelf.Dao.DO.FileObjectDO">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Sat Mar 12 18:53:08 SGT 2022.
|
||||
-->
|
||||
<id column="id" jdbcType="INTEGER" property="id" />
|
||||
<result column="fileId" jdbcType="INTEGER" property="fileid" />
|
||||
<result column="storage_medium_type" jdbcType="TINYINT" property="storageMediumType" />
|
||||
<result column="file_path" jdbcType="VARCHAR" property="filePath" />
|
||||
<result column="file_pwd" jdbcType="VARCHAR" property="filePwd" />
|
||||
<result column="file_share_code" jdbcType="VARCHAR" property="fileShareCode" />
|
||||
<result column="additional_fields" jdbcType="CHAR" property="additionalFields" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Sat Mar 12 18:53:08 SGT 2022.
|
||||
-->
|
||||
id, fileId, storage_medium_type, file_path, file_pwd, file_share_code, additional_fields
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Sat Mar 12 18:53:08 SGT 2022.
|
||||
-->
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from file_object_info
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Sat Mar 12 18:53:08 SGT 2022.
|
||||
-->
|
||||
delete from file_object_info
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</delete>
|
||||
<insert id="insert" parameterType="plus.bookshelf.Dao.DO.FileObjectDO">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Sat Mar 12 18:53:08 SGT 2022.
|
||||
-->
|
||||
insert into file_object_info (id, fileId, storage_medium_type,
|
||||
file_path, file_pwd, file_share_code,
|
||||
additional_fields)
|
||||
values (#{id,jdbcType=INTEGER}, #{fileid,jdbcType=INTEGER}, #{storageMediumType,jdbcType=TINYINT},
|
||||
#{filePath,jdbcType=VARCHAR}, #{filePwd,jdbcType=VARCHAR}, #{fileShareCode,jdbcType=VARCHAR},
|
||||
#{additionalFields,jdbcType=CHAR})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="plus.bookshelf.Dao.DO.FileObjectDO">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Sat Mar 12 18:53:08 SGT 2022.
|
||||
-->
|
||||
insert into file_object_info
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="fileid != null">
|
||||
fileId,
|
||||
</if>
|
||||
<if test="storageMediumType != null">
|
||||
storage_medium_type,
|
||||
</if>
|
||||
<if test="filePath != null">
|
||||
file_path,
|
||||
</if>
|
||||
<if test="filePwd != null">
|
||||
file_pwd,
|
||||
</if>
|
||||
<if test="fileShareCode != null">
|
||||
file_share_code,
|
||||
</if>
|
||||
<if test="additionalFields != null">
|
||||
additional_fields,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
#{id,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="fileid != null">
|
||||
#{fileid,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="storageMediumType != null">
|
||||
#{storageMediumType,jdbcType=TINYINT},
|
||||
</if>
|
||||
<if test="filePath != null">
|
||||
#{filePath,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="filePwd != null">
|
||||
#{filePwd,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fileShareCode != null">
|
||||
#{fileShareCode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="additionalFields != null">
|
||||
#{additionalFields,jdbcType=CHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="plus.bookshelf.Dao.DO.FileObjectDO">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Sat Mar 12 18:53:08 SGT 2022.
|
||||
-->
|
||||
update file_object_info
|
||||
<set>
|
||||
<if test="fileid != null">
|
||||
fileId = #{fileid,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="storageMediumType != null">
|
||||
storage_medium_type = #{storageMediumType,jdbcType=TINYINT},
|
||||
</if>
|
||||
<if test="filePath != null">
|
||||
file_path = #{filePath,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="filePwd != null">
|
||||
file_pwd = #{filePwd,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fileShareCode != null">
|
||||
file_share_code = #{fileShareCode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="additionalFields != null">
|
||||
additional_fields = #{additionalFields,jdbcType=CHAR},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="plus.bookshelf.Dao.DO.FileObjectDO">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Sat Mar 12 18:53:08 SGT 2022.
|
||||
-->
|
||||
update file_object_info
|
||||
set fileId = #{fileid,jdbcType=INTEGER},
|
||||
storage_medium_type = #{storageMediumType,jdbcType=TINYINT},
|
||||
file_path = #{filePath,jdbcType=VARCHAR},
|
||||
file_pwd = #{filePwd,jdbcType=VARCHAR},
|
||||
file_share_code = #{fileShareCode,jdbcType=VARCHAR},
|
||||
additional_fields = #{additionalFields,jdbcType=CHAR}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
</mapper>
|
@@ -0,0 +1,98 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="plus.bookshelf.Dao.Mapper.PublishingHouseDOMapper">
|
||||
<resultMap id="BaseResultMap" type="plus.bookshelf.Dao.DO.PublishingHouseDO">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Sat Mar 12 18:53:08 SGT 2022.
|
||||
-->
|
||||
<id column="id" jdbcType="INTEGER" property="id" />
|
||||
<result column="name" jdbcType="VARCHAR" property="name" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Sat Mar 12 18:53:08 SGT 2022.
|
||||
-->
|
||||
id, name
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Sat Mar 12 18:53:08 SGT 2022.
|
||||
-->
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from book_publishing_house_info
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Sat Mar 12 18:53:08 SGT 2022.
|
||||
-->
|
||||
delete from book_publishing_house_info
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</delete>
|
||||
<insert id="insert" parameterType="plus.bookshelf.Dao.DO.PublishingHouseDO">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Sat Mar 12 18:53:08 SGT 2022.
|
||||
-->
|
||||
insert into book_publishing_house_info (id, name)
|
||||
values (#{id,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="plus.bookshelf.Dao.DO.PublishingHouseDO">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Sat Mar 12 18:53:08 SGT 2022.
|
||||
-->
|
||||
insert into book_publishing_house_info
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="name != null">
|
||||
name,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
#{id,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="name != null">
|
||||
#{name,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="plus.bookshelf.Dao.DO.PublishingHouseDO">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Sat Mar 12 18:53:08 SGT 2022.
|
||||
-->
|
||||
update book_publishing_house_info
|
||||
<set>
|
||||
<if test="name != null">
|
||||
name = #{name,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="plus.bookshelf.Dao.DO.PublishingHouseDO">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Sat Mar 12 18:53:08 SGT 2022.
|
||||
-->
|
||||
update book_publishing_house_info
|
||||
set name = #{name,jdbcType=VARCHAR}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
</mapper>
|
@@ -0,0 +1,98 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="plus.bookshelf.Dao.Mapper.ThumbnailDOMapper">
|
||||
<resultMap id="BaseResultMap" type="plus.bookshelf.Dao.DO.ThumbnailDO">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Sat Mar 12 18:53:08 SGT 2022.
|
||||
-->
|
||||
<id column="id" jdbcType="INTEGER" property="id" />
|
||||
<result column="path" jdbcType="VARCHAR" property="path" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Sat Mar 12 18:53:08 SGT 2022.
|
||||
-->
|
||||
id, path
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Sat Mar 12 18:53:08 SGT 2022.
|
||||
-->
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from book_thumbnail_info
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Sat Mar 12 18:53:08 SGT 2022.
|
||||
-->
|
||||
delete from book_thumbnail_info
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</delete>
|
||||
<insert id="insert" parameterType="plus.bookshelf.Dao.DO.ThumbnailDO">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Sat Mar 12 18:53:08 SGT 2022.
|
||||
-->
|
||||
insert into book_thumbnail_info (id, path)
|
||||
values (#{id,jdbcType=INTEGER}, #{path,jdbcType=VARCHAR})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="plus.bookshelf.Dao.DO.ThumbnailDO">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Sat Mar 12 18:53:08 SGT 2022.
|
||||
-->
|
||||
insert into book_thumbnail_info
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="path != null">
|
||||
path,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
#{id,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="path != null">
|
||||
#{path,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="plus.bookshelf.Dao.DO.ThumbnailDO">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Sat Mar 12 18:53:08 SGT 2022.
|
||||
-->
|
||||
update book_thumbnail_info
|
||||
<set>
|
||||
<if test="path != null">
|
||||
path = #{path,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="plus.bookshelf.Dao.DO.ThumbnailDO">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Sat Mar 12 18:53:08 SGT 2022.
|
||||
-->
|
||||
update book_thumbnail_info
|
||||
set path = #{path,jdbcType=VARCHAR}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
</mapper>
|
@@ -41,11 +41,26 @@
|
||||
<!--selectByExampleQueryId="false"-->
|
||||
|
||||
<!-- 生成对应表及其类名 -->
|
||||
<table tableName="book_author_info" domainObjectName="AuthorDO" enableCountByExample="false"
|
||||
enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false"
|
||||
selectByExampleQueryId="false"></table>
|
||||
<table tableName="book_publishing_house_info" domainObjectName="PublishingHouseDO" enableCountByExample="false"
|
||||
enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false"
|
||||
selectByExampleQueryId="false"></table>
|
||||
<!--<table tableName="book_author_info" domainObjectName="AuthorDO" enableCountByExample="false"-->
|
||||
<!-- enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false"-->
|
||||
<!-- selectByExampleQueryId="false"></table>-->
|
||||
<!--<table tableName="book_info" domainObjectName="BookDO" enableCountByExample="false"-->
|
||||
<!-- enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false"-->
|
||||
<!-- selectByExampleQueryId="false"></table>-->
|
||||
<!--<table tableName="book_publishing_house_info" domainObjectName="PublishingHouseDO" enableCountByExample="false"-->
|
||||
<!-- enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false"-->
|
||||
<!-- selectByExampleQueryId="false"></table>-->
|
||||
<!--<table tableName="book_thumbnail_info" domainObjectName="ThumbnailDO" enableCountByExample="false"-->
|
||||
<!-- enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false"-->
|
||||
<!-- selectByExampleQueryId="false"></table>-->
|
||||
<!--<table tableName="category_info" domainObjectName="CategoryDO" enableCountByExample="false"-->
|
||||
<!-- enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false"-->
|
||||
<!-- selectByExampleQueryId="false"></table>-->
|
||||
<!--<table tableName="file_info" domainObjectName="FileDO" enableCountByExample="false"-->
|
||||
<!-- enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false"-->
|
||||
<!-- selectByExampleQueryId="false"></table>-->
|
||||
<!--<table tableName="file_object_info" domainObjectName="FileObjectDO" enableCountByExample="false"-->
|
||||
<!-- enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false"-->
|
||||
<!-- selectByExampleQueryId="false"></table>-->
|
||||
</context>
|
||||
</generatorConfiguration>
|
Reference in New Issue
Block a user