mirror of
https://gitee.com/bookshelfplus/bookshelfplus
synced 2025-09-14 20:41:38 +08:00
删除独立的作者、出版社、缩略图表;修正部分字段;实现部分Service以及Controller;项目框架基本建立
This commit is contained in:
@@ -1,23 +1,24 @@
|
||||
package plus.bookshelf;
|
||||
|
||||
import org.mybatis.spring.annotation.MapperScan;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* Hello world!
|
||||
*
|
||||
*/
|
||||
@SpringBootApplication(scanBasePackages = { "plus.bookshelf" })
|
||||
@SpringBootApplication(scanBasePackages = {"plus.bookshelf"})
|
||||
@RestController
|
||||
@MapperScan("plus.bookshelf.mapper")
|
||||
public class App
|
||||
{
|
||||
public static void main( String[] args )
|
||||
{
|
||||
System.out.println( "Hello World!" );
|
||||
@MapperScan("plus.bookshelf.Dao.Mapper")
|
||||
public class App {
|
||||
public static void main(String[] args) {
|
||||
System.out.println("Dreams remain daydreams until they are put into action. \n" +
|
||||
"Now, let's start.");
|
||||
|
||||
// 启动SpringBoot项目
|
||||
SpringApplication.run(App.class, args);
|
||||
}
|
||||
|
||||
@RequestMapping("/")
|
||||
|
@@ -0,0 +1,5 @@
|
||||
package plus.bookshelf.Controller.Controller;
|
||||
|
||||
public class BaseController {
|
||||
public static final String CONTENT_TYPE_FORMED = "application/x-www-form-urlencoded";
|
||||
}
|
@@ -0,0 +1,38 @@
|
||||
package plus.bookshelf.Controller.Controller;
|
||||
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMethod;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
import plus.bookshelf.Controller.VO.BookVO;
|
||||
import plus.bookshelf.Service.Model.BookModel;
|
||||
import plus.bookshelf.Service.Service.BookService;
|
||||
|
||||
@Controller("book")
|
||||
@RequestMapping("/apiv1/book")
|
||||
public class BookController extends BaseController {
|
||||
|
||||
@Autowired
|
||||
BookService bookService;
|
||||
|
||||
@RequestMapping(value = "get", method = {RequestMethod.GET})
|
||||
@ResponseBody
|
||||
public BookVO get(@RequestParam(value = "id") Integer id) {
|
||||
if (id == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
BookModel bookModel = bookService.getBookById(id);
|
||||
BookVO bookVO = convertFromModel(bookModel);
|
||||
return bookVO;
|
||||
}
|
||||
|
||||
private BookVO convertFromModel(BookModel bookModel) {
|
||||
BookVO bookVO = new BookVO();
|
||||
BeanUtils.copyProperties(bookModel, bookVO);
|
||||
return bookVO;
|
||||
}
|
||||
}
|
@@ -0,0 +1,36 @@
|
||||
package plus.bookshelf.Controller.VO;
|
||||
|
||||
import lombok.Data;
|
||||
import plus.bookshelf.Common.Enum.Language;
|
||||
import plus.bookshelf.Service.Model.CategoryModel;
|
||||
|
||||
@Data
|
||||
public class BookVO {
|
||||
|
||||
// 书籍id
|
||||
Integer id;
|
||||
|
||||
// 书名
|
||||
String bookName;
|
||||
|
||||
// 书籍简介
|
||||
String description;
|
||||
|
||||
// 作者姓名
|
||||
String author;
|
||||
|
||||
//书籍所属分类
|
||||
CategoryModel category;
|
||||
|
||||
// 出版社
|
||||
String publishingHouse;
|
||||
|
||||
// 语言
|
||||
Language language;
|
||||
|
||||
// 来源(版权)信息
|
||||
String copyright;
|
||||
|
||||
// 缩略图
|
||||
String thumbnail;
|
||||
}
|
@@ -1,69 +0,0 @@
|
||||
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();
|
||||
}
|
||||
}
|
@@ -1,30 +1,48 @@
|
||||
package plus.bookshelf.Dao.DO;
|
||||
|
||||
public class BookDO extends BookDOKey {
|
||||
public class BookDO {
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column book_info.id
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
private Integer id;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column book_info.book_name
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
private String bookName;
|
||||
|
||||
/**
|
||||
*
|
||||
* 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
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
private Integer categoryId;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column book_info.publishing_house_id
|
||||
* This field corresponds to the database column book_info.publishing_house
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
private Integer publishingHouseId;
|
||||
private String publishingHouse;
|
||||
|
||||
/**
|
||||
*
|
||||
* 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
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
private String language;
|
||||
|
||||
@@ -33,7 +51,7 @@ public class BookDO extends BookDOKey {
|
||||
* 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
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
private String copyright;
|
||||
|
||||
@@ -42,26 +60,92 @@ public class BookDO extends BookDOKey {
|
||||
* 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
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
private Boolean isDelete;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column book_info.thumbnail
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
private String thumbnail;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column book_info.author
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
private String author;
|
||||
|
||||
/**
|
||||
*
|
||||
* 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
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
private String description;
|
||||
|
||||
/**
|
||||
* 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 21:38:13 SGT 2022
|
||||
*/
|
||||
public Integer 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 21:38:13 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_info.book_name
|
||||
*
|
||||
* @return the value of book_info.book_name
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 21:38:13 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 21:38:13 SGT 2022
|
||||
*/
|
||||
public void setBookName(String bookName) {
|
||||
this.bookName = bookName == null ? null : bookName.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* 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
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
public Integer getCategoryId() {
|
||||
return categoryId;
|
||||
@@ -73,7 +157,7 @@ public class BookDO extends BookDOKey {
|
||||
*
|
||||
* @param categoryId the value for book_info.category_id
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
public void setCategoryId(Integer categoryId) {
|
||||
this.categoryId = categoryId;
|
||||
@@ -81,26 +165,26 @@ public class BookDO extends BookDOKey {
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column book_info.publishing_house_id
|
||||
* This method returns the value of the database column book_info.publishing_house
|
||||
*
|
||||
* @return the value of book_info.publishing_house_id
|
||||
* @return the value of book_info.publishing_house
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
public Integer getPublishingHouseId() {
|
||||
return publishingHouseId;
|
||||
public String getPublishingHouse() {
|
||||
return publishingHouse;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column book_info.publishing_house_id
|
||||
* This method sets the value of the database column book_info.publishing_house
|
||||
*
|
||||
* @param publishingHouseId the value for book_info.publishing_house_id
|
||||
* @param publishingHouse the value for book_info.publishing_house
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
public void setPublishingHouseId(Integer publishingHouseId) {
|
||||
this.publishingHouseId = publishingHouseId;
|
||||
public void setPublishingHouse(String publishingHouse) {
|
||||
this.publishingHouse = publishingHouse == null ? null : publishingHouse.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -109,7 +193,7 @@ public class BookDO extends BookDOKey {
|
||||
*
|
||||
* @return the value of book_info.language
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
public String getLanguage() {
|
||||
return language;
|
||||
@@ -121,7 +205,7 @@ public class BookDO extends BookDOKey {
|
||||
*
|
||||
* @param language the value for book_info.language
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
public void setLanguage(String language) {
|
||||
this.language = language == null ? null : language.trim();
|
||||
@@ -133,7 +217,7 @@ public class BookDO extends BookDOKey {
|
||||
*
|
||||
* @return the value of book_info.copyright
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
public String getCopyright() {
|
||||
return copyright;
|
||||
@@ -145,7 +229,7 @@ public class BookDO extends BookDOKey {
|
||||
*
|
||||
* @param copyright the value for book_info.copyright
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
public void setCopyright(String copyright) {
|
||||
this.copyright = copyright == null ? null : copyright.trim();
|
||||
@@ -157,7 +241,7 @@ public class BookDO extends BookDOKey {
|
||||
*
|
||||
* @return the value of book_info.is_delete
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
public Boolean getIsDelete() {
|
||||
return isDelete;
|
||||
@@ -169,19 +253,67 @@ public class BookDO extends BookDOKey {
|
||||
*
|
||||
* @param isDelete the value for book_info.is_delete
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
* @mbg.generated Sat Mar 12 21:38:13 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.thumbnail
|
||||
*
|
||||
* @return the value of book_info.thumbnail
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
public String getThumbnail() {
|
||||
return thumbnail;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column book_info.thumbnail
|
||||
*
|
||||
* @param thumbnail the value for book_info.thumbnail
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 21:38:13 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 book_info.author
|
||||
*
|
||||
* @return the value of book_info.author
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
public String getAuthor() {
|
||||
return author;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column book_info.author
|
||||
*
|
||||
* @param author the value for book_info.author
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
public void setAuthor(String author) {
|
||||
this.author = author == null ? null : author.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* 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
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
public String getDescription() {
|
||||
return description;
|
||||
@@ -193,7 +325,7 @@ public class BookDO extends BookDOKey {
|
||||
*
|
||||
* @param description the value for book_info.description
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
public void setDescription(String description) {
|
||||
this.description = description == null ? null : description.trim();
|
||||
|
@@ -1,69 +0,0 @@
|
||||
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();
|
||||
}
|
||||
}
|
@@ -6,7 +6,7 @@ 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
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
private Integer id;
|
||||
|
||||
@@ -15,25 +15,25 @@ public class CategoryDO {
|
||||
* 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
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column category_info.isShow
|
||||
* This field corresponds to the database column category_info.is_show
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
private Boolean isshow;
|
||||
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
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
private Integer order;
|
||||
|
||||
@@ -42,25 +42,25 @@ public class CategoryDO {
|
||||
* 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
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
private Integer level;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column category_info.parentId
|
||||
* This field corresponds to the database column category_info.parent_id
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
private Integer parentid;
|
||||
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
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
private String description;
|
||||
|
||||
@@ -70,7 +70,7 @@ public class CategoryDO {
|
||||
*
|
||||
* @return the value of category_info.id
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
public Integer getId() {
|
||||
return id;
|
||||
@@ -82,7 +82,7 @@ public class CategoryDO {
|
||||
*
|
||||
* @param id the value for category_info.id
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
@@ -94,7 +94,7 @@ public class CategoryDO {
|
||||
*
|
||||
* @return the value of category_info.name
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
public String getName() {
|
||||
return name;
|
||||
@@ -106,7 +106,7 @@ public class CategoryDO {
|
||||
*
|
||||
* @param name the value for category_info.name
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
public void setName(String name) {
|
||||
this.name = name == null ? null : name.trim();
|
||||
@@ -114,26 +114,26 @@ public class CategoryDO {
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column category_info.isShow
|
||||
* This method returns the value of the database column category_info.is_show
|
||||
*
|
||||
* @return the value of category_info.isShow
|
||||
* @return the value of category_info.is_show
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
public Boolean getIsshow() {
|
||||
return isshow;
|
||||
public Boolean getIsShow() {
|
||||
return isShow;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column category_info.isShow
|
||||
* This method sets the value of the database column category_info.is_show
|
||||
*
|
||||
* @param isshow the value for category_info.isShow
|
||||
* @param isShow the value for category_info.is_show
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
public void setIsshow(Boolean isshow) {
|
||||
this.isshow = isshow;
|
||||
public void setIsShow(Boolean isShow) {
|
||||
this.isShow = isShow;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -142,7 +142,7 @@ public class CategoryDO {
|
||||
*
|
||||
* @return the value of category_info.order
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
public Integer getOrder() {
|
||||
return order;
|
||||
@@ -154,7 +154,7 @@ public class CategoryDO {
|
||||
*
|
||||
* @param order the value for category_info.order
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
public void setOrder(Integer order) {
|
||||
this.order = order;
|
||||
@@ -166,7 +166,7 @@ public class CategoryDO {
|
||||
*
|
||||
* @return the value of category_info.level
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
public Integer getLevel() {
|
||||
return level;
|
||||
@@ -178,7 +178,7 @@ public class CategoryDO {
|
||||
*
|
||||
* @param level the value for category_info.level
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
public void setLevel(Integer level) {
|
||||
this.level = level;
|
||||
@@ -186,26 +186,26 @@ public class CategoryDO {
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column category_info.parentId
|
||||
* This method returns the value of the database column category_info.parent_id
|
||||
*
|
||||
* @return the value of category_info.parentId
|
||||
* @return the value of category_info.parent_id
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
public Integer getParentid() {
|
||||
return parentid;
|
||||
public Integer getParentId() {
|
||||
return parentId;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column category_info.parentId
|
||||
* This method sets the value of the database column category_info.parent_id
|
||||
*
|
||||
* @param parentid the value for category_info.parentId
|
||||
* @param parentId the value for category_info.parent_id
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
public void setParentid(Integer parentid) {
|
||||
this.parentid = parentid;
|
||||
public void setParentId(Integer parentId) {
|
||||
this.parentId = parentId;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -214,7 +214,7 @@ public class CategoryDO {
|
||||
*
|
||||
* @return the value of category_info.description
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
public String getDescription() {
|
||||
return description;
|
||||
@@ -226,7 +226,7 @@ public class CategoryDO {
|
||||
*
|
||||
* @param description the value for category_info.description
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
public void setDescription(String description) {
|
||||
this.description = description == null ? null : description.trim();
|
||||
|
@@ -2,13 +2,31 @@ package plus.bookshelf.Dao.DO;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
public class FileDO extends FileDOKey {
|
||||
public class FileDO {
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column file_info.id
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 21:38:13 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 21:38:13 SGT 2022
|
||||
*/
|
||||
private Integer bookId;
|
||||
|
||||
/**
|
||||
*
|
||||
* 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
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
private String fileDisplayName;
|
||||
|
||||
@@ -17,7 +35,7 @@ public class FileDO extends FileDOKey {
|
||||
* 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
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
private String fileName;
|
||||
|
||||
@@ -26,7 +44,7 @@ public class FileDO extends FileDOKey {
|
||||
* 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
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
private String fileFormat;
|
||||
|
||||
@@ -35,7 +53,7 @@ public class FileDO extends FileDOKey {
|
||||
* 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
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
private Integer numberOfPages;
|
||||
|
||||
@@ -44,7 +62,7 @@ public class FileDO extends FileDOKey {
|
||||
* 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
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
private Boolean watermark;
|
||||
|
||||
@@ -53,7 +71,7 @@ public class FileDO extends FileDOKey {
|
||||
* 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
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
private Boolean advertising;
|
||||
|
||||
@@ -62,7 +80,7 @@ public class FileDO extends FileDOKey {
|
||||
* 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
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
private Byte bookOrigin;
|
||||
|
||||
@@ -71,7 +89,7 @@ public class FileDO extends FileDOKey {
|
||||
* 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
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
private String thumbnail;
|
||||
|
||||
@@ -80,7 +98,7 @@ public class FileDO extends FileDOKey {
|
||||
* 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
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
private Date fileCreateAt;
|
||||
|
||||
@@ -89,7 +107,7 @@ public class FileDO extends FileDOKey {
|
||||
* 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
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
private Date fileModifiedAt;
|
||||
|
||||
@@ -98,7 +116,7 @@ public class FileDO extends FileDOKey {
|
||||
* 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
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
private Integer fileSize;
|
||||
|
||||
@@ -107,7 +125,7 @@ public class FileDO extends FileDOKey {
|
||||
* 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
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
private String hashMd5;
|
||||
|
||||
@@ -116,7 +134,7 @@ public class FileDO extends FileDOKey {
|
||||
* 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
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
private String hashSha1;
|
||||
|
||||
@@ -125,17 +143,65 @@ public class FileDO extends FileDOKey {
|
||||
* 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
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
private String hashSha256;
|
||||
|
||||
/**
|
||||
* 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 21:38:13 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 21:38:13 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 21:38:13 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 21:38:13 SGT 2022
|
||||
*/
|
||||
public void setBookId(Integer bookId) {
|
||||
this.bookId = bookId;
|
||||
}
|
||||
|
||||
/**
|
||||
* 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
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
public String getFileDisplayName() {
|
||||
return fileDisplayName;
|
||||
@@ -147,7 +213,7 @@ public class FileDO extends FileDOKey {
|
||||
*
|
||||
* @param fileDisplayName the value for file_info.file_display_name
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
public void setFileDisplayName(String fileDisplayName) {
|
||||
this.fileDisplayName = fileDisplayName == null ? null : fileDisplayName.trim();
|
||||
@@ -159,7 +225,7 @@ public class FileDO extends FileDOKey {
|
||||
*
|
||||
* @return the value of file_info.file_name
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
public String getFileName() {
|
||||
return fileName;
|
||||
@@ -171,7 +237,7 @@ public class FileDO extends FileDOKey {
|
||||
*
|
||||
* @param fileName the value for file_info.file_name
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
public void setFileName(String fileName) {
|
||||
this.fileName = fileName == null ? null : fileName.trim();
|
||||
@@ -183,7 +249,7 @@ public class FileDO extends FileDOKey {
|
||||
*
|
||||
* @return the value of file_info.file_format
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
public String getFileFormat() {
|
||||
return fileFormat;
|
||||
@@ -195,7 +261,7 @@ public class FileDO extends FileDOKey {
|
||||
*
|
||||
* @param fileFormat the value for file_info.file_format
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
public void setFileFormat(String fileFormat) {
|
||||
this.fileFormat = fileFormat == null ? null : fileFormat.trim();
|
||||
@@ -207,7 +273,7 @@ public class FileDO extends FileDOKey {
|
||||
*
|
||||
* @return the value of file_info.number_of_pages
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
public Integer getNumberOfPages() {
|
||||
return numberOfPages;
|
||||
@@ -219,7 +285,7 @@ public class FileDO extends FileDOKey {
|
||||
*
|
||||
* @param numberOfPages the value for file_info.number_of_pages
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
public void setNumberOfPages(Integer numberOfPages) {
|
||||
this.numberOfPages = numberOfPages;
|
||||
@@ -231,7 +297,7 @@ public class FileDO extends FileDOKey {
|
||||
*
|
||||
* @return the value of file_info.watermark
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
public Boolean getWatermark() {
|
||||
return watermark;
|
||||
@@ -243,7 +309,7 @@ public class FileDO extends FileDOKey {
|
||||
*
|
||||
* @param watermark the value for file_info.watermark
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
public void setWatermark(Boolean watermark) {
|
||||
this.watermark = watermark;
|
||||
@@ -255,7 +321,7 @@ public class FileDO extends FileDOKey {
|
||||
*
|
||||
* @return the value of file_info.advertising
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
public Boolean getAdvertising() {
|
||||
return advertising;
|
||||
@@ -267,7 +333,7 @@ public class FileDO extends FileDOKey {
|
||||
*
|
||||
* @param advertising the value for file_info.advertising
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
public void setAdvertising(Boolean advertising) {
|
||||
this.advertising = advertising;
|
||||
@@ -279,7 +345,7 @@ public class FileDO extends FileDOKey {
|
||||
*
|
||||
* @return the value of file_info.book_origin
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
public Byte getBookOrigin() {
|
||||
return bookOrigin;
|
||||
@@ -291,7 +357,7 @@ public class FileDO extends FileDOKey {
|
||||
*
|
||||
* @param bookOrigin the value for file_info.book_origin
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
public void setBookOrigin(Byte bookOrigin) {
|
||||
this.bookOrigin = bookOrigin;
|
||||
@@ -303,7 +369,7 @@ public class FileDO extends FileDOKey {
|
||||
*
|
||||
* @return the value of file_info.thumbnail
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
public String getThumbnail() {
|
||||
return thumbnail;
|
||||
@@ -315,7 +381,7 @@ public class FileDO extends FileDOKey {
|
||||
*
|
||||
* @param thumbnail the value for file_info.thumbnail
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
public void setThumbnail(String thumbnail) {
|
||||
this.thumbnail = thumbnail == null ? null : thumbnail.trim();
|
||||
@@ -327,7 +393,7 @@ public class FileDO extends FileDOKey {
|
||||
*
|
||||
* @return the value of file_info.file_create_at
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
public Date getFileCreateAt() {
|
||||
return fileCreateAt;
|
||||
@@ -339,7 +405,7 @@ public class FileDO extends FileDOKey {
|
||||
*
|
||||
* @param fileCreateAt the value for file_info.file_create_at
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
public void setFileCreateAt(Date fileCreateAt) {
|
||||
this.fileCreateAt = fileCreateAt;
|
||||
@@ -351,7 +417,7 @@ public class FileDO extends FileDOKey {
|
||||
*
|
||||
* @return the value of file_info.file_modified_at
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
public Date getFileModifiedAt() {
|
||||
return fileModifiedAt;
|
||||
@@ -363,7 +429,7 @@ public class FileDO extends FileDOKey {
|
||||
*
|
||||
* @param fileModifiedAt the value for file_info.file_modified_at
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
public void setFileModifiedAt(Date fileModifiedAt) {
|
||||
this.fileModifiedAt = fileModifiedAt;
|
||||
@@ -375,7 +441,7 @@ public class FileDO extends FileDOKey {
|
||||
*
|
||||
* @return the value of file_info.file_size
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
public Integer getFileSize() {
|
||||
return fileSize;
|
||||
@@ -387,7 +453,7 @@ public class FileDO extends FileDOKey {
|
||||
*
|
||||
* @param fileSize the value for file_info.file_size
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
public void setFileSize(Integer fileSize) {
|
||||
this.fileSize = fileSize;
|
||||
@@ -399,7 +465,7 @@ public class FileDO extends FileDOKey {
|
||||
*
|
||||
* @return the value of file_info.hash_md5
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
public String getHashMd5() {
|
||||
return hashMd5;
|
||||
@@ -411,7 +477,7 @@ public class FileDO extends FileDOKey {
|
||||
*
|
||||
* @param hashMd5 the value for file_info.hash_md5
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
public void setHashMd5(String hashMd5) {
|
||||
this.hashMd5 = hashMd5 == null ? null : hashMd5.trim();
|
||||
@@ -423,7 +489,7 @@ public class FileDO extends FileDOKey {
|
||||
*
|
||||
* @return the value of file_info.hash_sha1
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
public String getHashSha1() {
|
||||
return hashSha1;
|
||||
@@ -435,7 +501,7 @@ public class FileDO extends FileDOKey {
|
||||
*
|
||||
* @param hashSha1 the value for file_info.hash_sha1
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
public void setHashSha1(String hashSha1) {
|
||||
this.hashSha1 = hashSha1 == null ? null : hashSha1.trim();
|
||||
@@ -447,7 +513,7 @@ public class FileDO extends FileDOKey {
|
||||
*
|
||||
* @return the value of file_info.hash_sha256
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
public String getHashSha256() {
|
||||
return hashSha256;
|
||||
@@ -459,7 +525,7 @@ public class FileDO extends FileDOKey {
|
||||
*
|
||||
* @param hashSha256 the value for file_info.hash_sha256
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
public void setHashSha256(String hashSha256) {
|
||||
this.hashSha256 = hashSha256 == null ? null : hashSha256.trim();
|
||||
|
@@ -1,69 +0,0 @@
|
||||
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;
|
||||
}
|
||||
}
|
@@ -6,7 +6,7 @@ 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
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
private Integer id;
|
||||
|
||||
@@ -15,7 +15,7 @@ public class FileObjectDO {
|
||||
* 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
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
private Integer fileid;
|
||||
|
||||
@@ -24,7 +24,7 @@ public class FileObjectDO {
|
||||
* 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
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
private Byte storageMediumType;
|
||||
|
||||
@@ -33,7 +33,7 @@ public class FileObjectDO {
|
||||
* 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
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
private String filePath;
|
||||
|
||||
@@ -42,7 +42,7 @@ public class FileObjectDO {
|
||||
* 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
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
private String filePwd;
|
||||
|
||||
@@ -51,7 +51,7 @@ public class FileObjectDO {
|
||||
* 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
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
private String fileShareCode;
|
||||
|
||||
@@ -60,7 +60,7 @@ public class FileObjectDO {
|
||||
* 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
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
private String additionalFields;
|
||||
|
||||
@@ -70,7 +70,7 @@ public class FileObjectDO {
|
||||
*
|
||||
* @return the value of file_object_info.id
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
public Integer getId() {
|
||||
return id;
|
||||
@@ -82,7 +82,7 @@ public class FileObjectDO {
|
||||
*
|
||||
* @param id the value for file_object_info.id
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
@@ -94,7 +94,7 @@ public class FileObjectDO {
|
||||
*
|
||||
* @return the value of file_object_info.fileId
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
public Integer getFileid() {
|
||||
return fileid;
|
||||
@@ -106,7 +106,7 @@ public class FileObjectDO {
|
||||
*
|
||||
* @param fileid the value for file_object_info.fileId
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
public void setFileid(Integer fileid) {
|
||||
this.fileid = fileid;
|
||||
@@ -118,7 +118,7 @@ public class FileObjectDO {
|
||||
*
|
||||
* @return the value of file_object_info.storage_medium_type
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
public Byte getStorageMediumType() {
|
||||
return storageMediumType;
|
||||
@@ -130,7 +130,7 @@ public class FileObjectDO {
|
||||
*
|
||||
* @param storageMediumType the value for file_object_info.storage_medium_type
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
public void setStorageMediumType(Byte storageMediumType) {
|
||||
this.storageMediumType = storageMediumType;
|
||||
@@ -142,7 +142,7 @@ public class FileObjectDO {
|
||||
*
|
||||
* @return the value of file_object_info.file_path
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
public String getFilePath() {
|
||||
return filePath;
|
||||
@@ -154,7 +154,7 @@ public class FileObjectDO {
|
||||
*
|
||||
* @param filePath the value for file_object_info.file_path
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
public void setFilePath(String filePath) {
|
||||
this.filePath = filePath == null ? null : filePath.trim();
|
||||
@@ -166,7 +166,7 @@ public class FileObjectDO {
|
||||
*
|
||||
* @return the value of file_object_info.file_pwd
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
public String getFilePwd() {
|
||||
return filePwd;
|
||||
@@ -178,7 +178,7 @@ public class FileObjectDO {
|
||||
*
|
||||
* @param filePwd the value for file_object_info.file_pwd
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
public void setFilePwd(String filePwd) {
|
||||
this.filePwd = filePwd == null ? null : filePwd.trim();
|
||||
@@ -190,7 +190,7 @@ public class FileObjectDO {
|
||||
*
|
||||
* @return the value of file_object_info.file_share_code
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
public String getFileShareCode() {
|
||||
return fileShareCode;
|
||||
@@ -202,7 +202,7 @@ public class FileObjectDO {
|
||||
*
|
||||
* @param fileShareCode the value for file_object_info.file_share_code
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
public void setFileShareCode(String fileShareCode) {
|
||||
this.fileShareCode = fileShareCode == null ? null : fileShareCode.trim();
|
||||
@@ -214,7 +214,7 @@ public class FileObjectDO {
|
||||
*
|
||||
* @return the value of file_object_info.additional_fields
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
public String getAdditionalFields() {
|
||||
return additionalFields;
|
||||
@@ -226,7 +226,7 @@ public class FileObjectDO {
|
||||
*
|
||||
* @param additionalFields the value for file_object_info.additional_fields
|
||||
*
|
||||
* @mbg.generated Sat Mar 12 18:53:08 SGT 2022
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
public void setAdditionalFields(String additionalFields) {
|
||||
this.additionalFields = additionalFields == null ? null : additionalFields.trim();
|
||||
|
@@ -1,69 +0,0 @@
|
||||
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();
|
||||
}
|
||||
}
|
@@ -1,69 +0,0 @@
|
||||
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();
|
||||
}
|
||||
}
|
@@ -1,53 +0,0 @@
|
||||
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);
|
||||
}
|
@@ -1,22 +1,21 @@
|
||||
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
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
int deleteByPrimaryKey(BookDOKey key);
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
/**
|
||||
* 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
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
int insert(BookDO record);
|
||||
|
||||
@@ -24,7 +23,7 @@ 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
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
int insertSelective(BookDO record);
|
||||
|
||||
@@ -32,15 +31,15 @@ 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
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
BookDO selectByPrimaryKey(BookDOKey key);
|
||||
BookDO selectByPrimaryKey(Integer id);
|
||||
|
||||
/**
|
||||
* 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
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
int updateByPrimaryKeySelective(BookDO record);
|
||||
|
||||
@@ -48,7 +47,7 @@ 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
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
int updateByPrimaryKeyWithBLOBs(BookDO record);
|
||||
|
||||
@@ -56,7 +55,7 @@ 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
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
int updateByPrimaryKey(BookDO record);
|
||||
}
|
@@ -7,7 +7,7 @@ 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
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
@@ -15,7 +15,7 @@ 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
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
int insert(CategoryDO record);
|
||||
|
||||
@@ -23,7 +23,7 @@ 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
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
int insertSelective(CategoryDO record);
|
||||
|
||||
@@ -31,7 +31,7 @@ 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
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
CategoryDO selectByPrimaryKey(Integer id);
|
||||
|
||||
@@ -39,7 +39,7 @@ 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
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
int updateByPrimaryKeySelective(CategoryDO record);
|
||||
|
||||
@@ -47,7 +47,7 @@ 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
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
int updateByPrimaryKeyWithBLOBs(CategoryDO record);
|
||||
|
||||
@@ -55,7 +55,9 @@ 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
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
int updateByPrimaryKey(CategoryDO record);
|
||||
|
||||
CategoryDO[] selectChildrenByCategoryId(Integer id);
|
||||
}
|
@@ -1,22 +1,21 @@
|
||||
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
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
int deleteByPrimaryKey(FileDOKey key);
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
/**
|
||||
* 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
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
int insert(FileDO record);
|
||||
|
||||
@@ -24,7 +23,7 @@ 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
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
int insertSelective(FileDO record);
|
||||
|
||||
@@ -32,15 +31,15 @@ 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
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
FileDO selectByPrimaryKey(FileDOKey key);
|
||||
FileDO selectByPrimaryKey(Integer id);
|
||||
|
||||
/**
|
||||
* 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
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
int updateByPrimaryKeySelective(FileDO record);
|
||||
|
||||
@@ -48,7 +47,7 @@ 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
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
int updateByPrimaryKey(FileDO record);
|
||||
}
|
@@ -7,7 +7,7 @@ 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
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
@@ -15,7 +15,7 @@ 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
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
int insert(FileObjectDO record);
|
||||
|
||||
@@ -23,7 +23,7 @@ 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
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
int insertSelective(FileObjectDO record);
|
||||
|
||||
@@ -31,7 +31,7 @@ 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
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
FileObjectDO selectByPrimaryKey(Integer id);
|
||||
|
||||
@@ -39,7 +39,7 @@ 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
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
int updateByPrimaryKeySelective(FileObjectDO record);
|
||||
|
||||
@@ -47,7 +47,7 @@ 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
|
||||
* @mbg.generated Sat Mar 12 21:38:13 SGT 2022
|
||||
*/
|
||||
int updateByPrimaryKey(FileObjectDO record);
|
||||
}
|
@@ -1,53 +0,0 @@
|
||||
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);
|
||||
}
|
@@ -1,53 +0,0 @@
|
||||
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);
|
||||
}
|
@@ -0,0 +1,50 @@
|
||||
package plus.bookshelf.Service.Impl;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
import plus.bookshelf.Dao.DO.BookDO;
|
||||
import plus.bookshelf.Dao.Mapper.BookDOMapper;
|
||||
import plus.bookshelf.Service.Model.BookModel;
|
||||
import plus.bookshelf.Service.Model.CategoryModel;
|
||||
import plus.bookshelf.Service.Service.BookService;
|
||||
import plus.bookshelf.Service.Service.CategoryService;
|
||||
|
||||
@Service
|
||||
public class BookServiceImpl implements BookService {
|
||||
|
||||
@Autowired
|
||||
private BookDOMapper bookDOMapper;
|
||||
|
||||
@Autowired
|
||||
private CategoryService categoryService;
|
||||
|
||||
@Override
|
||||
@Transactional
|
||||
public BookModel getBookById(Integer id) {
|
||||
// 查询得到bookDO
|
||||
BookDO bookDO = bookDOMapper.selectByPrimaryKey(id);
|
||||
// 查询得到categoryModel
|
||||
CategoryModel categoryModel = categoryService.getCategoryById(bookDO.getCategoryId());
|
||||
|
||||
BookModel bookModel = convertFromDataObjecct(bookDO, categoryModel);
|
||||
return bookModel;
|
||||
}
|
||||
|
||||
private BookModel convertFromDataObjecct(BookDO bookDO, CategoryModel categoryModel) {
|
||||
BookModel bookModel = new BookModel();
|
||||
if (bookDO == null) {
|
||||
return null;
|
||||
}
|
||||
bookModel.setId(bookDO.getId());
|
||||
bookModel.setBookName(bookDO.getBookName());
|
||||
bookModel.setDescription(bookDO.getDescription());
|
||||
bookModel.setAuthor(bookDO.getAuthor());
|
||||
bookModel.setCategory(categoryModel);
|
||||
bookModel.setPublishingHouse(bookDO.getPublishingHouse());
|
||||
bookModel.setCopyright(bookDO.getCopyright());
|
||||
bookModel.setIsDelete(bookDO.getIsDelete());
|
||||
bookModel.setThumbnail(bookDO.getThumbnail());
|
||||
return bookModel;
|
||||
}
|
||||
}
|
@@ -0,0 +1,52 @@
|
||||
package plus.bookshelf.Service.Impl;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import plus.bookshelf.Dao.DO.CategoryDO;
|
||||
import plus.bookshelf.Dao.Mapper.CategoryDOMapper;
|
||||
import plus.bookshelf.Service.Model.CategoryModel;
|
||||
import plus.bookshelf.Service.Service.CategoryService;
|
||||
|
||||
@Service
|
||||
public class CategoryServiceImpl implements CategoryService {
|
||||
|
||||
@Autowired
|
||||
private CategoryDOMapper categoryDOMapper;
|
||||
|
||||
@Override
|
||||
public CategoryModel getCategoryById(Integer id) {
|
||||
CategoryDO categoryDO = categoryDOMapper.selectByPrimaryKey(id);
|
||||
CategoryModel categoryModel = convertFromDataObject(categoryDO);
|
||||
|
||||
// // 获得儿子
|
||||
// CategoryDO[] childrenDO = categoryDOMapper.selectChildrenByCategoryId(categoryDO.getId());
|
||||
// CategoryModel[] children = new CategoryModel[childrenDO.length];
|
||||
// int index = 0;
|
||||
// for (CategoryDO childDO : childrenDO) {
|
||||
// children[index++] = convertFromDataObject(childDO);
|
||||
// }
|
||||
//
|
||||
// categoryModel.setChildren(children);
|
||||
|
||||
return categoryModel;
|
||||
}
|
||||
|
||||
// 转换时不转换父亲与儿子,否则会陷入死循环
|
||||
private CategoryModel convertFromDataObject(CategoryDO categoryDO) {
|
||||
if (categoryDO == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
//设置属性
|
||||
CategoryModel categoryModel = new CategoryModel();
|
||||
categoryModel.setId(categoryDO.getId());
|
||||
categoryModel.setName(categoryDO.getName());
|
||||
categoryModel.setDescription(categoryDO.getDescription());
|
||||
categoryModel.setIsShow(categoryDO.getIsShow());
|
||||
categoryModel.setOrder(categoryDO.getOrder());
|
||||
categoryModel.setLevel(categoryDO.getLevel());
|
||||
categoryModel.setParentId(categoryDO.getParentId());
|
||||
|
||||
return categoryModel;
|
||||
}
|
||||
}
|
@@ -1,9 +0,0 @@
|
||||
package plus.bookshelf.Service.Model.Book;
|
||||
|
||||
public class AuthorModel {
|
||||
// 作者Id
|
||||
Integer id;
|
||||
|
||||
// 作者姓名
|
||||
String name;
|
||||
}
|
@@ -1,9 +0,0 @@
|
||||
package plus.bookshelf.Service.Model.Book;
|
||||
|
||||
public class PublishingHouseModel {
|
||||
// 出版社Id
|
||||
Integer id;
|
||||
|
||||
// 出版社名称
|
||||
String name;
|
||||
}
|
@@ -1,10 +0,0 @@
|
||||
package plus.bookshelf.Service.Model.Book;
|
||||
|
||||
public class ThumbnailModel {
|
||||
|
||||
// 书籍缩略图Id
|
||||
Integer id;
|
||||
|
||||
// 缩略图路径
|
||||
String path;
|
||||
}
|
@@ -1,8 +1,9 @@
|
||||
package plus.bookshelf.Service.Model.Book;
|
||||
package plus.bookshelf.Service.Model;
|
||||
|
||||
import lombok.Data;
|
||||
import plus.bookshelf.Common.Enum.Language;
|
||||
import plus.bookshelf.Service.Model.Category.CategoryModel;
|
||||
|
||||
@Data
|
||||
public class BookModel {
|
||||
|
||||
// 书籍id
|
||||
@@ -15,13 +16,13 @@ public class BookModel {
|
||||
String description;
|
||||
|
||||
// 作者姓名
|
||||
AuthorModel[] author;
|
||||
String author;
|
||||
|
||||
//书籍所属分类
|
||||
CategoryModel category;
|
||||
|
||||
// 出版社
|
||||
PublishingHouseModel publishingHouse;
|
||||
String publishingHouse;
|
||||
|
||||
// 语言
|
||||
Language language;
|
||||
@@ -31,4 +32,7 @@ public class BookModel {
|
||||
|
||||
// 是否删除
|
||||
Boolean isDelete;
|
||||
|
||||
// 缩略图
|
||||
String thumbnail;
|
||||
}
|
@@ -1,15 +1,18 @@
|
||||
package plus.bookshelf.Service.Model.Category;
|
||||
package plus.bookshelf.Service.Model;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class CategoryModel {
|
||||
|
||||
// 分类名称
|
||||
Integer id;
|
||||
|
||||
// 分类名称
|
||||
Integer name;
|
||||
String name;
|
||||
|
||||
// 分类简介
|
||||
Integer description;
|
||||
String description;
|
||||
|
||||
|
||||
Boolean isShow;
|
||||
@@ -20,12 +23,9 @@ public class CategoryModel {
|
||||
// 分类级别 0为一级分类, 1为二级分类...
|
||||
Integer level;
|
||||
|
||||
// 所属父分类Id
|
||||
// 父分类
|
||||
Integer parentId;
|
||||
|
||||
// 父分类
|
||||
CategoryModel parent;
|
||||
|
||||
// 子分类集合
|
||||
CategoryModel[] children;
|
||||
// // 子分类集合
|
||||
// Integer[] childrenId;
|
||||
}
|
@@ -1,10 +1,11 @@
|
||||
package plus.bookshelf.Service.Model.File;
|
||||
package plus.bookshelf.Service.Model;
|
||||
|
||||
import lombok.Data;
|
||||
import org.joda.time.DateTime;
|
||||
import plus.bookshelf.Common.Enum.BookOrigin;
|
||||
import plus.bookshelf.Common.Enum.FileFormatEnum;
|
||||
import plus.bookshelf.Service.Model.Book.ThumbnailModel;
|
||||
|
||||
@Data
|
||||
public class FileModel {
|
||||
|
||||
// 文件Id
|
||||
@@ -34,9 +35,6 @@ public class FileModel {
|
||||
// 文件来源 电子版/扫描版
|
||||
BookOrigin bookOrigin;
|
||||
|
||||
// 缩略图
|
||||
ThumbnailModel thumbnail;
|
||||
|
||||
// 文件创建时间
|
||||
DateTime fileCreateAt;
|
||||
|
@@ -1,7 +1,9 @@
|
||||
package plus.bookshelf.Service.Model.File;
|
||||
package plus.bookshelf.Service.Model;
|
||||
|
||||
import lombok.Data;
|
||||
import plus.bookshelf.Common.Enum.FileStorageMediumEnum;
|
||||
|
||||
@Data
|
||||
public class FileObjectModel {
|
||||
|
||||
// 文件存储介质Id
|
@@ -0,0 +1,12 @@
|
||||
package plus.bookshelf.Service.Service;
|
||||
|
||||
import plus.bookshelf.Service.Model.BookModel;
|
||||
|
||||
public interface BookService {
|
||||
/**
|
||||
* 通过书籍Id获取书籍
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
BookModel getBookById(Integer id);
|
||||
}
|
@@ -0,0 +1,12 @@
|
||||
package plus.bookshelf.Service.Service;
|
||||
|
||||
import plus.bookshelf.Service.Model.CategoryModel;
|
||||
|
||||
public interface CategoryService {
|
||||
/**
|
||||
* 通过分类Id获取分类
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
CategoryModel getCategoryById(Integer id);
|
||||
}
|
@@ -1,98 +0,0 @@
|
||||
<?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>
|
@@ -5,21 +5,23 @@
|
||||
<!--
|
||||
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.
|
||||
This element was generated on Sat Mar 12 21:38:13 SGT 2022.
|
||||
-->
|
||||
<id column="id" jdbcType="TINYINT" property="id" />
|
||||
<id column="book_name" jdbcType="VARCHAR" property="bookName" />
|
||||
<id column="id" jdbcType="INTEGER" property="id" />
|
||||
<result 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="publishing_house" jdbcType="VARCHAR" property="publishingHouse" />
|
||||
<result column="language" jdbcType="VARCHAR" property="language" />
|
||||
<result column="copyright" jdbcType="VARCHAR" property="copyright" />
|
||||
<result column="is_delete" jdbcType="BIT" property="isDelete" />
|
||||
<result column="thumbnail" jdbcType="VARCHAR" property="thumbnail" />
|
||||
<result column="author" jdbcType="VARCHAR" property="author" />
|
||||
</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.
|
||||
This element was generated on Sat Mar 12 21:38:13 SGT 2022.
|
||||
-->
|
||||
<result column="description" jdbcType="LONGVARCHAR" property="description" />
|
||||
</resultMap>
|
||||
@@ -27,60 +29,61 @@
|
||||
<!--
|
||||
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.
|
||||
This element was generated on Sat Mar 12 21:38:13 SGT 2022.
|
||||
-->
|
||||
id, book_name, category_id, publishing_house_id, language, copyright, is_delete
|
||||
id, book_name, category_id, publishing_house, `language`, copyright, is_delete, thumbnail,
|
||||
author
|
||||
</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.
|
||||
This element was generated on Sat Mar 12 21:38:13 SGT 2022.
|
||||
-->
|
||||
description
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" parameterType="plus.bookshelf.Dao.DO.BookDOKey" resultMap="ResultMapWithBLOBs">
|
||||
<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.
|
||||
This element was generated on Sat Mar 12 21:38:13 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}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="plus.bookshelf.Dao.DO.BookDOKey">
|
||||
<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.
|
||||
This element was generated on Sat Mar 12 21:38:13 SGT 2022.
|
||||
-->
|
||||
delete from book_info
|
||||
where id = #{id,jdbcType=TINYINT}
|
||||
and book_name = #{bookName,jdbcType=VARCHAR}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</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.
|
||||
This element was generated on Sat Mar 12 21:38:13 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})
|
||||
publishing_house, `language`, copyright,
|
||||
is_delete, thumbnail, author,
|
||||
description)
|
||||
values (#{id,jdbcType=INTEGER}, #{bookName,jdbcType=VARCHAR}, #{categoryId,jdbcType=INTEGER},
|
||||
#{publishingHouse,jdbcType=VARCHAR}, #{language,jdbcType=VARCHAR}, #{copyright,jdbcType=VARCHAR},
|
||||
#{isDelete,jdbcType=BIT}, #{thumbnail,jdbcType=VARCHAR}, #{author,jdbcType=VARCHAR},
|
||||
#{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.
|
||||
This element was generated on Sat Mar 12 21:38:13 SGT 2022.
|
||||
-->
|
||||
insert into book_info
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
@@ -93,11 +96,11 @@
|
||||
<if test="categoryId != null">
|
||||
category_id,
|
||||
</if>
|
||||
<if test="publishingHouseId != null">
|
||||
publishing_house_id,
|
||||
<if test="publishingHouse != null">
|
||||
publishing_house,
|
||||
</if>
|
||||
<if test="language != null">
|
||||
language,
|
||||
`language`,
|
||||
</if>
|
||||
<if test="copyright != null">
|
||||
copyright,
|
||||
@@ -105,13 +108,19 @@
|
||||
<if test="isDelete != null">
|
||||
is_delete,
|
||||
</if>
|
||||
<if test="thumbnail != null">
|
||||
thumbnail,
|
||||
</if>
|
||||
<if test="author != null">
|
||||
author,
|
||||
</if>
|
||||
<if test="description != null">
|
||||
description,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
#{id,jdbcType=TINYINT},
|
||||
#{id,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="bookName != null">
|
||||
#{bookName,jdbcType=VARCHAR},
|
||||
@@ -119,8 +128,8 @@
|
||||
<if test="categoryId != null">
|
||||
#{categoryId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="publishingHouseId != null">
|
||||
#{publishingHouseId,jdbcType=INTEGER},
|
||||
<if test="publishingHouse != null">
|
||||
#{publishingHouse,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="language != null">
|
||||
#{language,jdbcType=VARCHAR},
|
||||
@@ -131,6 +140,12 @@
|
||||
<if test="isDelete != null">
|
||||
#{isDelete,jdbcType=BIT},
|
||||
</if>
|
||||
<if test="thumbnail != null">
|
||||
#{thumbnail,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="author != null">
|
||||
#{author,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="description != null">
|
||||
#{description,jdbcType=LONGVARCHAR},
|
||||
</if>
|
||||
@@ -140,18 +155,21 @@
|
||||
<!--
|
||||
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.
|
||||
This element was generated on Sat Mar 12 21:38:13 SGT 2022.
|
||||
-->
|
||||
update book_info
|
||||
<set>
|
||||
<if test="bookName != null">
|
||||
book_name = #{bookName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="categoryId != null">
|
||||
category_id = #{categoryId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="publishingHouseId != null">
|
||||
publishing_house_id = #{publishingHouseId,jdbcType=INTEGER},
|
||||
<if test="publishingHouse != null">
|
||||
publishing_house = #{publishingHouse,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="language != null">
|
||||
language = #{language,jdbcType=VARCHAR},
|
||||
`language` = #{language,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="copyright != null">
|
||||
copyright = #{copyright,jdbcType=VARCHAR},
|
||||
@@ -159,42 +177,51 @@
|
||||
<if test="isDelete != null">
|
||||
is_delete = #{isDelete,jdbcType=BIT},
|
||||
</if>
|
||||
<if test="thumbnail != null">
|
||||
thumbnail = #{thumbnail,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="author != null">
|
||||
author = #{author,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="description != null">
|
||||
description = #{description,jdbcType=LONGVARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=TINYINT}
|
||||
and book_name = #{bookName,jdbcType=VARCHAR}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</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.
|
||||
This element was generated on Sat Mar 12 21:38:13 SGT 2022.
|
||||
-->
|
||||
update book_info
|
||||
set category_id = #{categoryId,jdbcType=INTEGER},
|
||||
publishing_house_id = #{publishingHouseId,jdbcType=INTEGER},
|
||||
language = #{language,jdbcType=VARCHAR},
|
||||
set book_name = #{bookName,jdbcType=VARCHAR},
|
||||
category_id = #{categoryId,jdbcType=INTEGER},
|
||||
publishing_house = #{publishingHouse,jdbcType=VARCHAR},
|
||||
`language` = #{language,jdbcType=VARCHAR},
|
||||
copyright = #{copyright,jdbcType=VARCHAR},
|
||||
is_delete = #{isDelete,jdbcType=BIT},
|
||||
thumbnail = #{thumbnail,jdbcType=VARCHAR},
|
||||
author = #{author,jdbcType=VARCHAR},
|
||||
description = #{description,jdbcType=LONGVARCHAR}
|
||||
where id = #{id,jdbcType=TINYINT}
|
||||
and book_name = #{bookName,jdbcType=VARCHAR}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</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.
|
||||
This element was generated on Sat Mar 12 21:38:13 SGT 2022.
|
||||
-->
|
||||
update book_info
|
||||
set category_id = #{categoryId,jdbcType=INTEGER},
|
||||
publishing_house_id = #{publishingHouseId,jdbcType=INTEGER},
|
||||
language = #{language,jdbcType=VARCHAR},
|
||||
set book_name = #{bookName,jdbcType=VARCHAR},
|
||||
category_id = #{categoryId,jdbcType=INTEGER},
|
||||
publishing_house = #{publishingHouse,jdbcType=VARCHAR},
|
||||
`language` = #{language,jdbcType=VARCHAR},
|
||||
copyright = #{copyright,jdbcType=VARCHAR},
|
||||
is_delete = #{isDelete,jdbcType=BIT}
|
||||
where id = #{id,jdbcType=TINYINT}
|
||||
and book_name = #{bookName,jdbcType=VARCHAR}
|
||||
is_delete = #{isDelete,jdbcType=BIT},
|
||||
thumbnail = #{thumbnail,jdbcType=VARCHAR},
|
||||
author = #{author,jdbcType=VARCHAR}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
</mapper>
|
@@ -5,20 +5,20 @@
|
||||
<!--
|
||||
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.
|
||||
This element was generated on Sat Mar 12 21:38:13 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="is_show" 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" />
|
||||
<result column="parent_id" 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.
|
||||
This element was generated on Sat Mar 12 21:38:13 SGT 2022.
|
||||
-->
|
||||
<result column="description" jdbcType="LONGVARCHAR" property="description" />
|
||||
</resultMap>
|
||||
@@ -26,15 +26,15 @@
|
||||
<!--
|
||||
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.
|
||||
This element was generated on Sat Mar 12 21:38:13 SGT 2022.
|
||||
-->
|
||||
id, name, isShow, order, level, parentId
|
||||
id, `name`, is_show, `order`, `level`, parent_id
|
||||
</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.
|
||||
This element was generated on Sat Mar 12 21:38:13 SGT 2022.
|
||||
-->
|
||||
description
|
||||
</sql>
|
||||
@@ -42,7 +42,7 @@
|
||||
<!--
|
||||
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.
|
||||
This element was generated on Sat Mar 12 21:38:13 SGT 2022.
|
||||
-->
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
@@ -55,7 +55,7 @@
|
||||
<!--
|
||||
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.
|
||||
This element was generated on Sat Mar 12 21:38:13 SGT 2022.
|
||||
-->
|
||||
delete from category_info
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
@@ -64,20 +64,20 @@
|
||||
<!--
|
||||
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.
|
||||
This element was generated on Sat Mar 12 21:38:13 SGT 2022.
|
||||
-->
|
||||
insert into category_info (id, name, isShow,
|
||||
order, level, parentId,
|
||||
insert into category_info (id, `name`, is_show,
|
||||
`order`, `level`, parent_id,
|
||||
description)
|
||||
values (#{id,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, #{isshow,jdbcType=BIT},
|
||||
#{order,jdbcType=INTEGER}, #{level,jdbcType=INTEGER}, #{parentid,jdbcType=INTEGER},
|
||||
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.
|
||||
This element was generated on Sat Mar 12 21:38:13 SGT 2022.
|
||||
-->
|
||||
insert into category_info
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
@@ -85,19 +85,19 @@
|
||||
id,
|
||||
</if>
|
||||
<if test="name != null">
|
||||
name,
|
||||
`name`,
|
||||
</if>
|
||||
<if test="isshow != null">
|
||||
isShow,
|
||||
<if test="isShow != null">
|
||||
is_show,
|
||||
</if>
|
||||
<if test="order != null">
|
||||
order,
|
||||
`order`,
|
||||
</if>
|
||||
<if test="level != null">
|
||||
level,
|
||||
`level`,
|
||||
</if>
|
||||
<if test="parentid != null">
|
||||
parentId,
|
||||
<if test="parentId != null">
|
||||
parent_id,
|
||||
</if>
|
||||
<if test="description != null">
|
||||
description,
|
||||
@@ -110,8 +110,8 @@
|
||||
<if test="name != null">
|
||||
#{name,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="isshow != null">
|
||||
#{isshow,jdbcType=BIT},
|
||||
<if test="isShow != null">
|
||||
#{isShow,jdbcType=BIT},
|
||||
</if>
|
||||
<if test="order != null">
|
||||
#{order,jdbcType=INTEGER},
|
||||
@@ -119,8 +119,8 @@
|
||||
<if test="level != null">
|
||||
#{level,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="parentid != null">
|
||||
#{parentid,jdbcType=INTEGER},
|
||||
<if test="parentId != null">
|
||||
#{parentId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="description != null">
|
||||
#{description,jdbcType=LONGVARCHAR},
|
||||
@@ -131,24 +131,24 @@
|
||||
<!--
|
||||
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.
|
||||
This element was generated on Sat Mar 12 21:38:13 SGT 2022.
|
||||
-->
|
||||
update category_info
|
||||
<set>
|
||||
<if test="name != null">
|
||||
name = #{name,jdbcType=VARCHAR},
|
||||
`name` = #{name,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="isshow != null">
|
||||
isShow = #{isshow,jdbcType=BIT},
|
||||
<if test="isShow != null">
|
||||
is_show = #{isShow,jdbcType=BIT},
|
||||
</if>
|
||||
<if test="order != null">
|
||||
order = #{order,jdbcType=INTEGER},
|
||||
`order` = #{order,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="level != null">
|
||||
level = #{level,jdbcType=INTEGER},
|
||||
`level` = #{level,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="parentid != null">
|
||||
parentId = #{parentid,jdbcType=INTEGER},
|
||||
<if test="parentId != null">
|
||||
parent_id = #{parentId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="description != null">
|
||||
description = #{description,jdbcType=LONGVARCHAR},
|
||||
@@ -160,14 +160,14 @@
|
||||
<!--
|
||||
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.
|
||||
This element was generated on Sat Mar 12 21:38:13 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},
|
||||
set `name` = #{name,jdbcType=VARCHAR},
|
||||
is_show = #{isShow,jdbcType=BIT},
|
||||
`order` = #{order,jdbcType=INTEGER},
|
||||
`level` = #{level,jdbcType=INTEGER},
|
||||
parent_id = #{parentId,jdbcType=INTEGER},
|
||||
description = #{description,jdbcType=LONGVARCHAR}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
@@ -175,14 +175,22 @@
|
||||
<!--
|
||||
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.
|
||||
This element was generated on Sat Mar 12 21:38:13 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}
|
||||
set `name` = #{name,jdbcType=VARCHAR},
|
||||
is_show = #{isShow,jdbcType=BIT},
|
||||
`order` = #{order,jdbcType=INTEGER},
|
||||
`level` = #{level,jdbcType=INTEGER},
|
||||
parent_id = #{parentId,jdbcType=INTEGER}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
<select id="selectChildrenByCategoryId" parameterType="java.lang.Integer" resultMap="ResultMapWithBLOBs">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
,
|
||||
<include refid="Blob_Column_List" />
|
||||
from category_info
|
||||
where parent_id = #{parentId,jdbcType=INTEGER}
|
||||
</select>
|
||||
</mapper>
|
@@ -5,10 +5,10 @@
|
||||
<!--
|
||||
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.
|
||||
This element was generated on Sat Mar 12 21:38:13 SGT 2022.
|
||||
-->
|
||||
<id column="id" jdbcType="INTEGER" property="id" />
|
||||
<id column="book_id" jdbcType="INTEGER" property="bookId" />
|
||||
<result 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" />
|
||||
@@ -28,39 +28,37 @@
|
||||
<!--
|
||||
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.
|
||||
This element was generated on Sat Mar 12 21:38:13 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">
|
||||
<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.
|
||||
This element was generated on Sat Mar 12 21:38:13 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">
|
||||
<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.
|
||||
This element was generated on Sat Mar 12 21:38:13 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.
|
||||
This element was generated on Sat Mar 12 21:38:13 SGT 2022.
|
||||
-->
|
||||
insert into file_info (id, book_id, file_display_name,
|
||||
file_name, file_format, number_of_pages,
|
||||
@@ -79,7 +77,7 @@
|
||||
<!--
|
||||
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.
|
||||
This element was generated on Sat Mar 12 21:38:13 SGT 2022.
|
||||
-->
|
||||
insert into file_info
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
@@ -187,10 +185,13 @@
|
||||
<!--
|
||||
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.
|
||||
This element was generated on Sat Mar 12 21:38:13 SGT 2022.
|
||||
-->
|
||||
update file_info
|
||||
<set>
|
||||
<if test="bookId != null">
|
||||
book_id = #{bookId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="fileDisplayName != null">
|
||||
file_display_name = #{fileDisplayName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
@@ -235,16 +236,16 @@
|
||||
</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.
|
||||
This element was generated on Sat Mar 12 21:38:13 SGT 2022.
|
||||
-->
|
||||
update file_info
|
||||
set file_display_name = #{fileDisplayName,jdbcType=VARCHAR},
|
||||
set book_id = #{bookId,jdbcType=INTEGER},
|
||||
file_display_name = #{fileDisplayName,jdbcType=VARCHAR},
|
||||
file_name = #{fileName,jdbcType=VARCHAR},
|
||||
file_format = #{fileFormat,jdbcType=VARCHAR},
|
||||
number_of_pages = #{numberOfPages,jdbcType=INTEGER},
|
||||
@@ -259,6 +260,5 @@
|
||||
hash_sha1 = #{hashSha1,jdbcType=VARCHAR},
|
||||
hash_sha256 = #{hashSha256,jdbcType=VARCHAR}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
and book_id = #{bookId,jdbcType=INTEGER}
|
||||
</update>
|
||||
</mapper>
|
@@ -5,7 +5,7 @@
|
||||
<!--
|
||||
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.
|
||||
This element was generated on Sat Mar 12 21:38:13 SGT 2022.
|
||||
-->
|
||||
<id column="id" jdbcType="INTEGER" property="id" />
|
||||
<result column="fileId" jdbcType="INTEGER" property="fileid" />
|
||||
@@ -19,7 +19,7 @@
|
||||
<!--
|
||||
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.
|
||||
This element was generated on Sat Mar 12 21:38:13 SGT 2022.
|
||||
-->
|
||||
id, fileId, storage_medium_type, file_path, file_pwd, file_share_code, additional_fields
|
||||
</sql>
|
||||
@@ -27,7 +27,7 @@
|
||||
<!--
|
||||
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.
|
||||
This element was generated on Sat Mar 12 21:38:13 SGT 2022.
|
||||
-->
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
@@ -38,7 +38,7 @@
|
||||
<!--
|
||||
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.
|
||||
This element was generated on Sat Mar 12 21:38:13 SGT 2022.
|
||||
-->
|
||||
delete from file_object_info
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
@@ -47,7 +47,7 @@
|
||||
<!--
|
||||
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.
|
||||
This element was generated on Sat Mar 12 21:38:13 SGT 2022.
|
||||
-->
|
||||
insert into file_object_info (id, fileId, storage_medium_type,
|
||||
file_path, file_pwd, file_share_code,
|
||||
@@ -60,7 +60,7 @@
|
||||
<!--
|
||||
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.
|
||||
This element was generated on Sat Mar 12 21:38:13 SGT 2022.
|
||||
-->
|
||||
insert into file_object_info
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
@@ -114,7 +114,7 @@
|
||||
<!--
|
||||
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.
|
||||
This element was generated on Sat Mar 12 21:38:13 SGT 2022.
|
||||
-->
|
||||
update file_object_info
|
||||
<set>
|
||||
@@ -143,7 +143,7 @@
|
||||
<!--
|
||||
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.
|
||||
This element was generated on Sat Mar 12 21:38:13 SGT 2022.
|
||||
-->
|
||||
update file_object_info
|
||||
set fileId = #{fileid,jdbcType=INTEGER},
|
||||
|
@@ -1,98 +0,0 @@
|
||||
<?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>
|
@@ -1,98 +0,0 @@
|
||||
<?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>
|
@@ -4,12 +4,30 @@
|
||||
"http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd">
|
||||
<generatorConfiguration>
|
||||
|
||||
<!-- 引入外部properties文件 https://www.cnblogs.com/zjulanjian/p/10972960.html -->
|
||||
<properties resource="application.properties" />
|
||||
|
||||
<context id="DB2Tables" targetRuntime="MyBatis3">
|
||||
<!-- 数据库链接地址账号密码 -->
|
||||
<jdbcConnection driverClass="com.mysql.jdbc.Driver"
|
||||
connectionURL="jdbc:mysql://127.0.0.1:3306/bookshelfplus?serverTimezone=Asia/Shanghai&useSSL=false"
|
||||
userId="root"
|
||||
password="111111">
|
||||
|
||||
<!-- 为sql关键字添加分隔符 https://cloud.tencent.com/developer/article/1868889 -->
|
||||
<property name="autoDelimitKeywords" value="true"/>
|
||||
<property name="beginningDelimiter" value="`"/>
|
||||
<property name="endingDelimiter" value="`"/>
|
||||
|
||||
<!-- 数据库链接配置 -->
|
||||
<!--<jdbcConnection driverClass="com.mysql.jdbc.Driver"-->
|
||||
<!-- connectionURL="jdbc:mysql://127.0.0.1:3306/bookshelfplus?serverTimezone=Asia/Shanghai&useSSL=false"-->
|
||||
<!-- userId="root"-->
|
||||
<!-- password="111111">-->
|
||||
<!--</jdbcConnection>-->
|
||||
<jdbcConnection driverClass="com.mysql.jdbc.Driver" connectionURL="${spring.datasource.url}"
|
||||
userId="${spring.datasource.username}" password="${spring.datasource.password}">
|
||||
<!--
|
||||
禁止MyBatis使用其他数据库中的同名数据表
|
||||
refer: https://blog.csdn.net/khsay/article/details/86478579
|
||||
https://www.cnblogs.com/coderLeo/p/12770673.html
|
||||
-->
|
||||
<property name="nullCatalogMeansCurrent" value="true"/>
|
||||
</jdbcConnection>
|
||||
|
||||
<!-- 生成 DataObject 类存放位置 -->
|
||||
@@ -41,15 +59,9 @@
|
||||
<!--selectByExampleQueryId="false"-->
|
||||
|
||||
<!-- 生成对应表及其类名 -->
|
||||
<!--<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>-->
|
||||
|
Reference in New Issue
Block a user