Bladeren bron

根据性别分页查询推荐接口

lijinjin 3 jaren geleden
bovenliggende
commit
cd64aab882

+ 11 - 0
book-server/src/main/java/com/book/server/controller/BaseController.java

@@ -4,6 +4,7 @@ import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Controller;
 import org.springframework.web.bind.annotation.CrossOrigin;
 
+import javax.servlet.http.Cookie;
 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpServletResponse;
 
@@ -14,4 +15,14 @@ public class BaseController {
     protected HttpServletRequest request;
     @Autowired
     protected HttpServletResponse response;
+
+    protected String getSex() {
+        Cookie[] cookies = request.getCookies();
+        for (Cookie cookie : cookies) {
+            if (cookie.getName().equals("sex")) {
+                return cookie.getValue();
+            }
+        }
+        return "1";
+    }
 }

+ 16 - 0
book-server/src/main/java/com/book/server/controller/BookController.java

@@ -5,6 +5,7 @@ import com.book.server.common.entity.Result;
 import com.book.server.dao.entity.Book;
 import com.book.server.model.VO.QueryVO;
 import com.book.server.service.BookService;
+import lombok.extern.slf4j.Slf4j;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.web.bind.annotation.*;
 
@@ -14,12 +15,15 @@ import org.springframework.web.bind.annotation.*;
 @RestController
 @CrossOrigin
 @RequestMapping("/book")
+@Slf4j
 public class BookController extends BaseController {
     @Autowired
     private BookService bookService;
 
+
     /**
      * 书库查询
+     *
      * @param queryVO
      * @return
      */
@@ -27,4 +31,16 @@ public class BookController extends BaseController {
     public PageResult<Book> query(@RequestBody QueryVO queryVO) {
         return bookService.query(queryVO);
     }
+
+    /**
+     * 书城分页推荐
+     * @param queryVO
+     * @return
+     */
+    @PostMapping("/recommend")
+    public PageResult<Book> recommendByRead(@RequestBody QueryVO queryVO) {
+        queryVO.setSex(getSex());
+        return bookService.recommendByRead(queryVO);
+    }
+
 }

+ 425 - 0
book-server/src/main/java/com/book/server/dao/entity/ManageBlock.java

@@ -0,0 +1,425 @@
+package com.book.server.dao.entity;
+
+import java.io.Serializable;
+import java.util.ArrayList;
+import java.util.Arrays;
+import lombok.Data;
+
+@Data
+public class ManageBlock implements Serializable {
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column manage_block.id
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    private Integer id;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column manage_block.page_id
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    private Integer pageId;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column manage_block.name
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    private String name;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column manage_block.second_name
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    private String secondName;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column manage_block.type
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    private String type;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column manage_block.weigh
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    private Integer weigh;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column manage_block.createtime
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    private Integer createtime;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column manage_block.updatetime
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    private Integer updatetime;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table manage_block
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table manage_block
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    public static ManageBlock.Builder builder() {
+        return new ManageBlock.Builder();
+    }
+
+    /**
+     * This class was generated by MyBatis Generator.
+     * This class corresponds to the database table manage_block
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    public static class Builder {
+        /**
+         * This field was generated by MyBatis Generator.
+         * This field corresponds to the database table manage_block
+         *
+         * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+         */
+        private ManageBlock obj;
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table manage_block
+         *
+         * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+         */
+        public Builder() {
+            this.obj = new ManageBlock();
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method sets the value of the database column manage_block.id
+         *
+         * @param id the value for manage_block.id
+         *
+         * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+         */
+        public Builder id(Integer id) {
+            obj.setId(id);
+            return this;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method sets the value of the database column manage_block.page_id
+         *
+         * @param pageId the value for manage_block.page_id
+         *
+         * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+         */
+        public Builder pageId(Integer pageId) {
+            obj.setPageId(pageId);
+            return this;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method sets the value of the database column manage_block.name
+         *
+         * @param name the value for manage_block.name
+         *
+         * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+         */
+        public Builder name(String name) {
+            obj.setName(name);
+            return this;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method sets the value of the database column manage_block.second_name
+         *
+         * @param secondName the value for manage_block.second_name
+         *
+         * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+         */
+        public Builder secondName(String secondName) {
+            obj.setSecondName(secondName);
+            return this;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method sets the value of the database column manage_block.type
+         *
+         * @param type the value for manage_block.type
+         *
+         * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+         */
+        public Builder type(String type) {
+            obj.setType(type);
+            return this;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method sets the value of the database column manage_block.weigh
+         *
+         * @param weigh the value for manage_block.weigh
+         *
+         * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+         */
+        public Builder weigh(Integer weigh) {
+            obj.setWeigh(weigh);
+            return this;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method sets the value of the database column manage_block.createtime
+         *
+         * @param createtime the value for manage_block.createtime
+         *
+         * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+         */
+        public Builder createtime(Integer createtime) {
+            obj.setCreatetime(createtime);
+            return this;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method sets the value of the database column manage_block.updatetime
+         *
+         * @param updatetime the value for manage_block.updatetime
+         *
+         * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+         */
+        public Builder updatetime(Integer updatetime) {
+            obj.setUpdatetime(updatetime);
+            return this;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table manage_block
+         *
+         * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+         */
+        public ManageBlock build() {
+            return this.obj;
+        }
+    }
+
+    /**
+     * This enum was generated by MyBatis Generator.
+     * This enum corresponds to the database table manage_block
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    public enum Column {
+        id("id", "id", "INTEGER", false),
+        pageId("page_id", "pageId", "INTEGER", false),
+        name("name", "name", "VARCHAR", false),
+        secondName("second_name", "secondName", "VARCHAR", false),
+        type("type", "type", "CHAR", false),
+        weigh("weigh", "weigh", "INTEGER", false),
+        createtime("createtime", "createtime", "INTEGER", false),
+        updatetime("updatetime", "updatetime", "INTEGER", false);
+
+        /**
+         * This field was generated by MyBatis Generator.
+         * This field corresponds to the database table manage_block
+         *
+         * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+         */
+        private static final String BEGINNING_DELIMITER = "\"";
+
+        /**
+         * This field was generated by MyBatis Generator.
+         * This field corresponds to the database table manage_block
+         *
+         * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+         */
+        private static final String ENDING_DELIMITER = "\"";
+
+        /**
+         * This field was generated by MyBatis Generator.
+         * This field corresponds to the database table manage_block
+         *
+         * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+         */
+        private final String column;
+
+        /**
+         * This field was generated by MyBatis Generator.
+         * This field corresponds to the database table manage_block
+         *
+         * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+         */
+        private final boolean isColumnNameDelimited;
+
+        /**
+         * This field was generated by MyBatis Generator.
+         * This field corresponds to the database table manage_block
+         *
+         * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+         */
+        private final String javaProperty;
+
+        /**
+         * This field was generated by MyBatis Generator.
+         * This field corresponds to the database table manage_block
+         *
+         * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+         */
+        private final String jdbcType;
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table manage_block
+         *
+         * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+         */
+        public String value() {
+            return this.column;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table manage_block
+         *
+         * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+         */
+        public String getValue() {
+            return this.column;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table manage_block
+         *
+         * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+         */
+        public String getJavaProperty() {
+            return this.javaProperty;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table manage_block
+         *
+         * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+         */
+        public String getJdbcType() {
+            return this.jdbcType;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table manage_block
+         *
+         * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+         */
+        Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) {
+            this.column = column;
+            this.javaProperty = javaProperty;
+            this.jdbcType = jdbcType;
+            this.isColumnNameDelimited = isColumnNameDelimited;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table manage_block
+         *
+         * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+         */
+        public String desc() {
+            return this.getEscapedColumnName() + " DESC";
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table manage_block
+         *
+         * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+         */
+        public String asc() {
+            return this.getEscapedColumnName() + " ASC";
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table manage_block
+         *
+         * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+         */
+        public static Column[] excludes(Column ... excludes) {
+            ArrayList<Column> columns = new ArrayList<>(Arrays.asList(Column.values()));
+            if (excludes != null && excludes.length > 0) {
+                columns.removeAll(new ArrayList<>(Arrays.asList(excludes)));
+            }
+            return columns.toArray(new Column[]{});
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table manage_block
+         *
+         * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+         */
+        public static Column[] all() {
+            return Column.values();
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table manage_block
+         *
+         * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+         */
+        public String getEscapedColumnName() {
+            if (this.isColumnNameDelimited) {
+                return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString();
+            } else {
+                return this.column;
+            }
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table manage_block
+         *
+         * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+         */
+        public String getAliasedEscapedColumnName() {
+            return this.getEscapedColumnName();
+        }
+    }
+}

+ 471 - 0
book-server/src/main/java/com/book/server/dao/entity/ManageBlockResource.java

@@ -0,0 +1,471 @@
+package com.book.server.dao.entity;
+
+import java.io.Serializable;
+import java.util.ArrayList;
+import java.util.Arrays;
+import lombok.Data;
+
+@Data
+public class ManageBlockResource implements Serializable {
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column manage_block_resource.id
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    private Integer id;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column manage_block_resource.block_id
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    private Integer blockId;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column manage_block_resource.type
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    private String type;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column manage_block_resource.image
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    private String image;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column manage_block_resource.book_id
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    private Long bookId;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column manage_block_resource.url
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    private String url;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column manage_block_resource.weigh
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    private Integer weigh;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column manage_block_resource.createtime
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    private Integer createtime;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column manage_block_resource.updatetime
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    private Integer updatetime;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column manage_block_resource.special_id
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    private Integer specialId;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table manage_block_resource
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table manage_block_resource
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    public static ManageBlockResource.Builder builder() {
+        return new ManageBlockResource.Builder();
+    }
+
+    /**
+     * This class was generated by MyBatis Generator.
+     * This class corresponds to the database table manage_block_resource
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    public static class Builder {
+        /**
+         * This field was generated by MyBatis Generator.
+         * This field corresponds to the database table manage_block_resource
+         *
+         * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+         */
+        private ManageBlockResource obj;
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table manage_block_resource
+         *
+         * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+         */
+        public Builder() {
+            this.obj = new ManageBlockResource();
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method sets the value of the database column manage_block_resource.id
+         *
+         * @param id the value for manage_block_resource.id
+         *
+         * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+         */
+        public Builder id(Integer id) {
+            obj.setId(id);
+            return this;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method sets the value of the database column manage_block_resource.block_id
+         *
+         * @param blockId the value for manage_block_resource.block_id
+         *
+         * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+         */
+        public Builder blockId(Integer blockId) {
+            obj.setBlockId(blockId);
+            return this;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method sets the value of the database column manage_block_resource.type
+         *
+         * @param type the value for manage_block_resource.type
+         *
+         * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+         */
+        public Builder type(String type) {
+            obj.setType(type);
+            return this;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method sets the value of the database column manage_block_resource.image
+         *
+         * @param image the value for manage_block_resource.image
+         *
+         * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+         */
+        public Builder image(String image) {
+            obj.setImage(image);
+            return this;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method sets the value of the database column manage_block_resource.book_id
+         *
+         * @param bookId the value for manage_block_resource.book_id
+         *
+         * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+         */
+        public Builder bookId(Long bookId) {
+            obj.setBookId(bookId);
+            return this;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method sets the value of the database column manage_block_resource.url
+         *
+         * @param url the value for manage_block_resource.url
+         *
+         * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+         */
+        public Builder url(String url) {
+            obj.setUrl(url);
+            return this;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method sets the value of the database column manage_block_resource.weigh
+         *
+         * @param weigh the value for manage_block_resource.weigh
+         *
+         * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+         */
+        public Builder weigh(Integer weigh) {
+            obj.setWeigh(weigh);
+            return this;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method sets the value of the database column manage_block_resource.createtime
+         *
+         * @param createtime the value for manage_block_resource.createtime
+         *
+         * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+         */
+        public Builder createtime(Integer createtime) {
+            obj.setCreatetime(createtime);
+            return this;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method sets the value of the database column manage_block_resource.updatetime
+         *
+         * @param updatetime the value for manage_block_resource.updatetime
+         *
+         * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+         */
+        public Builder updatetime(Integer updatetime) {
+            obj.setUpdatetime(updatetime);
+            return this;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method sets the value of the database column manage_block_resource.special_id
+         *
+         * @param specialId the value for manage_block_resource.special_id
+         *
+         * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+         */
+        public Builder specialId(Integer specialId) {
+            obj.setSpecialId(specialId);
+            return this;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table manage_block_resource
+         *
+         * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+         */
+        public ManageBlockResource build() {
+            return this.obj;
+        }
+    }
+
+    /**
+     * This enum was generated by MyBatis Generator.
+     * This enum corresponds to the database table manage_block_resource
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    public enum Column {
+        id("id", "id", "INTEGER", false),
+        blockId("block_id", "blockId", "INTEGER", false),
+        type("type", "type", "CHAR", false),
+        image("image", "image", "VARCHAR", false),
+        bookId("book_id", "bookId", "BIGINT", false),
+        url("url", "url", "VARCHAR", false),
+        weigh("weigh", "weigh", "INTEGER", false),
+        createtime("createtime", "createtime", "INTEGER", false),
+        updatetime("updatetime", "updatetime", "INTEGER", false),
+        specialId("special_id", "specialId", "INTEGER", false);
+
+        /**
+         * This field was generated by MyBatis Generator.
+         * This field corresponds to the database table manage_block_resource
+         *
+         * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+         */
+        private static final String BEGINNING_DELIMITER = "\"";
+
+        /**
+         * This field was generated by MyBatis Generator.
+         * This field corresponds to the database table manage_block_resource
+         *
+         * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+         */
+        private static final String ENDING_DELIMITER = "\"";
+
+        /**
+         * This field was generated by MyBatis Generator.
+         * This field corresponds to the database table manage_block_resource
+         *
+         * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+         */
+        private final String column;
+
+        /**
+         * This field was generated by MyBatis Generator.
+         * This field corresponds to the database table manage_block_resource
+         *
+         * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+         */
+        private final boolean isColumnNameDelimited;
+
+        /**
+         * This field was generated by MyBatis Generator.
+         * This field corresponds to the database table manage_block_resource
+         *
+         * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+         */
+        private final String javaProperty;
+
+        /**
+         * This field was generated by MyBatis Generator.
+         * This field corresponds to the database table manage_block_resource
+         *
+         * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+         */
+        private final String jdbcType;
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table manage_block_resource
+         *
+         * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+         */
+        public String value() {
+            return this.column;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table manage_block_resource
+         *
+         * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+         */
+        public String getValue() {
+            return this.column;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table manage_block_resource
+         *
+         * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+         */
+        public String getJavaProperty() {
+            return this.javaProperty;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table manage_block_resource
+         *
+         * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+         */
+        public String getJdbcType() {
+            return this.jdbcType;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table manage_block_resource
+         *
+         * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+         */
+        Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) {
+            this.column = column;
+            this.javaProperty = javaProperty;
+            this.jdbcType = jdbcType;
+            this.isColumnNameDelimited = isColumnNameDelimited;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table manage_block_resource
+         *
+         * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+         */
+        public String desc() {
+            return this.getEscapedColumnName() + " DESC";
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table manage_block_resource
+         *
+         * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+         */
+        public String asc() {
+            return this.getEscapedColumnName() + " ASC";
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table manage_block_resource
+         *
+         * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+         */
+        public static Column[] excludes(Column ... excludes) {
+            ArrayList<Column> columns = new ArrayList<>(Arrays.asList(Column.values()));
+            if (excludes != null && excludes.length > 0) {
+                columns.removeAll(new ArrayList<>(Arrays.asList(excludes)));
+            }
+            return columns.toArray(new Column[]{});
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table manage_block_resource
+         *
+         * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+         */
+        public static Column[] all() {
+            return Column.values();
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table manage_block_resource
+         *
+         * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+         */
+        public String getEscapedColumnName() {
+            if (this.isColumnNameDelimited) {
+                return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString();
+            } else {
+                return this.column;
+            }
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table manage_block_resource
+         *
+         * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+         */
+        public String getAliasedEscapedColumnName() {
+            return this.getEscapedColumnName();
+        }
+    }
+}

+ 1311 - 0
book-server/src/main/java/com/book/server/dao/entity/example/ManageBlockExample.java

@@ -0,0 +1,1311 @@
+package com.book.server.dao.entity.example;
+
+import com.book.server.dao.entity.ManageBlock;
+import java.util.ArrayList;
+import java.util.List;
+
+public class ManageBlockExample {
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table manage_block
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    protected String orderByClause;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table manage_block
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    protected boolean distinct;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table manage_block
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    protected List<Criteria> oredCriteria;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table manage_block
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    protected Integer offset;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table manage_block
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    protected Integer rows;
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table manage_block
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    public ManageBlockExample() {
+        oredCriteria = new ArrayList<Criteria>();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table manage_block
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    public void setOrderByClause(String orderByClause) {
+        this.orderByClause = orderByClause;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table manage_block
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    public String getOrderByClause() {
+        return orderByClause;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table manage_block
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    public void setDistinct(boolean distinct) {
+        this.distinct = distinct;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table manage_block
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    public boolean isDistinct() {
+        return distinct;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table manage_block
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    public List<Criteria> getOredCriteria() {
+        return oredCriteria;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table manage_block
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    public void or(Criteria criteria) {
+        oredCriteria.add(criteria);
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table manage_block
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    public Criteria or() {
+        Criteria criteria = createCriteriaInternal();
+        oredCriteria.add(criteria);
+        return criteria;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table manage_block
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    public ManageBlockExample orderBy(String orderByClause) {
+        this.setOrderByClause(orderByClause);
+        return this;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table manage_block
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    public ManageBlockExample orderBy(String ... orderByClauses) {
+        StringBuffer sb = new StringBuffer();
+        for (int i = 0; i < orderByClauses.length; i++) {
+            sb.append(orderByClauses[i]);
+            if (i < orderByClauses.length - 1) {
+                sb.append(" , ");
+            }
+        }
+        this.setOrderByClause(sb.toString());
+        return this;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table manage_block
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    public Criteria createCriteria() {
+        Criteria criteria = createCriteriaInternal();
+        if (oredCriteria.size() == 0) {
+            oredCriteria.add(criteria);
+        }
+        return criteria;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table manage_block
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    protected Criteria createCriteriaInternal() {
+        Criteria criteria = new Criteria(this);
+        return criteria;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table manage_block
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    public void clear() {
+        oredCriteria.clear();
+        orderByClause = null;
+        distinct = false;
+        rows = null;
+        offset = null;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table manage_block
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    public void setOffset(Integer offset) {
+        this.offset = offset;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table manage_block
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    public Integer getOffset() {
+        return this.offset;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table manage_block
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    public void setRows(Integer rows) {
+        this.rows = rows;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table manage_block
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    public Integer getRows() {
+        return this.rows;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table manage_block
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    public ManageBlockExample limit(Integer rows) {
+        this.rows = rows;
+        return this;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table manage_block
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    public ManageBlockExample limit(Integer offset, Integer rows) {
+        this.offset = offset;
+        this.rows = rows;
+        return this;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table manage_block
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    public ManageBlockExample page(Integer page, Integer pageSize) {
+        this.offset = page * pageSize;
+        this.rows = pageSize;
+        return this;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table manage_block
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    public static Criteria newAndCreateCriteria() {
+        ManageBlockExample example = new ManageBlockExample();
+        return example.createCriteria();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table manage_block
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    public ManageBlockExample when(boolean condition, IExampleWhen then) {
+        if (condition) {
+            then.example(this);
+        }
+        return this;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table manage_block
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    public ManageBlockExample when(boolean condition, IExampleWhen then, IExampleWhen otherwise) {
+        if (condition) {
+            then.example(this);
+        } else {
+            otherwise.example(this);
+        }
+        return this;
+    }
+
+    /**
+     * This class was generated by MyBatis Generator.
+     * This class corresponds to the database table manage_block
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    protected abstract static class GeneratedCriteria {
+        protected List<Criterion> criteria;
+
+        protected GeneratedCriteria() {
+            super();
+            criteria = new ArrayList<Criterion>();
+        }
+
+        public boolean isValid() {
+            return criteria.size() > 0;
+        }
+
+        public List<Criterion> getAllCriteria() {
+            return criteria;
+        }
+
+        public List<Criterion> getCriteria() {
+            return criteria;
+        }
+
+        protected void addCriterion(String condition) {
+            if (condition == null) {
+                throw new RuntimeException("Value for condition cannot be null");
+            }
+            criteria.add(new Criterion(condition));
+        }
+
+        protected void addCriterion(String condition, Object value, String property) {
+            if (value == null) {
+                throw new RuntimeException("Value for " + property + " cannot be null");
+            }
+            criteria.add(new Criterion(condition, value));
+        }
+
+        protected void addCriterion(String condition, Object value1, Object value2, String property) {
+            if (value1 == null || value2 == null) {
+                throw new RuntimeException("Between values for " + property + " cannot be null");
+            }
+            criteria.add(new Criterion(condition, value1, value2));
+        }
+
+        public Criteria andIdIsNull() {
+            addCriterion("id is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdIsNotNull() {
+            addCriterion("id is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdEqualTo(Integer value) {
+            addCriterion("id =", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdEqualToColumn(ManageBlock.Column column) {
+            addCriterion(new StringBuilder("id = ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andIdNotEqualTo(Integer value) {
+            addCriterion("id <>", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdNotEqualToColumn(ManageBlock.Column column) {
+            addCriterion(new StringBuilder("id <> ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andIdGreaterThan(Integer value) {
+            addCriterion("id >", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdGreaterThanColumn(ManageBlock.Column column) {
+            addCriterion(new StringBuilder("id > ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
+            addCriterion("id >=", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdGreaterThanOrEqualToColumn(ManageBlock.Column column) {
+            addCriterion(new StringBuilder("id >= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andIdLessThan(Integer value) {
+            addCriterion("id <", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdLessThanColumn(ManageBlock.Column column) {
+            addCriterion(new StringBuilder("id < ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andIdLessThanOrEqualTo(Integer value) {
+            addCriterion("id <=", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdLessThanOrEqualToColumn(ManageBlock.Column column) {
+            addCriterion(new StringBuilder("id <= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andIdIn(List<Integer> values) {
+            addCriterion("id in", values, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdNotIn(List<Integer> values) {
+            addCriterion("id not in", values, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdBetween(Integer value1, Integer value2) {
+            addCriterion("id between", value1, value2, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdNotBetween(Integer value1, Integer value2) {
+            addCriterion("id not between", value1, value2, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andPageIdIsNull() {
+            addCriterion("page_id is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPageIdIsNotNull() {
+            addCriterion("page_id is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPageIdEqualTo(Integer value) {
+            addCriterion("page_id =", value, "pageId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPageIdEqualToColumn(ManageBlock.Column column) {
+            addCriterion(new StringBuilder("page_id = ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andPageIdNotEqualTo(Integer value) {
+            addCriterion("page_id <>", value, "pageId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPageIdNotEqualToColumn(ManageBlock.Column column) {
+            addCriterion(new StringBuilder("page_id <> ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andPageIdGreaterThan(Integer value) {
+            addCriterion("page_id >", value, "pageId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPageIdGreaterThanColumn(ManageBlock.Column column) {
+            addCriterion(new StringBuilder("page_id > ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andPageIdGreaterThanOrEqualTo(Integer value) {
+            addCriterion("page_id >=", value, "pageId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPageIdGreaterThanOrEqualToColumn(ManageBlock.Column column) {
+            addCriterion(new StringBuilder("page_id >= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andPageIdLessThan(Integer value) {
+            addCriterion("page_id <", value, "pageId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPageIdLessThanColumn(ManageBlock.Column column) {
+            addCriterion(new StringBuilder("page_id < ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andPageIdLessThanOrEqualTo(Integer value) {
+            addCriterion("page_id <=", value, "pageId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPageIdLessThanOrEqualToColumn(ManageBlock.Column column) {
+            addCriterion(new StringBuilder("page_id <= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andPageIdIn(List<Integer> values) {
+            addCriterion("page_id in", values, "pageId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPageIdNotIn(List<Integer> values) {
+            addCriterion("page_id not in", values, "pageId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPageIdBetween(Integer value1, Integer value2) {
+            addCriterion("page_id between", value1, value2, "pageId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPageIdNotBetween(Integer value1, Integer value2) {
+            addCriterion("page_id not between", value1, value2, "pageId");
+            return (Criteria) this;
+        }
+
+        public Criteria andNameIsNull() {
+            addCriterion("name is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andNameIsNotNull() {
+            addCriterion("name is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andNameEqualTo(String value) {
+            addCriterion("name =", value, "name");
+            return (Criteria) this;
+        }
+
+        public Criteria andNameEqualToColumn(ManageBlock.Column column) {
+            addCriterion(new StringBuilder("name = ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andNameNotEqualTo(String value) {
+            addCriterion("name <>", value, "name");
+            return (Criteria) this;
+        }
+
+        public Criteria andNameNotEqualToColumn(ManageBlock.Column column) {
+            addCriterion(new StringBuilder("name <> ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andNameGreaterThan(String value) {
+            addCriterion("name >", value, "name");
+            return (Criteria) this;
+        }
+
+        public Criteria andNameGreaterThanColumn(ManageBlock.Column column) {
+            addCriterion(new StringBuilder("name > ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andNameGreaterThanOrEqualTo(String value) {
+            addCriterion("name >=", value, "name");
+            return (Criteria) this;
+        }
+
+        public Criteria andNameGreaterThanOrEqualToColumn(ManageBlock.Column column) {
+            addCriterion(new StringBuilder("name >= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andNameLessThan(String value) {
+            addCriterion("name <", value, "name");
+            return (Criteria) this;
+        }
+
+        public Criteria andNameLessThanColumn(ManageBlock.Column column) {
+            addCriterion(new StringBuilder("name < ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andNameLessThanOrEqualTo(String value) {
+            addCriterion("name <=", value, "name");
+            return (Criteria) this;
+        }
+
+        public Criteria andNameLessThanOrEqualToColumn(ManageBlock.Column column) {
+            addCriterion(new StringBuilder("name <= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andNameLike(String value) {
+            addCriterion("name like", value, "name");
+            return (Criteria) this;
+        }
+
+        public Criteria andNameNotLike(String value) {
+            addCriterion("name not like", value, "name");
+            return (Criteria) this;
+        }
+
+        public Criteria andNameIn(List<String> values) {
+            addCriterion("name in", values, "name");
+            return (Criteria) this;
+        }
+
+        public Criteria andNameNotIn(List<String> values) {
+            addCriterion("name not in", values, "name");
+            return (Criteria) this;
+        }
+
+        public Criteria andNameBetween(String value1, String value2) {
+            addCriterion("name between", value1, value2, "name");
+            return (Criteria) this;
+        }
+
+        public Criteria andNameNotBetween(String value1, String value2) {
+            addCriterion("name not between", value1, value2, "name");
+            return (Criteria) this;
+        }
+
+        public Criteria andSecondNameIsNull() {
+            addCriterion("second_name is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andSecondNameIsNotNull() {
+            addCriterion("second_name is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andSecondNameEqualTo(String value) {
+            addCriterion("second_name =", value, "secondName");
+            return (Criteria) this;
+        }
+
+        public Criteria andSecondNameEqualToColumn(ManageBlock.Column column) {
+            addCriterion(new StringBuilder("second_name = ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andSecondNameNotEqualTo(String value) {
+            addCriterion("second_name <>", value, "secondName");
+            return (Criteria) this;
+        }
+
+        public Criteria andSecondNameNotEqualToColumn(ManageBlock.Column column) {
+            addCriterion(new StringBuilder("second_name <> ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andSecondNameGreaterThan(String value) {
+            addCriterion("second_name >", value, "secondName");
+            return (Criteria) this;
+        }
+
+        public Criteria andSecondNameGreaterThanColumn(ManageBlock.Column column) {
+            addCriterion(new StringBuilder("second_name > ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andSecondNameGreaterThanOrEqualTo(String value) {
+            addCriterion("second_name >=", value, "secondName");
+            return (Criteria) this;
+        }
+
+        public Criteria andSecondNameGreaterThanOrEqualToColumn(ManageBlock.Column column) {
+            addCriterion(new StringBuilder("second_name >= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andSecondNameLessThan(String value) {
+            addCriterion("second_name <", value, "secondName");
+            return (Criteria) this;
+        }
+
+        public Criteria andSecondNameLessThanColumn(ManageBlock.Column column) {
+            addCriterion(new StringBuilder("second_name < ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andSecondNameLessThanOrEqualTo(String value) {
+            addCriterion("second_name <=", value, "secondName");
+            return (Criteria) this;
+        }
+
+        public Criteria andSecondNameLessThanOrEqualToColumn(ManageBlock.Column column) {
+            addCriterion(new StringBuilder("second_name <= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andSecondNameLike(String value) {
+            addCriterion("second_name like", value, "secondName");
+            return (Criteria) this;
+        }
+
+        public Criteria andSecondNameNotLike(String value) {
+            addCriterion("second_name not like", value, "secondName");
+            return (Criteria) this;
+        }
+
+        public Criteria andSecondNameIn(List<String> values) {
+            addCriterion("second_name in", values, "secondName");
+            return (Criteria) this;
+        }
+
+        public Criteria andSecondNameNotIn(List<String> values) {
+            addCriterion("second_name not in", values, "secondName");
+            return (Criteria) this;
+        }
+
+        public Criteria andSecondNameBetween(String value1, String value2) {
+            addCriterion("second_name between", value1, value2, "secondName");
+            return (Criteria) this;
+        }
+
+        public Criteria andSecondNameNotBetween(String value1, String value2) {
+            addCriterion("second_name not between", value1, value2, "secondName");
+            return (Criteria) this;
+        }
+
+        public Criteria andTypeIsNull() {
+            addCriterion("type is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andTypeIsNotNull() {
+            addCriterion("type is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andTypeEqualTo(String value) {
+            addCriterion("type =", value, "type");
+            return (Criteria) this;
+        }
+
+        public Criteria andTypeEqualToColumn(ManageBlock.Column column) {
+            addCriterion(new StringBuilder("type = ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andTypeNotEqualTo(String value) {
+            addCriterion("type <>", value, "type");
+            return (Criteria) this;
+        }
+
+        public Criteria andTypeNotEqualToColumn(ManageBlock.Column column) {
+            addCriterion(new StringBuilder("type <> ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andTypeGreaterThan(String value) {
+            addCriterion("type >", value, "type");
+            return (Criteria) this;
+        }
+
+        public Criteria andTypeGreaterThanColumn(ManageBlock.Column column) {
+            addCriterion(new StringBuilder("type > ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andTypeGreaterThanOrEqualTo(String value) {
+            addCriterion("type >=", value, "type");
+            return (Criteria) this;
+        }
+
+        public Criteria andTypeGreaterThanOrEqualToColumn(ManageBlock.Column column) {
+            addCriterion(new StringBuilder("type >= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andTypeLessThan(String value) {
+            addCriterion("type <", value, "type");
+            return (Criteria) this;
+        }
+
+        public Criteria andTypeLessThanColumn(ManageBlock.Column column) {
+            addCriterion(new StringBuilder("type < ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andTypeLessThanOrEqualTo(String value) {
+            addCriterion("type <=", value, "type");
+            return (Criteria) this;
+        }
+
+        public Criteria andTypeLessThanOrEqualToColumn(ManageBlock.Column column) {
+            addCriterion(new StringBuilder("type <= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andTypeLike(String value) {
+            addCriterion("type like", value, "type");
+            return (Criteria) this;
+        }
+
+        public Criteria andTypeNotLike(String value) {
+            addCriterion("type not like", value, "type");
+            return (Criteria) this;
+        }
+
+        public Criteria andTypeIn(List<String> values) {
+            addCriterion("type in", values, "type");
+            return (Criteria) this;
+        }
+
+        public Criteria andTypeNotIn(List<String> values) {
+            addCriterion("type not in", values, "type");
+            return (Criteria) this;
+        }
+
+        public Criteria andTypeBetween(String value1, String value2) {
+            addCriterion("type between", value1, value2, "type");
+            return (Criteria) this;
+        }
+
+        public Criteria andTypeNotBetween(String value1, String value2) {
+            addCriterion("type not between", value1, value2, "type");
+            return (Criteria) this;
+        }
+
+        public Criteria andWeighIsNull() {
+            addCriterion("weigh is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andWeighIsNotNull() {
+            addCriterion("weigh is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andWeighEqualTo(Integer value) {
+            addCriterion("weigh =", value, "weigh");
+            return (Criteria) this;
+        }
+
+        public Criteria andWeighEqualToColumn(ManageBlock.Column column) {
+            addCriterion(new StringBuilder("weigh = ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andWeighNotEqualTo(Integer value) {
+            addCriterion("weigh <>", value, "weigh");
+            return (Criteria) this;
+        }
+
+        public Criteria andWeighNotEqualToColumn(ManageBlock.Column column) {
+            addCriterion(new StringBuilder("weigh <> ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andWeighGreaterThan(Integer value) {
+            addCriterion("weigh >", value, "weigh");
+            return (Criteria) this;
+        }
+
+        public Criteria andWeighGreaterThanColumn(ManageBlock.Column column) {
+            addCriterion(new StringBuilder("weigh > ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andWeighGreaterThanOrEqualTo(Integer value) {
+            addCriterion("weigh >=", value, "weigh");
+            return (Criteria) this;
+        }
+
+        public Criteria andWeighGreaterThanOrEqualToColumn(ManageBlock.Column column) {
+            addCriterion(new StringBuilder("weigh >= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andWeighLessThan(Integer value) {
+            addCriterion("weigh <", value, "weigh");
+            return (Criteria) this;
+        }
+
+        public Criteria andWeighLessThanColumn(ManageBlock.Column column) {
+            addCriterion(new StringBuilder("weigh < ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andWeighLessThanOrEqualTo(Integer value) {
+            addCriterion("weigh <=", value, "weigh");
+            return (Criteria) this;
+        }
+
+        public Criteria andWeighLessThanOrEqualToColumn(ManageBlock.Column column) {
+            addCriterion(new StringBuilder("weigh <= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andWeighIn(List<Integer> values) {
+            addCriterion("weigh in", values, "weigh");
+            return (Criteria) this;
+        }
+
+        public Criteria andWeighNotIn(List<Integer> values) {
+            addCriterion("weigh not in", values, "weigh");
+            return (Criteria) this;
+        }
+
+        public Criteria andWeighBetween(Integer value1, Integer value2) {
+            addCriterion("weigh between", value1, value2, "weigh");
+            return (Criteria) this;
+        }
+
+        public Criteria andWeighNotBetween(Integer value1, Integer value2) {
+            addCriterion("weigh not between", value1, value2, "weigh");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreatetimeIsNull() {
+            addCriterion("createtime is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreatetimeIsNotNull() {
+            addCriterion("createtime is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreatetimeEqualTo(Integer value) {
+            addCriterion("createtime =", value, "createtime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreatetimeEqualToColumn(ManageBlock.Column column) {
+            addCriterion(new StringBuilder("createtime = ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andCreatetimeNotEqualTo(Integer value) {
+            addCriterion("createtime <>", value, "createtime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreatetimeNotEqualToColumn(ManageBlock.Column column) {
+            addCriterion(new StringBuilder("createtime <> ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andCreatetimeGreaterThan(Integer value) {
+            addCriterion("createtime >", value, "createtime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreatetimeGreaterThanColumn(ManageBlock.Column column) {
+            addCriterion(new StringBuilder("createtime > ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andCreatetimeGreaterThanOrEqualTo(Integer value) {
+            addCriterion("createtime >=", value, "createtime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreatetimeGreaterThanOrEqualToColumn(ManageBlock.Column column) {
+            addCriterion(new StringBuilder("createtime >= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andCreatetimeLessThan(Integer value) {
+            addCriterion("createtime <", value, "createtime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreatetimeLessThanColumn(ManageBlock.Column column) {
+            addCriterion(new StringBuilder("createtime < ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andCreatetimeLessThanOrEqualTo(Integer value) {
+            addCriterion("createtime <=", value, "createtime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreatetimeLessThanOrEqualToColumn(ManageBlock.Column column) {
+            addCriterion(new StringBuilder("createtime <= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andCreatetimeIn(List<Integer> values) {
+            addCriterion("createtime in", values, "createtime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreatetimeNotIn(List<Integer> values) {
+            addCriterion("createtime not in", values, "createtime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreatetimeBetween(Integer value1, Integer value2) {
+            addCriterion("createtime between", value1, value2, "createtime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreatetimeNotBetween(Integer value1, Integer value2) {
+            addCriterion("createtime not between", value1, value2, "createtime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdatetimeIsNull() {
+            addCriterion("updatetime is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdatetimeIsNotNull() {
+            addCriterion("updatetime is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdatetimeEqualTo(Integer value) {
+            addCriterion("updatetime =", value, "updatetime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdatetimeEqualToColumn(ManageBlock.Column column) {
+            addCriterion(new StringBuilder("updatetime = ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdatetimeNotEqualTo(Integer value) {
+            addCriterion("updatetime <>", value, "updatetime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdatetimeNotEqualToColumn(ManageBlock.Column column) {
+            addCriterion(new StringBuilder("updatetime <> ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdatetimeGreaterThan(Integer value) {
+            addCriterion("updatetime >", value, "updatetime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdatetimeGreaterThanColumn(ManageBlock.Column column) {
+            addCriterion(new StringBuilder("updatetime > ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdatetimeGreaterThanOrEqualTo(Integer value) {
+            addCriterion("updatetime >=", value, "updatetime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdatetimeGreaterThanOrEqualToColumn(ManageBlock.Column column) {
+            addCriterion(new StringBuilder("updatetime >= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdatetimeLessThan(Integer value) {
+            addCriterion("updatetime <", value, "updatetime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdatetimeLessThanColumn(ManageBlock.Column column) {
+            addCriterion(new StringBuilder("updatetime < ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdatetimeLessThanOrEqualTo(Integer value) {
+            addCriterion("updatetime <=", value, "updatetime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdatetimeLessThanOrEqualToColumn(ManageBlock.Column column) {
+            addCriterion(new StringBuilder("updatetime <= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdatetimeIn(List<Integer> values) {
+            addCriterion("updatetime in", values, "updatetime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdatetimeNotIn(List<Integer> values) {
+            addCriterion("updatetime not in", values, "updatetime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdatetimeBetween(Integer value1, Integer value2) {
+            addCriterion("updatetime between", value1, value2, "updatetime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdatetimeNotBetween(Integer value1, Integer value2) {
+            addCriterion("updatetime not between", value1, value2, "updatetime");
+            return (Criteria) this;
+        }
+    }
+
+    /**
+     * This class was generated by MyBatis Generator.
+     * This class corresponds to the database table manage_block
+     *
+     * @mbg.generated do_not_delete_during_merge Sun Aug 15 14:43:42 CST 2021
+     */
+    public static class Criteria extends GeneratedCriteria {
+        /**
+         * This field was generated by MyBatis Generator.
+         * This field corresponds to the database table manage_block
+         *
+         * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+         */
+        private ManageBlockExample example;
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table manage_block
+         *
+         * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+         */
+        protected Criteria(ManageBlockExample example) {
+            super();
+            this.example = example;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table manage_block
+         *
+         * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+         */
+        public ManageBlockExample example() {
+            return this.example;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table manage_block
+         *
+         * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+         */
+        @Deprecated
+        public Criteria andIf(boolean ifAdd, ICriteriaAdd add) {
+            if (ifAdd) {
+                add.add(this);
+            }
+            return this;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table manage_block
+         *
+         * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+         */
+        public Criteria when(boolean condition, ICriteriaWhen then) {
+            if (condition) {
+                then.criteria(this);
+            }
+            return this;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table manage_block
+         *
+         * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+         */
+        public Criteria when(boolean condition, ICriteriaWhen then, ICriteriaWhen otherwise) {
+            if (condition) {
+                then.criteria(this);
+            } else {
+                otherwise.criteria(this);
+            }
+            return this;
+        }
+
+        @Deprecated
+        public interface ICriteriaAdd {
+            /**
+             * This method was generated by MyBatis Generator.
+             * This method corresponds to the database table manage_block
+             *
+             * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+             */
+            Criteria add(Criteria add);
+        }
+    }
+
+    /**
+     * This class was generated by MyBatis Generator.
+     * This class corresponds to the database table manage_block
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    public static class Criterion {
+        private String condition;
+
+        private Object value;
+
+        private Object secondValue;
+
+        private boolean noValue;
+
+        private boolean singleValue;
+
+        private boolean betweenValue;
+
+        private boolean listValue;
+
+        private String typeHandler;
+
+        public String getCondition() {
+            return condition;
+        }
+
+        public Object getValue() {
+            return value;
+        }
+
+        public Object getSecondValue() {
+            return secondValue;
+        }
+
+        public boolean isNoValue() {
+            return noValue;
+        }
+
+        public boolean isSingleValue() {
+            return singleValue;
+        }
+
+        public boolean isBetweenValue() {
+            return betweenValue;
+        }
+
+        public boolean isListValue() {
+            return listValue;
+        }
+
+        public String getTypeHandler() {
+            return typeHandler;
+        }
+
+        protected Criterion(String condition) {
+            super();
+            this.condition = condition;
+            this.typeHandler = null;
+            this.noValue = true;
+        }
+
+        protected Criterion(String condition, Object value, String typeHandler) {
+            super();
+            this.condition = condition;
+            this.value = value;
+            this.typeHandler = typeHandler;
+            if (value instanceof List<?>) {
+                this.listValue = true;
+            } else {
+                this.singleValue = true;
+            }
+        }
+
+        protected Criterion(String condition, Object value) {
+            this(condition, value, null);
+        }
+
+        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
+            super();
+            this.condition = condition;
+            this.value = value;
+            this.secondValue = secondValue;
+            this.typeHandler = typeHandler;
+            this.betweenValue = true;
+        }
+
+        protected Criterion(String condition, Object value, Object secondValue) {
+            this(condition, value, secondValue, null);
+        }
+    }
+
+    public interface ICriteriaWhen {
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table manage_block
+         *
+         * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+         */
+        void criteria(Criteria criteria);
+    }
+
+    public interface IExampleWhen {
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table manage_block
+         *
+         * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+         */
+        void example(com.book.server.dao.entity.example.ManageBlockExample example);
+    }
+}

+ 1491 - 0
book-server/src/main/java/com/book/server/dao/entity/example/ManageBlockResourceExample.java

@@ -0,0 +1,1491 @@
+package com.book.server.dao.entity.example;
+
+import com.book.server.dao.entity.ManageBlockResource;
+import java.util.ArrayList;
+import java.util.List;
+
+public class ManageBlockResourceExample {
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table manage_block_resource
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    protected String orderByClause;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table manage_block_resource
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    protected boolean distinct;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table manage_block_resource
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    protected List<Criteria> oredCriteria;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table manage_block_resource
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    protected Integer offset;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table manage_block_resource
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    protected Integer rows;
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table manage_block_resource
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    public ManageBlockResourceExample() {
+        oredCriteria = new ArrayList<Criteria>();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table manage_block_resource
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    public void setOrderByClause(String orderByClause) {
+        this.orderByClause = orderByClause;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table manage_block_resource
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    public String getOrderByClause() {
+        return orderByClause;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table manage_block_resource
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    public void setDistinct(boolean distinct) {
+        this.distinct = distinct;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table manage_block_resource
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    public boolean isDistinct() {
+        return distinct;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table manage_block_resource
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    public List<Criteria> getOredCriteria() {
+        return oredCriteria;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table manage_block_resource
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    public void or(Criteria criteria) {
+        oredCriteria.add(criteria);
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table manage_block_resource
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    public Criteria or() {
+        Criteria criteria = createCriteriaInternal();
+        oredCriteria.add(criteria);
+        return criteria;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table manage_block_resource
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    public ManageBlockResourceExample orderBy(String orderByClause) {
+        this.setOrderByClause(orderByClause);
+        return this;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table manage_block_resource
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    public ManageBlockResourceExample orderBy(String ... orderByClauses) {
+        StringBuffer sb = new StringBuffer();
+        for (int i = 0; i < orderByClauses.length; i++) {
+            sb.append(orderByClauses[i]);
+            if (i < orderByClauses.length - 1) {
+                sb.append(" , ");
+            }
+        }
+        this.setOrderByClause(sb.toString());
+        return this;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table manage_block_resource
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    public Criteria createCriteria() {
+        Criteria criteria = createCriteriaInternal();
+        if (oredCriteria.size() == 0) {
+            oredCriteria.add(criteria);
+        }
+        return criteria;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table manage_block_resource
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    protected Criteria createCriteriaInternal() {
+        Criteria criteria = new Criteria(this);
+        return criteria;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table manage_block_resource
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    public void clear() {
+        oredCriteria.clear();
+        orderByClause = null;
+        distinct = false;
+        rows = null;
+        offset = null;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table manage_block_resource
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    public void setOffset(Integer offset) {
+        this.offset = offset;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table manage_block_resource
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    public Integer getOffset() {
+        return this.offset;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table manage_block_resource
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    public void setRows(Integer rows) {
+        this.rows = rows;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table manage_block_resource
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    public Integer getRows() {
+        return this.rows;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table manage_block_resource
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    public ManageBlockResourceExample limit(Integer rows) {
+        this.rows = rows;
+        return this;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table manage_block_resource
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    public ManageBlockResourceExample limit(Integer offset, Integer rows) {
+        this.offset = offset;
+        this.rows = rows;
+        return this;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table manage_block_resource
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    public ManageBlockResourceExample page(Integer page, Integer pageSize) {
+        this.offset = page * pageSize;
+        this.rows = pageSize;
+        return this;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table manage_block_resource
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    public static Criteria newAndCreateCriteria() {
+        ManageBlockResourceExample example = new ManageBlockResourceExample();
+        return example.createCriteria();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table manage_block_resource
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    public ManageBlockResourceExample when(boolean condition, IExampleWhen then) {
+        if (condition) {
+            then.example(this);
+        }
+        return this;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table manage_block_resource
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    public ManageBlockResourceExample when(boolean condition, IExampleWhen then, IExampleWhen otherwise) {
+        if (condition) {
+            then.example(this);
+        } else {
+            otherwise.example(this);
+        }
+        return this;
+    }
+
+    /**
+     * This class was generated by MyBatis Generator.
+     * This class corresponds to the database table manage_block_resource
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    protected abstract static class GeneratedCriteria {
+        protected List<Criterion> criteria;
+
+        protected GeneratedCriteria() {
+            super();
+            criteria = new ArrayList<Criterion>();
+        }
+
+        public boolean isValid() {
+            return criteria.size() > 0;
+        }
+
+        public List<Criterion> getAllCriteria() {
+            return criteria;
+        }
+
+        public List<Criterion> getCriteria() {
+            return criteria;
+        }
+
+        protected void addCriterion(String condition) {
+            if (condition == null) {
+                throw new RuntimeException("Value for condition cannot be null");
+            }
+            criteria.add(new Criterion(condition));
+        }
+
+        protected void addCriterion(String condition, Object value, String property) {
+            if (value == null) {
+                throw new RuntimeException("Value for " + property + " cannot be null");
+            }
+            criteria.add(new Criterion(condition, value));
+        }
+
+        protected void addCriterion(String condition, Object value1, Object value2, String property) {
+            if (value1 == null || value2 == null) {
+                throw new RuntimeException("Between values for " + property + " cannot be null");
+            }
+            criteria.add(new Criterion(condition, value1, value2));
+        }
+
+        public Criteria andIdIsNull() {
+            addCriterion("id is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdIsNotNull() {
+            addCriterion("id is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdEqualTo(Integer value) {
+            addCriterion("id =", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdEqualToColumn(ManageBlockResource.Column column) {
+            addCriterion(new StringBuilder("id = ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andIdNotEqualTo(Integer value) {
+            addCriterion("id <>", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdNotEqualToColumn(ManageBlockResource.Column column) {
+            addCriterion(new StringBuilder("id <> ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andIdGreaterThan(Integer value) {
+            addCriterion("id >", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdGreaterThanColumn(ManageBlockResource.Column column) {
+            addCriterion(new StringBuilder("id > ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
+            addCriterion("id >=", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdGreaterThanOrEqualToColumn(ManageBlockResource.Column column) {
+            addCriterion(new StringBuilder("id >= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andIdLessThan(Integer value) {
+            addCriterion("id <", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdLessThanColumn(ManageBlockResource.Column column) {
+            addCriterion(new StringBuilder("id < ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andIdLessThanOrEqualTo(Integer value) {
+            addCriterion("id <=", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdLessThanOrEqualToColumn(ManageBlockResource.Column column) {
+            addCriterion(new StringBuilder("id <= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andIdIn(List<Integer> values) {
+            addCriterion("id in", values, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdNotIn(List<Integer> values) {
+            addCriterion("id not in", values, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdBetween(Integer value1, Integer value2) {
+            addCriterion("id between", value1, value2, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdNotBetween(Integer value1, Integer value2) {
+            addCriterion("id not between", value1, value2, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andBlockIdIsNull() {
+            addCriterion("block_id is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andBlockIdIsNotNull() {
+            addCriterion("block_id is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andBlockIdEqualTo(Integer value) {
+            addCriterion("block_id =", value, "blockId");
+            return (Criteria) this;
+        }
+
+        public Criteria andBlockIdEqualToColumn(ManageBlockResource.Column column) {
+            addCriterion(new StringBuilder("block_id = ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andBlockIdNotEqualTo(Integer value) {
+            addCriterion("block_id <>", value, "blockId");
+            return (Criteria) this;
+        }
+
+        public Criteria andBlockIdNotEqualToColumn(ManageBlockResource.Column column) {
+            addCriterion(new StringBuilder("block_id <> ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andBlockIdGreaterThan(Integer value) {
+            addCriterion("block_id >", value, "blockId");
+            return (Criteria) this;
+        }
+
+        public Criteria andBlockIdGreaterThanColumn(ManageBlockResource.Column column) {
+            addCriterion(new StringBuilder("block_id > ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andBlockIdGreaterThanOrEqualTo(Integer value) {
+            addCriterion("block_id >=", value, "blockId");
+            return (Criteria) this;
+        }
+
+        public Criteria andBlockIdGreaterThanOrEqualToColumn(ManageBlockResource.Column column) {
+            addCriterion(new StringBuilder("block_id >= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andBlockIdLessThan(Integer value) {
+            addCriterion("block_id <", value, "blockId");
+            return (Criteria) this;
+        }
+
+        public Criteria andBlockIdLessThanColumn(ManageBlockResource.Column column) {
+            addCriterion(new StringBuilder("block_id < ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andBlockIdLessThanOrEqualTo(Integer value) {
+            addCriterion("block_id <=", value, "blockId");
+            return (Criteria) this;
+        }
+
+        public Criteria andBlockIdLessThanOrEqualToColumn(ManageBlockResource.Column column) {
+            addCriterion(new StringBuilder("block_id <= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andBlockIdIn(List<Integer> values) {
+            addCriterion("block_id in", values, "blockId");
+            return (Criteria) this;
+        }
+
+        public Criteria andBlockIdNotIn(List<Integer> values) {
+            addCriterion("block_id not in", values, "blockId");
+            return (Criteria) this;
+        }
+
+        public Criteria andBlockIdBetween(Integer value1, Integer value2) {
+            addCriterion("block_id between", value1, value2, "blockId");
+            return (Criteria) this;
+        }
+
+        public Criteria andBlockIdNotBetween(Integer value1, Integer value2) {
+            addCriterion("block_id not between", value1, value2, "blockId");
+            return (Criteria) this;
+        }
+
+        public Criteria andTypeIsNull() {
+            addCriterion("type is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andTypeIsNotNull() {
+            addCriterion("type is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andTypeEqualTo(String value) {
+            addCriterion("type =", value, "type");
+            return (Criteria) this;
+        }
+
+        public Criteria andTypeEqualToColumn(ManageBlockResource.Column column) {
+            addCriterion(new StringBuilder("type = ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andTypeNotEqualTo(String value) {
+            addCriterion("type <>", value, "type");
+            return (Criteria) this;
+        }
+
+        public Criteria andTypeNotEqualToColumn(ManageBlockResource.Column column) {
+            addCriterion(new StringBuilder("type <> ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andTypeGreaterThan(String value) {
+            addCriterion("type >", value, "type");
+            return (Criteria) this;
+        }
+
+        public Criteria andTypeGreaterThanColumn(ManageBlockResource.Column column) {
+            addCriterion(new StringBuilder("type > ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andTypeGreaterThanOrEqualTo(String value) {
+            addCriterion("type >=", value, "type");
+            return (Criteria) this;
+        }
+
+        public Criteria andTypeGreaterThanOrEqualToColumn(ManageBlockResource.Column column) {
+            addCriterion(new StringBuilder("type >= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andTypeLessThan(String value) {
+            addCriterion("type <", value, "type");
+            return (Criteria) this;
+        }
+
+        public Criteria andTypeLessThanColumn(ManageBlockResource.Column column) {
+            addCriterion(new StringBuilder("type < ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andTypeLessThanOrEqualTo(String value) {
+            addCriterion("type <=", value, "type");
+            return (Criteria) this;
+        }
+
+        public Criteria andTypeLessThanOrEqualToColumn(ManageBlockResource.Column column) {
+            addCriterion(new StringBuilder("type <= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andTypeLike(String value) {
+            addCriterion("type like", value, "type");
+            return (Criteria) this;
+        }
+
+        public Criteria andTypeNotLike(String value) {
+            addCriterion("type not like", value, "type");
+            return (Criteria) this;
+        }
+
+        public Criteria andTypeIn(List<String> values) {
+            addCriterion("type in", values, "type");
+            return (Criteria) this;
+        }
+
+        public Criteria andTypeNotIn(List<String> values) {
+            addCriterion("type not in", values, "type");
+            return (Criteria) this;
+        }
+
+        public Criteria andTypeBetween(String value1, String value2) {
+            addCriterion("type between", value1, value2, "type");
+            return (Criteria) this;
+        }
+
+        public Criteria andTypeNotBetween(String value1, String value2) {
+            addCriterion("type not between", value1, value2, "type");
+            return (Criteria) this;
+        }
+
+        public Criteria andImageIsNull() {
+            addCriterion("image is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andImageIsNotNull() {
+            addCriterion("image is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andImageEqualTo(String value) {
+            addCriterion("image =", value, "image");
+            return (Criteria) this;
+        }
+
+        public Criteria andImageEqualToColumn(ManageBlockResource.Column column) {
+            addCriterion(new StringBuilder("image = ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andImageNotEqualTo(String value) {
+            addCriterion("image <>", value, "image");
+            return (Criteria) this;
+        }
+
+        public Criteria andImageNotEqualToColumn(ManageBlockResource.Column column) {
+            addCriterion(new StringBuilder("image <> ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andImageGreaterThan(String value) {
+            addCriterion("image >", value, "image");
+            return (Criteria) this;
+        }
+
+        public Criteria andImageGreaterThanColumn(ManageBlockResource.Column column) {
+            addCriterion(new StringBuilder("image > ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andImageGreaterThanOrEqualTo(String value) {
+            addCriterion("image >=", value, "image");
+            return (Criteria) this;
+        }
+
+        public Criteria andImageGreaterThanOrEqualToColumn(ManageBlockResource.Column column) {
+            addCriterion(new StringBuilder("image >= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andImageLessThan(String value) {
+            addCriterion("image <", value, "image");
+            return (Criteria) this;
+        }
+
+        public Criteria andImageLessThanColumn(ManageBlockResource.Column column) {
+            addCriterion(new StringBuilder("image < ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andImageLessThanOrEqualTo(String value) {
+            addCriterion("image <=", value, "image");
+            return (Criteria) this;
+        }
+
+        public Criteria andImageLessThanOrEqualToColumn(ManageBlockResource.Column column) {
+            addCriterion(new StringBuilder("image <= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andImageLike(String value) {
+            addCriterion("image like", value, "image");
+            return (Criteria) this;
+        }
+
+        public Criteria andImageNotLike(String value) {
+            addCriterion("image not like", value, "image");
+            return (Criteria) this;
+        }
+
+        public Criteria andImageIn(List<String> values) {
+            addCriterion("image in", values, "image");
+            return (Criteria) this;
+        }
+
+        public Criteria andImageNotIn(List<String> values) {
+            addCriterion("image not in", values, "image");
+            return (Criteria) this;
+        }
+
+        public Criteria andImageBetween(String value1, String value2) {
+            addCriterion("image between", value1, value2, "image");
+            return (Criteria) this;
+        }
+
+        public Criteria andImageNotBetween(String value1, String value2) {
+            addCriterion("image not between", value1, value2, "image");
+            return (Criteria) this;
+        }
+
+        public Criteria andBookIdIsNull() {
+            addCriterion("book_id is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andBookIdIsNotNull() {
+            addCriterion("book_id is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andBookIdEqualTo(Long value) {
+            addCriterion("book_id =", value, "bookId");
+            return (Criteria) this;
+        }
+
+        public Criteria andBookIdEqualToColumn(ManageBlockResource.Column column) {
+            addCriterion(new StringBuilder("book_id = ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andBookIdNotEqualTo(Long value) {
+            addCriterion("book_id <>", value, "bookId");
+            return (Criteria) this;
+        }
+
+        public Criteria andBookIdNotEqualToColumn(ManageBlockResource.Column column) {
+            addCriterion(new StringBuilder("book_id <> ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andBookIdGreaterThan(Long value) {
+            addCriterion("book_id >", value, "bookId");
+            return (Criteria) this;
+        }
+
+        public Criteria andBookIdGreaterThanColumn(ManageBlockResource.Column column) {
+            addCriterion(new StringBuilder("book_id > ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andBookIdGreaterThanOrEqualTo(Long value) {
+            addCriterion("book_id >=", value, "bookId");
+            return (Criteria) this;
+        }
+
+        public Criteria andBookIdGreaterThanOrEqualToColumn(ManageBlockResource.Column column) {
+            addCriterion(new StringBuilder("book_id >= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andBookIdLessThan(Long value) {
+            addCriterion("book_id <", value, "bookId");
+            return (Criteria) this;
+        }
+
+        public Criteria andBookIdLessThanColumn(ManageBlockResource.Column column) {
+            addCriterion(new StringBuilder("book_id < ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andBookIdLessThanOrEqualTo(Long value) {
+            addCriterion("book_id <=", value, "bookId");
+            return (Criteria) this;
+        }
+
+        public Criteria andBookIdLessThanOrEqualToColumn(ManageBlockResource.Column column) {
+            addCriterion(new StringBuilder("book_id <= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andBookIdIn(List<Long> values) {
+            addCriterion("book_id in", values, "bookId");
+            return (Criteria) this;
+        }
+
+        public Criteria andBookIdNotIn(List<Long> values) {
+            addCriterion("book_id not in", values, "bookId");
+            return (Criteria) this;
+        }
+
+        public Criteria andBookIdBetween(Long value1, Long value2) {
+            addCriterion("book_id between", value1, value2, "bookId");
+            return (Criteria) this;
+        }
+
+        public Criteria andBookIdNotBetween(Long value1, Long value2) {
+            addCriterion("book_id not between", value1, value2, "bookId");
+            return (Criteria) this;
+        }
+
+        public Criteria andUrlIsNull() {
+            addCriterion("url is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andUrlIsNotNull() {
+            addCriterion("url is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andUrlEqualTo(String value) {
+            addCriterion("url =", value, "url");
+            return (Criteria) this;
+        }
+
+        public Criteria andUrlEqualToColumn(ManageBlockResource.Column column) {
+            addCriterion(new StringBuilder("url = ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andUrlNotEqualTo(String value) {
+            addCriterion("url <>", value, "url");
+            return (Criteria) this;
+        }
+
+        public Criteria andUrlNotEqualToColumn(ManageBlockResource.Column column) {
+            addCriterion(new StringBuilder("url <> ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andUrlGreaterThan(String value) {
+            addCriterion("url >", value, "url");
+            return (Criteria) this;
+        }
+
+        public Criteria andUrlGreaterThanColumn(ManageBlockResource.Column column) {
+            addCriterion(new StringBuilder("url > ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andUrlGreaterThanOrEqualTo(String value) {
+            addCriterion("url >=", value, "url");
+            return (Criteria) this;
+        }
+
+        public Criteria andUrlGreaterThanOrEqualToColumn(ManageBlockResource.Column column) {
+            addCriterion(new StringBuilder("url >= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andUrlLessThan(String value) {
+            addCriterion("url <", value, "url");
+            return (Criteria) this;
+        }
+
+        public Criteria andUrlLessThanColumn(ManageBlockResource.Column column) {
+            addCriterion(new StringBuilder("url < ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andUrlLessThanOrEqualTo(String value) {
+            addCriterion("url <=", value, "url");
+            return (Criteria) this;
+        }
+
+        public Criteria andUrlLessThanOrEqualToColumn(ManageBlockResource.Column column) {
+            addCriterion(new StringBuilder("url <= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andUrlLike(String value) {
+            addCriterion("url like", value, "url");
+            return (Criteria) this;
+        }
+
+        public Criteria andUrlNotLike(String value) {
+            addCriterion("url not like", value, "url");
+            return (Criteria) this;
+        }
+
+        public Criteria andUrlIn(List<String> values) {
+            addCriterion("url in", values, "url");
+            return (Criteria) this;
+        }
+
+        public Criteria andUrlNotIn(List<String> values) {
+            addCriterion("url not in", values, "url");
+            return (Criteria) this;
+        }
+
+        public Criteria andUrlBetween(String value1, String value2) {
+            addCriterion("url between", value1, value2, "url");
+            return (Criteria) this;
+        }
+
+        public Criteria andUrlNotBetween(String value1, String value2) {
+            addCriterion("url not between", value1, value2, "url");
+            return (Criteria) this;
+        }
+
+        public Criteria andWeighIsNull() {
+            addCriterion("weigh is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andWeighIsNotNull() {
+            addCriterion("weigh is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andWeighEqualTo(Integer value) {
+            addCriterion("weigh =", value, "weigh");
+            return (Criteria) this;
+        }
+
+        public Criteria andWeighEqualToColumn(ManageBlockResource.Column column) {
+            addCriterion(new StringBuilder("weigh = ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andWeighNotEqualTo(Integer value) {
+            addCriterion("weigh <>", value, "weigh");
+            return (Criteria) this;
+        }
+
+        public Criteria andWeighNotEqualToColumn(ManageBlockResource.Column column) {
+            addCriterion(new StringBuilder("weigh <> ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andWeighGreaterThan(Integer value) {
+            addCriterion("weigh >", value, "weigh");
+            return (Criteria) this;
+        }
+
+        public Criteria andWeighGreaterThanColumn(ManageBlockResource.Column column) {
+            addCriterion(new StringBuilder("weigh > ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andWeighGreaterThanOrEqualTo(Integer value) {
+            addCriterion("weigh >=", value, "weigh");
+            return (Criteria) this;
+        }
+
+        public Criteria andWeighGreaterThanOrEqualToColumn(ManageBlockResource.Column column) {
+            addCriterion(new StringBuilder("weigh >= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andWeighLessThan(Integer value) {
+            addCriterion("weigh <", value, "weigh");
+            return (Criteria) this;
+        }
+
+        public Criteria andWeighLessThanColumn(ManageBlockResource.Column column) {
+            addCriterion(new StringBuilder("weigh < ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andWeighLessThanOrEqualTo(Integer value) {
+            addCriterion("weigh <=", value, "weigh");
+            return (Criteria) this;
+        }
+
+        public Criteria andWeighLessThanOrEqualToColumn(ManageBlockResource.Column column) {
+            addCriterion(new StringBuilder("weigh <= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andWeighIn(List<Integer> values) {
+            addCriterion("weigh in", values, "weigh");
+            return (Criteria) this;
+        }
+
+        public Criteria andWeighNotIn(List<Integer> values) {
+            addCriterion("weigh not in", values, "weigh");
+            return (Criteria) this;
+        }
+
+        public Criteria andWeighBetween(Integer value1, Integer value2) {
+            addCriterion("weigh between", value1, value2, "weigh");
+            return (Criteria) this;
+        }
+
+        public Criteria andWeighNotBetween(Integer value1, Integer value2) {
+            addCriterion("weigh not between", value1, value2, "weigh");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreatetimeIsNull() {
+            addCriterion("createtime is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreatetimeIsNotNull() {
+            addCriterion("createtime is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreatetimeEqualTo(Integer value) {
+            addCriterion("createtime =", value, "createtime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreatetimeEqualToColumn(ManageBlockResource.Column column) {
+            addCriterion(new StringBuilder("createtime = ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andCreatetimeNotEqualTo(Integer value) {
+            addCriterion("createtime <>", value, "createtime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreatetimeNotEqualToColumn(ManageBlockResource.Column column) {
+            addCriterion(new StringBuilder("createtime <> ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andCreatetimeGreaterThan(Integer value) {
+            addCriterion("createtime >", value, "createtime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreatetimeGreaterThanColumn(ManageBlockResource.Column column) {
+            addCriterion(new StringBuilder("createtime > ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andCreatetimeGreaterThanOrEqualTo(Integer value) {
+            addCriterion("createtime >=", value, "createtime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreatetimeGreaterThanOrEqualToColumn(ManageBlockResource.Column column) {
+            addCriterion(new StringBuilder("createtime >= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andCreatetimeLessThan(Integer value) {
+            addCriterion("createtime <", value, "createtime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreatetimeLessThanColumn(ManageBlockResource.Column column) {
+            addCriterion(new StringBuilder("createtime < ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andCreatetimeLessThanOrEqualTo(Integer value) {
+            addCriterion("createtime <=", value, "createtime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreatetimeLessThanOrEqualToColumn(ManageBlockResource.Column column) {
+            addCriterion(new StringBuilder("createtime <= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andCreatetimeIn(List<Integer> values) {
+            addCriterion("createtime in", values, "createtime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreatetimeNotIn(List<Integer> values) {
+            addCriterion("createtime not in", values, "createtime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreatetimeBetween(Integer value1, Integer value2) {
+            addCriterion("createtime between", value1, value2, "createtime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreatetimeNotBetween(Integer value1, Integer value2) {
+            addCriterion("createtime not between", value1, value2, "createtime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdatetimeIsNull() {
+            addCriterion("updatetime is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdatetimeIsNotNull() {
+            addCriterion("updatetime is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdatetimeEqualTo(Integer value) {
+            addCriterion("updatetime =", value, "updatetime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdatetimeEqualToColumn(ManageBlockResource.Column column) {
+            addCriterion(new StringBuilder("updatetime = ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdatetimeNotEqualTo(Integer value) {
+            addCriterion("updatetime <>", value, "updatetime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdatetimeNotEqualToColumn(ManageBlockResource.Column column) {
+            addCriterion(new StringBuilder("updatetime <> ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdatetimeGreaterThan(Integer value) {
+            addCriterion("updatetime >", value, "updatetime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdatetimeGreaterThanColumn(ManageBlockResource.Column column) {
+            addCriterion(new StringBuilder("updatetime > ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdatetimeGreaterThanOrEqualTo(Integer value) {
+            addCriterion("updatetime >=", value, "updatetime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdatetimeGreaterThanOrEqualToColumn(ManageBlockResource.Column column) {
+            addCriterion(new StringBuilder("updatetime >= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdatetimeLessThan(Integer value) {
+            addCriterion("updatetime <", value, "updatetime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdatetimeLessThanColumn(ManageBlockResource.Column column) {
+            addCriterion(new StringBuilder("updatetime < ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdatetimeLessThanOrEqualTo(Integer value) {
+            addCriterion("updatetime <=", value, "updatetime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdatetimeLessThanOrEqualToColumn(ManageBlockResource.Column column) {
+            addCriterion(new StringBuilder("updatetime <= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdatetimeIn(List<Integer> values) {
+            addCriterion("updatetime in", values, "updatetime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdatetimeNotIn(List<Integer> values) {
+            addCriterion("updatetime not in", values, "updatetime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdatetimeBetween(Integer value1, Integer value2) {
+            addCriterion("updatetime between", value1, value2, "updatetime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdatetimeNotBetween(Integer value1, Integer value2) {
+            addCriterion("updatetime not between", value1, value2, "updatetime");
+            return (Criteria) this;
+        }
+
+        public Criteria andSpecialIdIsNull() {
+            addCriterion("special_id is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andSpecialIdIsNotNull() {
+            addCriterion("special_id is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andSpecialIdEqualTo(Integer value) {
+            addCriterion("special_id =", value, "specialId");
+            return (Criteria) this;
+        }
+
+        public Criteria andSpecialIdEqualToColumn(ManageBlockResource.Column column) {
+            addCriterion(new StringBuilder("special_id = ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andSpecialIdNotEqualTo(Integer value) {
+            addCriterion("special_id <>", value, "specialId");
+            return (Criteria) this;
+        }
+
+        public Criteria andSpecialIdNotEqualToColumn(ManageBlockResource.Column column) {
+            addCriterion(new StringBuilder("special_id <> ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andSpecialIdGreaterThan(Integer value) {
+            addCriterion("special_id >", value, "specialId");
+            return (Criteria) this;
+        }
+
+        public Criteria andSpecialIdGreaterThanColumn(ManageBlockResource.Column column) {
+            addCriterion(new StringBuilder("special_id > ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andSpecialIdGreaterThanOrEqualTo(Integer value) {
+            addCriterion("special_id >=", value, "specialId");
+            return (Criteria) this;
+        }
+
+        public Criteria andSpecialIdGreaterThanOrEqualToColumn(ManageBlockResource.Column column) {
+            addCriterion(new StringBuilder("special_id >= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andSpecialIdLessThan(Integer value) {
+            addCriterion("special_id <", value, "specialId");
+            return (Criteria) this;
+        }
+
+        public Criteria andSpecialIdLessThanColumn(ManageBlockResource.Column column) {
+            addCriterion(new StringBuilder("special_id < ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andSpecialIdLessThanOrEqualTo(Integer value) {
+            addCriterion("special_id <=", value, "specialId");
+            return (Criteria) this;
+        }
+
+        public Criteria andSpecialIdLessThanOrEqualToColumn(ManageBlockResource.Column column) {
+            addCriterion(new StringBuilder("special_id <= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andSpecialIdIn(List<Integer> values) {
+            addCriterion("special_id in", values, "specialId");
+            return (Criteria) this;
+        }
+
+        public Criteria andSpecialIdNotIn(List<Integer> values) {
+            addCriterion("special_id not in", values, "specialId");
+            return (Criteria) this;
+        }
+
+        public Criteria andSpecialIdBetween(Integer value1, Integer value2) {
+            addCriterion("special_id between", value1, value2, "specialId");
+            return (Criteria) this;
+        }
+
+        public Criteria andSpecialIdNotBetween(Integer value1, Integer value2) {
+            addCriterion("special_id not between", value1, value2, "specialId");
+            return (Criteria) this;
+        }
+    }
+
+    /**
+     * This class was generated by MyBatis Generator.
+     * This class corresponds to the database table manage_block_resource
+     *
+     * @mbg.generated do_not_delete_during_merge Sun Aug 15 14:43:42 CST 2021
+     */
+    public static class Criteria extends GeneratedCriteria {
+        /**
+         * This field was generated by MyBatis Generator.
+         * This field corresponds to the database table manage_block_resource
+         *
+         * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+         */
+        private ManageBlockResourceExample example;
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table manage_block_resource
+         *
+         * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+         */
+        protected Criteria(ManageBlockResourceExample example) {
+            super();
+            this.example = example;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table manage_block_resource
+         *
+         * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+         */
+        public ManageBlockResourceExample example() {
+            return this.example;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table manage_block_resource
+         *
+         * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+         */
+        @Deprecated
+        public Criteria andIf(boolean ifAdd, ICriteriaAdd add) {
+            if (ifAdd) {
+                add.add(this);
+            }
+            return this;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table manage_block_resource
+         *
+         * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+         */
+        public Criteria when(boolean condition, ICriteriaWhen then) {
+            if (condition) {
+                then.criteria(this);
+            }
+            return this;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table manage_block_resource
+         *
+         * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+         */
+        public Criteria when(boolean condition, ICriteriaWhen then, ICriteriaWhen otherwise) {
+            if (condition) {
+                then.criteria(this);
+            } else {
+                otherwise.criteria(this);
+            }
+            return this;
+        }
+
+        @Deprecated
+        public interface ICriteriaAdd {
+            /**
+             * This method was generated by MyBatis Generator.
+             * This method corresponds to the database table manage_block_resource
+             *
+             * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+             */
+            Criteria add(Criteria add);
+        }
+    }
+
+    /**
+     * This class was generated by MyBatis Generator.
+     * This class corresponds to the database table manage_block_resource
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    public static class Criterion {
+        private String condition;
+
+        private Object value;
+
+        private Object secondValue;
+
+        private boolean noValue;
+
+        private boolean singleValue;
+
+        private boolean betweenValue;
+
+        private boolean listValue;
+
+        private String typeHandler;
+
+        public String getCondition() {
+            return condition;
+        }
+
+        public Object getValue() {
+            return value;
+        }
+
+        public Object getSecondValue() {
+            return secondValue;
+        }
+
+        public boolean isNoValue() {
+            return noValue;
+        }
+
+        public boolean isSingleValue() {
+            return singleValue;
+        }
+
+        public boolean isBetweenValue() {
+            return betweenValue;
+        }
+
+        public boolean isListValue() {
+            return listValue;
+        }
+
+        public String getTypeHandler() {
+            return typeHandler;
+        }
+
+        protected Criterion(String condition) {
+            super();
+            this.condition = condition;
+            this.typeHandler = null;
+            this.noValue = true;
+        }
+
+        protected Criterion(String condition, Object value, String typeHandler) {
+            super();
+            this.condition = condition;
+            this.value = value;
+            this.typeHandler = typeHandler;
+            if (value instanceof List<?>) {
+                this.listValue = true;
+            } else {
+                this.singleValue = true;
+            }
+        }
+
+        protected Criterion(String condition, Object value) {
+            this(condition, value, null);
+        }
+
+        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
+            super();
+            this.condition = condition;
+            this.value = value;
+            this.secondValue = secondValue;
+            this.typeHandler = typeHandler;
+            this.betweenValue = true;
+        }
+
+        protected Criterion(String condition, Object value, Object secondValue) {
+            this(condition, value, secondValue, null);
+        }
+    }
+
+    public interface ICriteriaWhen {
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table manage_block_resource
+         *
+         * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+         */
+        void criteria(Criteria criteria);
+    }
+
+    public interface IExampleWhen {
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table manage_block_resource
+         *
+         * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+         */
+        void example(com.book.server.dao.entity.example.ManageBlockResourceExample example);
+    }
+}

+ 164 - 0
book-server/src/main/java/com/book/server/dao/mapper/ManageBlockMapper.java

@@ -0,0 +1,164 @@
+package com.book.server.dao.mapper;
+
+import com.book.server.dao.entity.ManageBlock;
+import com.book.server.dao.entity.example.ManageBlockExample;
+import java.util.List;
+import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
+import org.springframework.stereotype.Repository;
+
+@Mapper
+@Repository
+public interface ManageBlockMapper {
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table manage_block
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    long countByExample(ManageBlockExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table manage_block
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    int deleteByExample(ManageBlockExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table manage_block
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    int deleteByPrimaryKey(Integer id);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table manage_block
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    int insert(ManageBlock record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table manage_block
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    int insertSelective(@Param("record") ManageBlock record, @Param("selective") ManageBlock.Column ... selective);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table manage_block
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    ManageBlock selectOneByExample(ManageBlockExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table manage_block
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    ManageBlock selectOneByExampleSelective(@Param("example") ManageBlockExample example, @Param("selective") ManageBlock.Column ... selective);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table manage_block
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    List<ManageBlock> selectByExampleSelective(@Param("example") ManageBlockExample example, @Param("selective") ManageBlock.Column ... selective);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table manage_block
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    List<ManageBlock> selectByExample(ManageBlockExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table manage_block
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    ManageBlock selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") ManageBlock.Column ... selective);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table manage_block
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    ManageBlock selectByPrimaryKey(Integer id);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table manage_block
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    int updateByExampleSelective(@Param("record") ManageBlock record, @Param("example") ManageBlockExample example, @Param("selective") ManageBlock.Column ... selective);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table manage_block
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    int updateByExample(@Param("record") ManageBlock record, @Param("example") ManageBlockExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table manage_block
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    int updateByPrimaryKeySelective(@Param("record") ManageBlock record, @Param("selective") ManageBlock.Column ... selective);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table manage_block
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    int updateByPrimaryKey(ManageBlock record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table manage_block
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    int batchInsert(@Param("list") List<ManageBlock> list);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table manage_block
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    int batchInsertSelective(@Param("list") List<ManageBlock> list, @Param("selective") ManageBlock.Column ... selective);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table manage_block
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    int upsert(ManageBlock record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table manage_block
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    int upsertSelective(@Param("record") ManageBlock record, @Param("selective") ManageBlock.Column ... selective);
+}

+ 164 - 0
book-server/src/main/java/com/book/server/dao/mapper/ManageBlockResourceMapper.java

@@ -0,0 +1,164 @@
+package com.book.server.dao.mapper;
+
+import com.book.server.dao.entity.ManageBlockResource;
+import com.book.server.dao.entity.example.ManageBlockResourceExample;
+import java.util.List;
+import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
+import org.springframework.stereotype.Repository;
+
+@Mapper
+@Repository
+public interface ManageBlockResourceMapper {
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table manage_block_resource
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    long countByExample(ManageBlockResourceExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table manage_block_resource
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    int deleteByExample(ManageBlockResourceExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table manage_block_resource
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    int deleteByPrimaryKey(Integer id);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table manage_block_resource
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    int insert(ManageBlockResource record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table manage_block_resource
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    int insertSelective(@Param("record") ManageBlockResource record, @Param("selective") ManageBlockResource.Column ... selective);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table manage_block_resource
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    ManageBlockResource selectOneByExample(ManageBlockResourceExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table manage_block_resource
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    ManageBlockResource selectOneByExampleSelective(@Param("example") ManageBlockResourceExample example, @Param("selective") ManageBlockResource.Column ... selective);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table manage_block_resource
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    List<ManageBlockResource> selectByExampleSelective(@Param("example") ManageBlockResourceExample example, @Param("selective") ManageBlockResource.Column ... selective);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table manage_block_resource
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    List<ManageBlockResource> selectByExample(ManageBlockResourceExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table manage_block_resource
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    ManageBlockResource selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") ManageBlockResource.Column ... selective);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table manage_block_resource
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    ManageBlockResource selectByPrimaryKey(Integer id);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table manage_block_resource
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    int updateByExampleSelective(@Param("record") ManageBlockResource record, @Param("example") ManageBlockResourceExample example, @Param("selective") ManageBlockResource.Column ... selective);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table manage_block_resource
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    int updateByExample(@Param("record") ManageBlockResource record, @Param("example") ManageBlockResourceExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table manage_block_resource
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    int updateByPrimaryKeySelective(@Param("record") ManageBlockResource record, @Param("selective") ManageBlockResource.Column ... selective);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table manage_block_resource
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    int updateByPrimaryKey(ManageBlockResource record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table manage_block_resource
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    int batchInsert(@Param("list") List<ManageBlockResource> list);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table manage_block_resource
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    int batchInsertSelective(@Param("list") List<ManageBlockResource> list, @Param("selective") ManageBlockResource.Column ... selective);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table manage_block_resource
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    int upsert(ManageBlockResource record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table manage_block_resource
+     *
+     * @mbg.generated Sun Aug 15 14:43:42 CST 2021
+     */
+    int upsertSelective(@Param("record") ManageBlockResource record, @Param("selective") ManageBlockResource.Column ... selective);
+}

+ 5 - 9
book-server/src/main/java/com/book/server/model/VO/QueryVO.java

@@ -4,16 +4,12 @@ import lombok.Data;
 
 @Data
 public class QueryVO {
-    /*
-    查询字段
-     */
+
     String query;
-    /*
-    第几页
-     */
+
     int page;
-    /*
-    size
-     */
+
     int size;
+
+    String sex;
 }

+ 1 - 0
book-server/src/main/java/com/book/server/service/BookService.java

@@ -6,4 +6,5 @@ import com.book.server.model.VO.QueryVO;
 
 public interface BookService {
     PageResult<Book> query(QueryVO queryVO);
+    PageResult<Book> recommendByRead(QueryVO queryVO);
 }

+ 12 - 0
book-server/src/main/java/com/book/server/service/impl/BookServiceImpl.java

@@ -29,4 +29,16 @@ public class BookServiceImpl implements BookService {
         List<Book> books = bookMapper.selectByExample(example);
         return new PageResult<>(queryVO.getPage(), queryVO.getSize(), count, books);
     }
+
+    @Override
+    public PageResult<Book> recommendByRead(QueryVO queryVO) {
+        BookExample example = BookExample.newAndCreateCriteria()
+                .andSexEqualTo(queryVO.getSex())
+                .example();
+        long count = bookMapper.countByExample(example);
+        example.orderBy(Book.Column.readNum.desc());
+        example.page(queryVO.getPage(), queryVO.getSize());
+        List<Book> books = bookMapper.selectByExample(example);
+        return new PageResult<>(queryVO.getPage(), queryVO.getSize(), count, books);
+    }
 }

+ 1 - 1
book-server/src/main/resources/application.yml

@@ -1,5 +1,5 @@
 server:
-  port: 8080
+  port: 9999
 
 spring:
   datasource:

+ 676 - 0
book-server/src/main/resources/mapper/ManageBlockMapper.xml

@@ -0,0 +1,676 @@
+<?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="com.book.server.dao.mapper.ManageBlockMapper">
+  <resultMap id="BaseResultMap" type="com.book.server.dao.entity.ManageBlock">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Aug 15 14:43:42 CST 2021.
+    -->
+    <id column="id" jdbcType="INTEGER" property="id" />
+    <result column="page_id" jdbcType="INTEGER" property="pageId" />
+    <result column="name" jdbcType="VARCHAR" property="name" />
+    <result column="second_name" jdbcType="VARCHAR" property="secondName" />
+    <result column="type" jdbcType="CHAR" property="type" />
+    <result column="weigh" jdbcType="INTEGER" property="weigh" />
+    <result column="createtime" jdbcType="INTEGER" property="createtime" />
+    <result column="updatetime" jdbcType="INTEGER" property="updatetime" />
+  </resultMap>
+  <sql id="Example_Where_Clause">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Aug 15 14:43:42 CST 2021.
+    -->
+    <where>
+      <foreach collection="oredCriteria" item="criteria" separator="or">
+        <if test="criteria.valid">
+          <trim prefix="(" prefixOverrides="and" suffix=")">
+            <foreach collection="criteria.criteria" item="criterion">
+              <choose>
+                <when test="criterion.noValue">
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue">
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue">
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue">
+                  and ${criterion.condition}
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Update_By_Example_Where_Clause">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Aug 15 14:43:42 CST 2021.
+    -->
+    <where>
+      <foreach collection="example.oredCriteria" item="criteria" separator="or">
+        <if test="criteria.valid">
+          <trim prefix="(" prefixOverrides="and" suffix=")">
+            <foreach collection="criteria.criteria" item="criterion">
+              <choose>
+                <when test="criterion.noValue">
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue">
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue">
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue">
+                  and ${criterion.condition}
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Base_Column_List">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Aug 15 14:43:42 CST 2021.
+    -->
+    id, page_id, name, second_name, type, weigh, createtime, updatetime
+  </sql>
+  <select id="selectByExample" parameterType="com.book.server.dao.entity.example.ManageBlockExample" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Aug 15 14:43:42 CST 2021.
+    -->
+    select
+    <if test="distinct">
+      distinct
+    </if>
+    <include refid="Base_Column_List" />
+    from manage_block
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+    <if test="orderByClause != null">
+      order by ${orderByClause}
+    </if>
+    <if test="rows != null">
+      <if test="offset != null">
+        limit ${offset}, ${rows}
+      </if>
+      <if test="offset == null">
+        limit ${rows}
+      </if>
+    </if>
+  </select>
+  <select id="selectByExampleSelective" parameterType="map" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Aug 15 14:43:42 CST 2021.
+    -->
+    select
+    <if test="example != null and example.distinct">
+      distinct
+    </if>
+    <choose>
+      <when test="selective != null and selective.length > 0">
+        <foreach collection="selective" item="column" separator=",">
+          ${column.aliasedEscapedColumnName}
+        </foreach>
+      </when>
+      <otherwise>
+        <include refid="Base_Column_List" />
+      </otherwise>
+    </choose>
+    from manage_block
+    <if test="example != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+    <if test="example != null and example.orderByClause != null">
+      order by ${example.orderByClause}
+    </if>
+    <if test="example != null and example.rows != null">
+      <if test="example.offset != null">
+        limit ${example.offset}, ${example.rows}
+      </if>
+      <if test="example.offset == null">
+        limit ${example.rows}
+      </if>
+    </if>
+  </select>
+  <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 Sun Aug 15 14:43:42 CST 2021.
+    -->
+    select 
+    <include refid="Base_Column_List" />
+    from manage_block
+    where id = #{id,jdbcType=INTEGER}
+  </select>
+  <select id="selectByPrimaryKeySelective" parameterType="map" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Aug 15 14:43:42 CST 2021.
+    -->
+    select
+    <choose>
+      <when test="selective != null and selective.length > 0">
+        <foreach collection="selective" item="column" separator=",">
+          ${column.aliasedEscapedColumnName}
+        </foreach>
+      </when>
+      <otherwise>
+        <include refid="Base_Column_List" />
+      </otherwise>
+    </choose>
+    from manage_block
+    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 Sun Aug 15 14:43:42 CST 2021.
+    -->
+    delete from manage_block
+    where id = #{id,jdbcType=INTEGER}
+  </delete>
+  <delete id="deleteByExample" parameterType="com.book.server.dao.entity.example.ManageBlockExample">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Aug 15 14:43:42 CST 2021.
+    -->
+    delete from manage_block
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </delete>
+  <insert id="insert" parameterType="com.book.server.dao.entity.ManageBlock">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Aug 15 14:43:42 CST 2021.
+    -->
+    insert into manage_block (id, page_id, name, 
+      second_name, type, weigh, 
+      createtime, updatetime)
+    values (#{id,jdbcType=INTEGER}, #{pageId,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, 
+      #{secondName,jdbcType=VARCHAR}, #{type,jdbcType=CHAR}, #{weigh,jdbcType=INTEGER}, 
+      #{createtime,jdbcType=INTEGER}, #{updatetime,jdbcType=INTEGER})
+  </insert>
+  <insert id="insertSelective" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Aug 15 14:43:42 CST 2021.
+    -->
+    insert into manage_block
+    <choose>
+      <when test="selective != null and selective.length > 0">
+        <foreach close=")" collection="selective" item="column" open="(" separator=",">
+          ${column.escapedColumnName}
+        </foreach>
+      </when>
+      <otherwise>
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+          <if test="record.id != null">
+            id,
+          </if>
+          <if test="record.pageId != null">
+            page_id,
+          </if>
+          <if test="record.name != null">
+            name,
+          </if>
+          <if test="record.secondName != null">
+            second_name,
+          </if>
+          <if test="record.type != null">
+            type,
+          </if>
+          <if test="record.weigh != null">
+            weigh,
+          </if>
+          <if test="record.createtime != null">
+            createtime,
+          </if>
+          <if test="record.updatetime != null">
+            updatetime,
+          </if>
+        </trim>
+        <trim prefix="(" suffix=")" suffixOverrides="," />
+      </otherwise>
+    </choose>
+    values
+    <choose>
+      <when test="selective != null and selective.length > 0">
+        <foreach close=")" collection="selective" item="column" open="(" separator=",">
+          #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
+        </foreach>
+      </when>
+      <otherwise>
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+          <if test="record.id != null">
+            #{record.id,jdbcType=INTEGER},
+          </if>
+          <if test="record.pageId != null">
+            #{record.pageId,jdbcType=INTEGER},
+          </if>
+          <if test="record.name != null">
+            #{record.name,jdbcType=VARCHAR},
+          </if>
+          <if test="record.secondName != null">
+            #{record.secondName,jdbcType=VARCHAR},
+          </if>
+          <if test="record.type != null">
+            #{record.type,jdbcType=CHAR},
+          </if>
+          <if test="record.weigh != null">
+            #{record.weigh,jdbcType=INTEGER},
+          </if>
+          <if test="record.createtime != null">
+            #{record.createtime,jdbcType=INTEGER},
+          </if>
+          <if test="record.updatetime != null">
+            #{record.updatetime,jdbcType=INTEGER},
+          </if>
+        </trim>
+      </otherwise>
+    </choose>
+  </insert>
+  <select id="countByExample" parameterType="com.book.server.dao.entity.example.ManageBlockExample" resultType="java.lang.Long">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Aug 15 14:43:42 CST 2021.
+    -->
+    select count(*) from manage_block
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </select>
+  <update id="updateByExampleSelective" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Aug 15 14:43:42 CST 2021.
+    -->
+    update manage_block
+    SET
+    <choose>
+      <when test="selective != null and selective.length > 0">
+        <foreach collection="selective" item="column" separator=",">
+          ${column.escapedColumnName} = #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
+        </foreach>
+      </when>
+      <otherwise>
+        <trim suffixOverrides=",">
+          <if test="record.id != null">
+            id = #{record.id,jdbcType=INTEGER},
+          </if>
+          <if test="record.pageId != null">
+            page_id = #{record.pageId,jdbcType=INTEGER},
+          </if>
+          <if test="record.name != null">
+            name = #{record.name,jdbcType=VARCHAR},
+          </if>
+          <if test="record.secondName != null">
+            second_name = #{record.secondName,jdbcType=VARCHAR},
+          </if>
+          <if test="record.type != null">
+            type = #{record.type,jdbcType=CHAR},
+          </if>
+          <if test="record.weigh != null">
+            weigh = #{record.weigh,jdbcType=INTEGER},
+          </if>
+          <if test="record.createtime != null">
+            createtime = #{record.createtime,jdbcType=INTEGER},
+          </if>
+          <if test="record.updatetime != null">
+            updatetime = #{record.updatetime,jdbcType=INTEGER},
+          </if>
+        </trim>
+      </otherwise>
+    </choose>
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByExample" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Aug 15 14:43:42 CST 2021.
+    -->
+    update manage_block
+    set id = #{record.id,jdbcType=INTEGER},
+      page_id = #{record.pageId,jdbcType=INTEGER},
+      name = #{record.name,jdbcType=VARCHAR},
+      second_name = #{record.secondName,jdbcType=VARCHAR},
+      type = #{record.type,jdbcType=CHAR},
+      weigh = #{record.weigh,jdbcType=INTEGER},
+      createtime = #{record.createtime,jdbcType=INTEGER},
+      updatetime = #{record.updatetime,jdbcType=INTEGER}
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByPrimaryKeySelective" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Aug 15 14:43:42 CST 2021.
+    -->
+    update manage_block
+    SET
+    <choose>
+      <when test="selective != null and selective.length > 0">
+        <foreach collection="selective" item="column" separator=",">
+          ${column.escapedColumnName} = #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
+        </foreach>
+      </when>
+      <otherwise>
+        <trim suffixOverrides=",">
+          <if test="record.pageId != null">
+            page_id = #{record.pageId,jdbcType=INTEGER},
+          </if>
+          <if test="record.name != null">
+            name = #{record.name,jdbcType=VARCHAR},
+          </if>
+          <if test="record.secondName != null">
+            second_name = #{record.secondName,jdbcType=VARCHAR},
+          </if>
+          <if test="record.type != null">
+            type = #{record.type,jdbcType=CHAR},
+          </if>
+          <if test="record.weigh != null">
+            weigh = #{record.weigh,jdbcType=INTEGER},
+          </if>
+          <if test="record.createtime != null">
+            createtime = #{record.createtime,jdbcType=INTEGER},
+          </if>
+          <if test="record.updatetime != null">
+            updatetime = #{record.updatetime,jdbcType=INTEGER},
+          </if>
+        </trim>
+      </otherwise>
+    </choose>
+    where id = #{record.id,jdbcType=INTEGER}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.book.server.dao.entity.ManageBlock">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Aug 15 14:43:42 CST 2021.
+    -->
+    update manage_block
+    set page_id = #{pageId,jdbcType=INTEGER},
+      name = #{name,jdbcType=VARCHAR},
+      second_name = #{secondName,jdbcType=VARCHAR},
+      type = #{type,jdbcType=CHAR},
+      weigh = #{weigh,jdbcType=INTEGER},
+      createtime = #{createtime,jdbcType=INTEGER},
+      updatetime = #{updatetime,jdbcType=INTEGER}
+    where id = #{id,jdbcType=INTEGER}
+  </update>
+  <select id="selectOneByExample" parameterType="com.book.server.dao.entity.example.ManageBlockExample" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Aug 15 14:43:42 CST 2021.
+    -->
+    select
+    <include refid="Base_Column_List" />
+    from manage_block
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+    <if test="orderByClause != null">
+      order by ${orderByClause}
+    </if>
+    limit 1
+  </select>
+  <select id="selectOneByExampleSelective" parameterType="map" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Aug 15 14:43:42 CST 2021.
+    -->
+    select
+    <choose>
+      <when test="selective != null and selective.length > 0">
+        <foreach collection="selective" item="column" separator=",">
+          ${column.aliasedEscapedColumnName}
+        </foreach>
+      </when>
+      <otherwise>
+        <include refid="Base_Column_List" />
+      </otherwise>
+    </choose>
+    from manage_block
+    <if test="example != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+    <if test="example != null and example.orderByClause != null">
+      order by ${example.orderByClause}
+    </if>
+    limit 1
+  </select>
+  <insert id="batchInsert" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Aug 15 14:43:42 CST 2021.
+    -->
+    insert into manage_block
+    (id, page_id, name, second_name, type, weigh, createtime, updatetime)
+    values
+    <foreach collection="list" item="item" separator=",">
+      (#{item.id,jdbcType=INTEGER}, #{item.pageId,jdbcType=INTEGER}, #{item.name,jdbcType=VARCHAR}, 
+        #{item.secondName,jdbcType=VARCHAR}, #{item.type,jdbcType=CHAR}, #{item.weigh,jdbcType=INTEGER}, 
+        #{item.createtime,jdbcType=INTEGER}, #{item.updatetime,jdbcType=INTEGER})
+    </foreach>
+  </insert>
+  <insert id="batchInsertSelective" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Aug 15 14:43:42 CST 2021.
+    -->
+    insert into manage_block (
+    <foreach collection="selective" item="column" separator=",">
+      ${column.escapedColumnName}
+    </foreach>
+    )
+    values
+    <foreach collection="list" item="item" separator=",">
+      (
+      <foreach collection="selective" item="column" separator=",">
+        <if test="'id'.toString() == column.value">
+          #{item.id,jdbcType=INTEGER}
+        </if>
+        <if test="'page_id'.toString() == column.value">
+          #{item.pageId,jdbcType=INTEGER}
+        </if>
+        <if test="'name'.toString() == column.value">
+          #{item.name,jdbcType=VARCHAR}
+        </if>
+        <if test="'second_name'.toString() == column.value">
+          #{item.secondName,jdbcType=VARCHAR}
+        </if>
+        <if test="'type'.toString() == column.value">
+          #{item.type,jdbcType=CHAR}
+        </if>
+        <if test="'weigh'.toString() == column.value">
+          #{item.weigh,jdbcType=INTEGER}
+        </if>
+        <if test="'createtime'.toString() == column.value">
+          #{item.createtime,jdbcType=INTEGER}
+        </if>
+        <if test="'updatetime'.toString() == column.value">
+          #{item.updatetime,jdbcType=INTEGER}
+        </if>
+      </foreach>
+      )
+    </foreach>
+  </insert>
+  <insert id="upsertSelective" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Aug 15 14:43:42 CST 2021.
+    -->
+    insert into manage_block
+    <choose>
+      <when test="selective != null and selective.length > 0">
+        <foreach close=")" collection="selective" item="column" open="(" separator=",">
+          ${column.escapedColumnName}
+        </foreach>
+      </when>
+      <otherwise>
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+          <if test="record.id != null">
+            id,
+          </if>
+          <if test="record.pageId != null">
+            page_id,
+          </if>
+          <if test="record.name != null">
+            name,
+          </if>
+          <if test="record.secondName != null">
+            second_name,
+          </if>
+          <if test="record.type != null">
+            type,
+          </if>
+          <if test="record.weigh != null">
+            weigh,
+          </if>
+          <if test="record.createtime != null">
+            createtime,
+          </if>
+          <if test="record.updatetime != null">
+            updatetime,
+          </if>
+        </trim>
+        <trim prefix="(" suffix=")" suffixOverrides="," />
+      </otherwise>
+    </choose>
+    values
+    <choose>
+      <when test="selective != null and selective.length > 0">
+        <foreach close=")" collection="selective" item="column" open="(" separator=",">
+          #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
+        </foreach>
+      </when>
+      <otherwise>
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+          <if test="record.id != null">
+            #{record.id,jdbcType=INTEGER},
+          </if>
+          <if test="record.pageId != null">
+            #{record.pageId,jdbcType=INTEGER},
+          </if>
+          <if test="record.name != null">
+            #{record.name,jdbcType=VARCHAR},
+          </if>
+          <if test="record.secondName != null">
+            #{record.secondName,jdbcType=VARCHAR},
+          </if>
+          <if test="record.type != null">
+            #{record.type,jdbcType=CHAR},
+          </if>
+          <if test="record.weigh != null">
+            #{record.weigh,jdbcType=INTEGER},
+          </if>
+          <if test="record.createtime != null">
+            #{record.createtime,jdbcType=INTEGER},
+          </if>
+          <if test="record.updatetime != null">
+            #{record.updatetime,jdbcType=INTEGER},
+          </if>
+        </trim>
+      </otherwise>
+    </choose>
+    on duplicate key update 
+    <choose>
+      <when test="selective != null and selective.length > 0">
+        <foreach collection="selective" item="column" separator=",">
+          ${column.escapedColumnName} = #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
+        </foreach>
+      </when>
+      <otherwise>
+        <trim suffixOverrides=",">
+          <if test="record.id != null">
+            id = #{record.id,jdbcType=INTEGER},
+          </if>
+          <if test="record.pageId != null">
+            page_id = #{record.pageId,jdbcType=INTEGER},
+          </if>
+          <if test="record.name != null">
+            name = #{record.name,jdbcType=VARCHAR},
+          </if>
+          <if test="record.secondName != null">
+            second_name = #{record.secondName,jdbcType=VARCHAR},
+          </if>
+          <if test="record.type != null">
+            type = #{record.type,jdbcType=CHAR},
+          </if>
+          <if test="record.weigh != null">
+            weigh = #{record.weigh,jdbcType=INTEGER},
+          </if>
+          <if test="record.createtime != null">
+            createtime = #{record.createtime,jdbcType=INTEGER},
+          </if>
+          <if test="record.updatetime != null">
+            updatetime = #{record.updatetime,jdbcType=INTEGER},
+          </if>
+        </trim>
+      </otherwise>
+    </choose>
+  </insert>
+  <insert id="upsert" parameterType="com.book.server.dao.entity.ManageBlock">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Aug 15 14:43:42 CST 2021.
+    -->
+    insert into manage_block
+    (id, page_id, name, second_name, type, weigh, createtime, updatetime)
+    values
+    (#{id,jdbcType=INTEGER}, #{pageId,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, #{secondName,jdbcType=VARCHAR}, 
+      #{type,jdbcType=CHAR}, #{weigh,jdbcType=INTEGER}, #{createtime,jdbcType=INTEGER}, 
+      #{updatetime,jdbcType=INTEGER})
+    on duplicate key update 
+    id = #{id,jdbcType=INTEGER}, 
+    page_id = #{pageId,jdbcType=INTEGER}, 
+    name = #{name,jdbcType=VARCHAR}, 
+    second_name = #{secondName,jdbcType=VARCHAR}, 
+    type = #{type,jdbcType=CHAR}, 
+    weigh = #{weigh,jdbcType=INTEGER}, 
+    createtime = #{createtime,jdbcType=INTEGER}, 
+    updatetime = #{updatetime,jdbcType=INTEGER}
+  </insert>
+</mapper>

+ 738 - 0
book-server/src/main/resources/mapper/ManageBlockResourceMapper.xml

@@ -0,0 +1,738 @@
+<?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="com.book.server.dao.mapper.ManageBlockResourceMapper">
+  <resultMap id="BaseResultMap" type="com.book.server.dao.entity.ManageBlockResource">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Aug 15 14:43:42 CST 2021.
+    -->
+    <id column="id" jdbcType="INTEGER" property="id" />
+    <result column="block_id" jdbcType="INTEGER" property="blockId" />
+    <result column="type" jdbcType="CHAR" property="type" />
+    <result column="image" jdbcType="VARCHAR" property="image" />
+    <result column="book_id" jdbcType="BIGINT" property="bookId" />
+    <result column="url" jdbcType="VARCHAR" property="url" />
+    <result column="weigh" jdbcType="INTEGER" property="weigh" />
+    <result column="createtime" jdbcType="INTEGER" property="createtime" />
+    <result column="updatetime" jdbcType="INTEGER" property="updatetime" />
+    <result column="special_id" jdbcType="INTEGER" property="specialId" />
+  </resultMap>
+  <sql id="Example_Where_Clause">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Aug 15 14:43:42 CST 2021.
+    -->
+    <where>
+      <foreach collection="oredCriteria" item="criteria" separator="or">
+        <if test="criteria.valid">
+          <trim prefix="(" prefixOverrides="and" suffix=")">
+            <foreach collection="criteria.criteria" item="criterion">
+              <choose>
+                <when test="criterion.noValue">
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue">
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue">
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue">
+                  and ${criterion.condition}
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Update_By_Example_Where_Clause">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Aug 15 14:43:42 CST 2021.
+    -->
+    <where>
+      <foreach collection="example.oredCriteria" item="criteria" separator="or">
+        <if test="criteria.valid">
+          <trim prefix="(" prefixOverrides="and" suffix=")">
+            <foreach collection="criteria.criteria" item="criterion">
+              <choose>
+                <when test="criterion.noValue">
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue">
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue">
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue">
+                  and ${criterion.condition}
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Base_Column_List">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Aug 15 14:43:42 CST 2021.
+    -->
+    id, block_id, type, image, book_id, url, weigh, createtime, updatetime, special_id
+  </sql>
+  <select id="selectByExample" parameterType="com.book.server.dao.entity.example.ManageBlockResourceExample" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Aug 15 14:43:42 CST 2021.
+    -->
+    select
+    <if test="distinct">
+      distinct
+    </if>
+    <include refid="Base_Column_List" />
+    from manage_block_resource
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+    <if test="orderByClause != null">
+      order by ${orderByClause}
+    </if>
+    <if test="rows != null">
+      <if test="offset != null">
+        limit ${offset}, ${rows}
+      </if>
+      <if test="offset == null">
+        limit ${rows}
+      </if>
+    </if>
+  </select>
+  <select id="selectByExampleSelective" parameterType="map" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Aug 15 14:43:42 CST 2021.
+    -->
+    select
+    <if test="example != null and example.distinct">
+      distinct
+    </if>
+    <choose>
+      <when test="selective != null and selective.length > 0">
+        <foreach collection="selective" item="column" separator=",">
+          ${column.aliasedEscapedColumnName}
+        </foreach>
+      </when>
+      <otherwise>
+        <include refid="Base_Column_List" />
+      </otherwise>
+    </choose>
+    from manage_block_resource
+    <if test="example != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+    <if test="example != null and example.orderByClause != null">
+      order by ${example.orderByClause}
+    </if>
+    <if test="example != null and example.rows != null">
+      <if test="example.offset != null">
+        limit ${example.offset}, ${example.rows}
+      </if>
+      <if test="example.offset == null">
+        limit ${example.rows}
+      </if>
+    </if>
+  </select>
+  <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 Sun Aug 15 14:43:42 CST 2021.
+    -->
+    select 
+    <include refid="Base_Column_List" />
+    from manage_block_resource
+    where id = #{id,jdbcType=INTEGER}
+  </select>
+  <select id="selectByPrimaryKeySelective" parameterType="map" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Aug 15 14:43:42 CST 2021.
+    -->
+    select
+    <choose>
+      <when test="selective != null and selective.length > 0">
+        <foreach collection="selective" item="column" separator=",">
+          ${column.aliasedEscapedColumnName}
+        </foreach>
+      </when>
+      <otherwise>
+        <include refid="Base_Column_List" />
+      </otherwise>
+    </choose>
+    from manage_block_resource
+    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 Sun Aug 15 14:43:42 CST 2021.
+    -->
+    delete from manage_block_resource
+    where id = #{id,jdbcType=INTEGER}
+  </delete>
+  <delete id="deleteByExample" parameterType="com.book.server.dao.entity.example.ManageBlockResourceExample">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Aug 15 14:43:42 CST 2021.
+    -->
+    delete from manage_block_resource
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </delete>
+  <insert id="insert" parameterType="com.book.server.dao.entity.ManageBlockResource">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Aug 15 14:43:42 CST 2021.
+    -->
+    insert into manage_block_resource (id, block_id, type, 
+      image, book_id, url, 
+      weigh, createtime, updatetime, 
+      special_id)
+    values (#{id,jdbcType=INTEGER}, #{blockId,jdbcType=INTEGER}, #{type,jdbcType=CHAR}, 
+      #{image,jdbcType=VARCHAR}, #{bookId,jdbcType=BIGINT}, #{url,jdbcType=VARCHAR}, 
+      #{weigh,jdbcType=INTEGER}, #{createtime,jdbcType=INTEGER}, #{updatetime,jdbcType=INTEGER}, 
+      #{specialId,jdbcType=INTEGER})
+  </insert>
+  <insert id="insertSelective" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Aug 15 14:43:42 CST 2021.
+    -->
+    insert into manage_block_resource
+    <choose>
+      <when test="selective != null and selective.length > 0">
+        <foreach close=")" collection="selective" item="column" open="(" separator=",">
+          ${column.escapedColumnName}
+        </foreach>
+      </when>
+      <otherwise>
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+          <if test="record.id != null">
+            id,
+          </if>
+          <if test="record.blockId != null">
+            block_id,
+          </if>
+          <if test="record.type != null">
+            type,
+          </if>
+          <if test="record.image != null">
+            image,
+          </if>
+          <if test="record.bookId != null">
+            book_id,
+          </if>
+          <if test="record.url != null">
+            url,
+          </if>
+          <if test="record.weigh != null">
+            weigh,
+          </if>
+          <if test="record.createtime != null">
+            createtime,
+          </if>
+          <if test="record.updatetime != null">
+            updatetime,
+          </if>
+          <if test="record.specialId != null">
+            special_id,
+          </if>
+        </trim>
+        <trim prefix="(" suffix=")" suffixOverrides="," />
+      </otherwise>
+    </choose>
+    values
+    <choose>
+      <when test="selective != null and selective.length > 0">
+        <foreach close=")" collection="selective" item="column" open="(" separator=",">
+          #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
+        </foreach>
+      </when>
+      <otherwise>
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+          <if test="record.id != null">
+            #{record.id,jdbcType=INTEGER},
+          </if>
+          <if test="record.blockId != null">
+            #{record.blockId,jdbcType=INTEGER},
+          </if>
+          <if test="record.type != null">
+            #{record.type,jdbcType=CHAR},
+          </if>
+          <if test="record.image != null">
+            #{record.image,jdbcType=VARCHAR},
+          </if>
+          <if test="record.bookId != null">
+            #{record.bookId,jdbcType=BIGINT},
+          </if>
+          <if test="record.url != null">
+            #{record.url,jdbcType=VARCHAR},
+          </if>
+          <if test="record.weigh != null">
+            #{record.weigh,jdbcType=INTEGER},
+          </if>
+          <if test="record.createtime != null">
+            #{record.createtime,jdbcType=INTEGER},
+          </if>
+          <if test="record.updatetime != null">
+            #{record.updatetime,jdbcType=INTEGER},
+          </if>
+          <if test="record.specialId != null">
+            #{record.specialId,jdbcType=INTEGER},
+          </if>
+        </trim>
+      </otherwise>
+    </choose>
+  </insert>
+  <select id="countByExample" parameterType="com.book.server.dao.entity.example.ManageBlockResourceExample" resultType="java.lang.Long">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Aug 15 14:43:42 CST 2021.
+    -->
+    select count(*) from manage_block_resource
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </select>
+  <update id="updateByExampleSelective" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Aug 15 14:43:42 CST 2021.
+    -->
+    update manage_block_resource
+    SET
+    <choose>
+      <when test="selective != null and selective.length > 0">
+        <foreach collection="selective" item="column" separator=",">
+          ${column.escapedColumnName} = #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
+        </foreach>
+      </when>
+      <otherwise>
+        <trim suffixOverrides=",">
+          <if test="record.id != null">
+            id = #{record.id,jdbcType=INTEGER},
+          </if>
+          <if test="record.blockId != null">
+            block_id = #{record.blockId,jdbcType=INTEGER},
+          </if>
+          <if test="record.type != null">
+            type = #{record.type,jdbcType=CHAR},
+          </if>
+          <if test="record.image != null">
+            image = #{record.image,jdbcType=VARCHAR},
+          </if>
+          <if test="record.bookId != null">
+            book_id = #{record.bookId,jdbcType=BIGINT},
+          </if>
+          <if test="record.url != null">
+            url = #{record.url,jdbcType=VARCHAR},
+          </if>
+          <if test="record.weigh != null">
+            weigh = #{record.weigh,jdbcType=INTEGER},
+          </if>
+          <if test="record.createtime != null">
+            createtime = #{record.createtime,jdbcType=INTEGER},
+          </if>
+          <if test="record.updatetime != null">
+            updatetime = #{record.updatetime,jdbcType=INTEGER},
+          </if>
+          <if test="record.specialId != null">
+            special_id = #{record.specialId,jdbcType=INTEGER},
+          </if>
+        </trim>
+      </otherwise>
+    </choose>
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByExample" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Aug 15 14:43:42 CST 2021.
+    -->
+    update manage_block_resource
+    set id = #{record.id,jdbcType=INTEGER},
+      block_id = #{record.blockId,jdbcType=INTEGER},
+      type = #{record.type,jdbcType=CHAR},
+      image = #{record.image,jdbcType=VARCHAR},
+      book_id = #{record.bookId,jdbcType=BIGINT},
+      url = #{record.url,jdbcType=VARCHAR},
+      weigh = #{record.weigh,jdbcType=INTEGER},
+      createtime = #{record.createtime,jdbcType=INTEGER},
+      updatetime = #{record.updatetime,jdbcType=INTEGER},
+      special_id = #{record.specialId,jdbcType=INTEGER}
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByPrimaryKeySelective" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Aug 15 14:43:42 CST 2021.
+    -->
+    update manage_block_resource
+    SET
+    <choose>
+      <when test="selective != null and selective.length > 0">
+        <foreach collection="selective" item="column" separator=",">
+          ${column.escapedColumnName} = #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
+        </foreach>
+      </when>
+      <otherwise>
+        <trim suffixOverrides=",">
+          <if test="record.blockId != null">
+            block_id = #{record.blockId,jdbcType=INTEGER},
+          </if>
+          <if test="record.type != null">
+            type = #{record.type,jdbcType=CHAR},
+          </if>
+          <if test="record.image != null">
+            image = #{record.image,jdbcType=VARCHAR},
+          </if>
+          <if test="record.bookId != null">
+            book_id = #{record.bookId,jdbcType=BIGINT},
+          </if>
+          <if test="record.url != null">
+            url = #{record.url,jdbcType=VARCHAR},
+          </if>
+          <if test="record.weigh != null">
+            weigh = #{record.weigh,jdbcType=INTEGER},
+          </if>
+          <if test="record.createtime != null">
+            createtime = #{record.createtime,jdbcType=INTEGER},
+          </if>
+          <if test="record.updatetime != null">
+            updatetime = #{record.updatetime,jdbcType=INTEGER},
+          </if>
+          <if test="record.specialId != null">
+            special_id = #{record.specialId,jdbcType=INTEGER},
+          </if>
+        </trim>
+      </otherwise>
+    </choose>
+    where id = #{record.id,jdbcType=INTEGER}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.book.server.dao.entity.ManageBlockResource">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Aug 15 14:43:42 CST 2021.
+    -->
+    update manage_block_resource
+    set block_id = #{blockId,jdbcType=INTEGER},
+      type = #{type,jdbcType=CHAR},
+      image = #{image,jdbcType=VARCHAR},
+      book_id = #{bookId,jdbcType=BIGINT},
+      url = #{url,jdbcType=VARCHAR},
+      weigh = #{weigh,jdbcType=INTEGER},
+      createtime = #{createtime,jdbcType=INTEGER},
+      updatetime = #{updatetime,jdbcType=INTEGER},
+      special_id = #{specialId,jdbcType=INTEGER}
+    where id = #{id,jdbcType=INTEGER}
+  </update>
+  <select id="selectOneByExample" parameterType="com.book.server.dao.entity.example.ManageBlockResourceExample" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Aug 15 14:43:42 CST 2021.
+    -->
+    select
+    <include refid="Base_Column_List" />
+    from manage_block_resource
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+    <if test="orderByClause != null">
+      order by ${orderByClause}
+    </if>
+    limit 1
+  </select>
+  <select id="selectOneByExampleSelective" parameterType="map" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Aug 15 14:43:42 CST 2021.
+    -->
+    select
+    <choose>
+      <when test="selective != null and selective.length > 0">
+        <foreach collection="selective" item="column" separator=",">
+          ${column.aliasedEscapedColumnName}
+        </foreach>
+      </when>
+      <otherwise>
+        <include refid="Base_Column_List" />
+      </otherwise>
+    </choose>
+    from manage_block_resource
+    <if test="example != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+    <if test="example != null and example.orderByClause != null">
+      order by ${example.orderByClause}
+    </if>
+    limit 1
+  </select>
+  <insert id="batchInsert" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Aug 15 14:43:42 CST 2021.
+    -->
+    insert into manage_block_resource
+    (id, block_id, type, image, book_id, url, weigh, createtime, updatetime, special_id
+      )
+    values
+    <foreach collection="list" item="item" separator=",">
+      (#{item.id,jdbcType=INTEGER}, #{item.blockId,jdbcType=INTEGER}, #{item.type,jdbcType=CHAR}, 
+        #{item.image,jdbcType=VARCHAR}, #{item.bookId,jdbcType=BIGINT}, #{item.url,jdbcType=VARCHAR}, 
+        #{item.weigh,jdbcType=INTEGER}, #{item.createtime,jdbcType=INTEGER}, #{item.updatetime,jdbcType=INTEGER}, 
+        #{item.specialId,jdbcType=INTEGER})
+    </foreach>
+  </insert>
+  <insert id="batchInsertSelective" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Aug 15 14:43:42 CST 2021.
+    -->
+    insert into manage_block_resource (
+    <foreach collection="selective" item="column" separator=",">
+      ${column.escapedColumnName}
+    </foreach>
+    )
+    values
+    <foreach collection="list" item="item" separator=",">
+      (
+      <foreach collection="selective" item="column" separator=",">
+        <if test="'id'.toString() == column.value">
+          #{item.id,jdbcType=INTEGER}
+        </if>
+        <if test="'block_id'.toString() == column.value">
+          #{item.blockId,jdbcType=INTEGER}
+        </if>
+        <if test="'type'.toString() == column.value">
+          #{item.type,jdbcType=CHAR}
+        </if>
+        <if test="'image'.toString() == column.value">
+          #{item.image,jdbcType=VARCHAR}
+        </if>
+        <if test="'book_id'.toString() == column.value">
+          #{item.bookId,jdbcType=BIGINT}
+        </if>
+        <if test="'url'.toString() == column.value">
+          #{item.url,jdbcType=VARCHAR}
+        </if>
+        <if test="'weigh'.toString() == column.value">
+          #{item.weigh,jdbcType=INTEGER}
+        </if>
+        <if test="'createtime'.toString() == column.value">
+          #{item.createtime,jdbcType=INTEGER}
+        </if>
+        <if test="'updatetime'.toString() == column.value">
+          #{item.updatetime,jdbcType=INTEGER}
+        </if>
+        <if test="'special_id'.toString() == column.value">
+          #{item.specialId,jdbcType=INTEGER}
+        </if>
+      </foreach>
+      )
+    </foreach>
+  </insert>
+  <insert id="upsertSelective" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Aug 15 14:43:42 CST 2021.
+    -->
+    insert into manage_block_resource
+    <choose>
+      <when test="selective != null and selective.length > 0">
+        <foreach close=")" collection="selective" item="column" open="(" separator=",">
+          ${column.escapedColumnName}
+        </foreach>
+      </when>
+      <otherwise>
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+          <if test="record.id != null">
+            id,
+          </if>
+          <if test="record.blockId != null">
+            block_id,
+          </if>
+          <if test="record.type != null">
+            type,
+          </if>
+          <if test="record.image != null">
+            image,
+          </if>
+          <if test="record.bookId != null">
+            book_id,
+          </if>
+          <if test="record.url != null">
+            url,
+          </if>
+          <if test="record.weigh != null">
+            weigh,
+          </if>
+          <if test="record.createtime != null">
+            createtime,
+          </if>
+          <if test="record.updatetime != null">
+            updatetime,
+          </if>
+          <if test="record.specialId != null">
+            special_id,
+          </if>
+        </trim>
+        <trim prefix="(" suffix=")" suffixOverrides="," />
+      </otherwise>
+    </choose>
+    values
+    <choose>
+      <when test="selective != null and selective.length > 0">
+        <foreach close=")" collection="selective" item="column" open="(" separator=",">
+          #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
+        </foreach>
+      </when>
+      <otherwise>
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+          <if test="record.id != null">
+            #{record.id,jdbcType=INTEGER},
+          </if>
+          <if test="record.blockId != null">
+            #{record.blockId,jdbcType=INTEGER},
+          </if>
+          <if test="record.type != null">
+            #{record.type,jdbcType=CHAR},
+          </if>
+          <if test="record.image != null">
+            #{record.image,jdbcType=VARCHAR},
+          </if>
+          <if test="record.bookId != null">
+            #{record.bookId,jdbcType=BIGINT},
+          </if>
+          <if test="record.url != null">
+            #{record.url,jdbcType=VARCHAR},
+          </if>
+          <if test="record.weigh != null">
+            #{record.weigh,jdbcType=INTEGER},
+          </if>
+          <if test="record.createtime != null">
+            #{record.createtime,jdbcType=INTEGER},
+          </if>
+          <if test="record.updatetime != null">
+            #{record.updatetime,jdbcType=INTEGER},
+          </if>
+          <if test="record.specialId != null">
+            #{record.specialId,jdbcType=INTEGER},
+          </if>
+        </trim>
+      </otherwise>
+    </choose>
+    on duplicate key update 
+    <choose>
+      <when test="selective != null and selective.length > 0">
+        <foreach collection="selective" item="column" separator=",">
+          ${column.escapedColumnName} = #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
+        </foreach>
+      </when>
+      <otherwise>
+        <trim suffixOverrides=",">
+          <if test="record.id != null">
+            id = #{record.id,jdbcType=INTEGER},
+          </if>
+          <if test="record.blockId != null">
+            block_id = #{record.blockId,jdbcType=INTEGER},
+          </if>
+          <if test="record.type != null">
+            type = #{record.type,jdbcType=CHAR},
+          </if>
+          <if test="record.image != null">
+            image = #{record.image,jdbcType=VARCHAR},
+          </if>
+          <if test="record.bookId != null">
+            book_id = #{record.bookId,jdbcType=BIGINT},
+          </if>
+          <if test="record.url != null">
+            url = #{record.url,jdbcType=VARCHAR},
+          </if>
+          <if test="record.weigh != null">
+            weigh = #{record.weigh,jdbcType=INTEGER},
+          </if>
+          <if test="record.createtime != null">
+            createtime = #{record.createtime,jdbcType=INTEGER},
+          </if>
+          <if test="record.updatetime != null">
+            updatetime = #{record.updatetime,jdbcType=INTEGER},
+          </if>
+          <if test="record.specialId != null">
+            special_id = #{record.specialId,jdbcType=INTEGER},
+          </if>
+        </trim>
+      </otherwise>
+    </choose>
+  </insert>
+  <insert id="upsert" parameterType="com.book.server.dao.entity.ManageBlockResource">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Aug 15 14:43:42 CST 2021.
+    -->
+    insert into manage_block_resource
+    (id, block_id, type, image, book_id, url, weigh, createtime, updatetime, special_id
+      )
+    values
+    (#{id,jdbcType=INTEGER}, #{blockId,jdbcType=INTEGER}, #{type,jdbcType=CHAR}, #{image,jdbcType=VARCHAR}, 
+      #{bookId,jdbcType=BIGINT}, #{url,jdbcType=VARCHAR}, #{weigh,jdbcType=INTEGER}, 
+      #{createtime,jdbcType=INTEGER}, #{updatetime,jdbcType=INTEGER}, #{specialId,jdbcType=INTEGER}
+      )
+    on duplicate key update 
+    id = #{id,jdbcType=INTEGER}, 
+    block_id = #{blockId,jdbcType=INTEGER}, 
+    type = #{type,jdbcType=CHAR}, 
+    image = #{image,jdbcType=VARCHAR}, 
+    book_id = #{bookId,jdbcType=BIGINT}, 
+    url = #{url,jdbcType=VARCHAR}, 
+    weigh = #{weigh,jdbcType=INTEGER}, 
+    createtime = #{createtime,jdbcType=INTEGER}, 
+    updatetime = #{updatetime,jdbcType=INTEGER}, 
+    special_id = #{specialId,jdbcType=INTEGER}
+  </insert>
+</mapper>

+ 3 - 1
book-server/src/main/resources/mybatis-generator.xml

@@ -119,7 +119,9 @@
                              targetProject="src/main/java" type="XMLMAPPER"/>
 
         <!--指定数据表名,可以使用_和%通配符,可以配置generatedKey,会返回insert之后的id-->
-        <table tableName="book"></table>
+<!--        <table tableName="book"></table>-->
+        <table tableName="manage_block"></table>
+        <table tableName="manage_block_resource"></table>
 
     </context>