lijilei преди 3 години
родител
ревизия
a4b04eb340

+ 1 - 1
book-dao/pom.xml

@@ -10,7 +10,7 @@
     <modelVersion>4.0.0</modelVersion>
 
     <artifactId>book-dao</artifactId>
-
+    <packaging>jar</packaging>
     <properties>
         <maven.compiler.source>8</maven.compiler.source>
         <maven.compiler.target>8</maven.compiler.target>

+ 19 - 0
book-dao/src/main/java/com/book/dao/BookDaoServiceApplication.java

@@ -0,0 +1,19 @@
+package com.book.dao;
+
+import org.mybatis.spring.annotation.MapperScan;
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+import org.springframework.scheduling.annotation.EnableScheduling;
+
+@SpringBootApplication
+
+
+@MapperScan("com.book.dao.*.mapper")
+//@EnableScheduling
+public class BookDaoServiceApplication {
+
+    public static void main(String[] args) {
+        SpringApplication.run(BookDaoServiceApplication.class, args);
+    }
+
+}

+ 0 - 107
book-server/src/main/resources/mapper/Book2Mapper.xml

@@ -1,107 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
-<mapper namespace="com.book.server.dao.mapper.BookMapper2">
-    <resultMap id="BaseResultMap" type="com.book.dao.VO.BookRes">
-        <!--
-          WARNING - @mbg.generated
-          This element is automatically generated by MyBatis Generator, do not modify.
-          This element was generated on Thu Aug 12 00:28:56 CST 2021.
-        -->
-        <id column="id" jdbcType="BIGINT" property="id"/>
-        <result column="is_audio" jdbcType="TINYINT" property="isAudio"/>
-        <result column="book_category_id" jdbcType="INTEGER" property="bookCategoryId"/>
-        <result column="name" jdbcType="VARCHAR" property="name"/>
-        <result column="realname" jdbcType="VARCHAR" property="realname"/>
-        <result column="title" jdbcType="VARCHAR" property="title"/>
-        <result column="author" jdbcType="VARCHAR" property="author"/>
-        <result column="image" jdbcType="VARCHAR" property="image"/>
-        <result column="big_cover" jdbcType="VARCHAR" property="bigCover"/>
-        <result column="small_cover" jdbcType="VARCHAR" property="smallCover"/>
-        <result column="description" jdbcType="VARCHAR" property="description"/>
-        <result column="idx" jdbcType="INTEGER" property="idx"/>
-        <result column="referral_num" jdbcType="TINYINT" property="referralNum"/>
-        <result column="idxx" jdbcType="INTEGER" property="idxx"/>
-        <result column="state" jdbcType="CHAR" property="state"/>
-        <result column="free_stime" jdbcType="INTEGER" property="freeStime"/>
-        <result column="free_etime" jdbcType="INTEGER" property="freeEtime"/>
-        <result column="sex" jdbcType="CHAR" property="sex"/>
-        <result column="billing_type" jdbcType="CHAR" property="billingType"/>
-        <result column="price" jdbcType="INTEGER" property="price"/>
-        <result column="app_price" jdbcType="INTEGER" property="appPrice"/>
-        <result column="is_finish" jdbcType="CHAR" property="isFinish"/>
-        <result column="free_chapter_num" jdbcType="INTEGER" property="freeChapterNum"/>
-        <result column="word_count" jdbcType="VARCHAR" property="wordCount"/>
-        <result column="chapter_num" jdbcType="INTEGER" property="chapterNum"/>
-        <result column="first_chapter_id" jdbcType="BIGINT" property="firstChapterId"/>
-        <result column="first_chapter_name" jdbcType="VARCHAR" property="firstChapterName"/>
-        <result column="last_chapter_id" jdbcType="BIGINT" property="lastChapterId"/>
-        <result column="last_chapter_name" jdbcType="VARCHAR" property="lastChapterName"/>
-        <result column="last_chapter_utime" jdbcType="INTEGER" property="lastChapterUtime"/>
-        <result column="read_num" jdbcType="INTEGER" property="readNum"/>
-        <result column="article_chapter_order" jdbcType="INTEGER" property="articleChapterOrder"/>
-        <result column="attent_chapter_order" jdbcType="INTEGER" property="attentChapterOrder"/>
-        <result column="corner_mark" jdbcType="CHAR" property="cornerMark"/>
-        <result column="recommand_book_id" jdbcType="BIGINT" property="recommandBookId"/>
-        <result column="createtime" jdbcType="INTEGER" property="createtime"/>
-        <result column="updatetime" jdbcType="INTEGER" property="updatetime"/>
-        <result column="keywords" jdbcType="VARCHAR" property="keywords"/>
-        <result column="cansee" jdbcType="CHAR" property="cansee"/>
-        <result column="rank" jdbcType="TINYINT" property="rank"/>
-        <result column="check_rank" jdbcType="TINYINT" property="checkRank"/>
-        <result column="check_remark" jdbcType="VARCHAR" property="checkRemark"/>
-        <result column="editor_recommand" jdbcType="VARCHAR" property="editorRecommand"/>
-        <result column="book_tags" jdbcType="VARCHAR" property="bookTags"/>
-        <result column="a" jdbcType="TINYINT" property="a"/>
-        <result column="expire_time" jdbcType="INTEGER" property="expireTime"/>
-        <result column="cp_id" jdbcType="INTEGER" property="cpId"/>
-        <result column="cp_name" jdbcType="VARCHAR" property="cpName"/>
-        <result column="tags" jdbcType="VARCHAR" property="tags"/>
-        <result column="classify_white_list" jdbcType="TINYINT" property="classifyWhiteList"/>
-        <result column="put_ad_set" jdbcType="TINYINT" property="putAdSet"/>
-        <result column="categoryName" jdbcType="VARCHAR" property="categoryName"/>
-    </resultMap>
-
-    <select id="queryBookRes" resultMap="BaseResultMap">
-        SELECT t.*, c.`name` as "categoryName"
-        from book t
-                 left join book_category c on t.`book_category_id` = c.`id`
-        where t.state = '1'
-          and (t.`name` like #{queryVO.query} or t.author like #{queryVO.query}) limit #{page}
-            , #{size};
-    </select>
-    <select id="topRecommend" resultMap="BaseResultMap">
-        SELECT t.*,
-               c.`name`  as "categoryName"
-        FROM book t
-                 LEFT JOIN book_category c ON t.`book_category_id` = c.`id`
-        WHERE t.id IN (
-            SELECT book_id
-            FROM return_recommand
-            WHERE sex = #{queryVO.sex}
-              AND STATUS = 'normal'
-        ) LIMIT #{page},#{size}
-    </select>
-    <select id="novelEndRecommend" resultMap="BaseResultMap">
-        SELECT t.*,c.name AS "categoryName"  FROM
-            (
-                SELECT t.*,b.*  FROM
-                    (
-                        SELECT book_id,weight FROM novel_end_recommend
-                        WHERE sex = #{queryVO.sex} AND STATUS = 'normal'
-                    ) t
-                        LEFT JOIN book b ON b.id = t.book_id
-            ) t JOIN book_category c on t.book_category_id=c.id ORDER BY weight DESC  LIMIT #{page},#{size}
-    </select>
-    <select id="smartRecommand" resultMap="BaseResultMap">
-        SELECT t.*,c.name AS "categoryName"  FROM
-            (
-                SELECT t.*,b.*  FROM
-                    (
-                        SELECT book_id FROM smart_recommand
-                        WHERE sex = #{queryVO.sex} AND STATUS = 'normal'
-                    ) t
-                        LEFT JOIN book b ON b.id = t.book_id
-            ) t JOIN book_category c on t.book_category_id=c.id
-    </select>
-
-</mapper>

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

@@ -1,676 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
-<mapper namespace="com.book.server.dao.mapper.BookCategoryMapper">
-  <resultMap id="BaseResultMap" type="com.book.dao.cps.pojo.BookCategory">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Mon Aug 16 23:54:49 CST 2021.
-    -->
-    <id column="id" jdbcType="INTEGER" property="id" />
-    <result column="name" jdbcType="VARCHAR" property="name" />
-    <result column="image" jdbcType="VARCHAR" property="image" />
-    <result column="sex" jdbcType="CHAR" property="sex" />
-    <result column="weigh" jdbcType="INTEGER" property="weigh" />
-    <result column="status" jdbcType="CHAR" property="status" />
-    <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 Mon Aug 16 23:54:49 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 Mon Aug 16 23:54:49 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 Mon Aug 16 23:54:49 CST 2021.
-    -->
-    id, name, image, sex, weigh, status, createtime, updatetime
-  </sql>
-  <select id="selectByExample" parameterType="com.book.dao.cps.pojo.example.BookCategoryExample" resultMap="BaseResultMap">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Mon Aug 16 23:54:49 CST 2021.
-    -->
-    select
-    <if test="distinct">
-      distinct
-    </if>
-    <include refid="Base_Column_List" />
-    from book_category
-    <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 Mon Aug 16 23:54:49 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 book_category
-    <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 Mon Aug 16 23:54:49 CST 2021.
-    -->
-    select 
-    <include refid="Base_Column_List" />
-    from book_category
-    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 Mon Aug 16 23:54:49 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 book_category
-    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 Mon Aug 16 23:54:49 CST 2021.
-    -->
-    delete from book_category
-    where id = #{id,jdbcType=INTEGER}
-  </delete>
-  <delete id="deleteByExample" parameterType="com.book.dao.cps.pojo.example.BookCategoryExample">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Mon Aug 16 23:54:49 CST 2021.
-    -->
-    delete from book_category
-    <if test="_parameter != null">
-      <include refid="Example_Where_Clause" />
-    </if>
-  </delete>
-  <insert id="insert" parameterType="com.book.dao.cps.pojo.BookCategory">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Mon Aug 16 23:54:49 CST 2021.
-    -->
-    insert into book_category (id, name, image, 
-      sex, weigh, status, createtime, 
-      updatetime)
-    values (#{id,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, #{image,jdbcType=VARCHAR}, 
-      #{sex,jdbcType=CHAR}, #{weigh,jdbcType=INTEGER}, #{status,jdbcType=CHAR}, #{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 Mon Aug 16 23:54:49 CST 2021.
-    -->
-    insert into book_category
-    <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.name != null">
-            name,
-          </if>
-          <if test="record.image != null">
-            image,
-          </if>
-          <if test="record.sex != null">
-            sex,
-          </if>
-          <if test="record.weigh != null">
-            weigh,
-          </if>
-          <if test="record.status != null">
-            status,
-          </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.name != null">
-            #{record.name,jdbcType=VARCHAR},
-          </if>
-          <if test="record.image != null">
-            #{record.image,jdbcType=VARCHAR},
-          </if>
-          <if test="record.sex != null">
-            #{record.sex,jdbcType=CHAR},
-          </if>
-          <if test="record.weigh != null">
-            #{record.weigh,jdbcType=INTEGER},
-          </if>
-          <if test="record.status != null">
-            #{record.status,jdbcType=CHAR},
-          </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.dao.cps.pojo.example.BookCategoryExample" resultType="java.lang.Long">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Mon Aug 16 23:54:49 CST 2021.
-    -->
-    select count(*) from book_category
-    <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 Mon Aug 16 23:54:49 CST 2021.
-    -->
-    update book_category
-    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.name != null">
-            name = #{record.name,jdbcType=VARCHAR},
-          </if>
-          <if test="record.image != null">
-            image = #{record.image,jdbcType=VARCHAR},
-          </if>
-          <if test="record.sex != null">
-            sex = #{record.sex,jdbcType=CHAR},
-          </if>
-          <if test="record.weigh != null">
-            weigh = #{record.weigh,jdbcType=INTEGER},
-          </if>
-          <if test="record.status != null">
-            status = #{record.status,jdbcType=CHAR},
-          </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 Mon Aug 16 23:54:49 CST 2021.
-    -->
-    update book_category
-    set id = #{record.id,jdbcType=INTEGER},
-      name = #{record.name,jdbcType=VARCHAR},
-      image = #{record.image,jdbcType=VARCHAR},
-      sex = #{record.sex,jdbcType=CHAR},
-      weigh = #{record.weigh,jdbcType=INTEGER},
-      status = #{record.status,jdbcType=CHAR},
-      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 Mon Aug 16 23:54:49 CST 2021.
-    -->
-    update book_category
-    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.name != null">
-            name = #{record.name,jdbcType=VARCHAR},
-          </if>
-          <if test="record.image != null">
-            image = #{record.image,jdbcType=VARCHAR},
-          </if>
-          <if test="record.sex != null">
-            sex = #{record.sex,jdbcType=CHAR},
-          </if>
-          <if test="record.weigh != null">
-            weigh = #{record.weigh,jdbcType=INTEGER},
-          </if>
-          <if test="record.status != null">
-            status = #{record.status,jdbcType=CHAR},
-          </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.dao.cps.pojo.BookCategory">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Mon Aug 16 23:54:49 CST 2021.
-    -->
-    update book_category
-    set name = #{name,jdbcType=VARCHAR},
-      image = #{image,jdbcType=VARCHAR},
-      sex = #{sex,jdbcType=CHAR},
-      weigh = #{weigh,jdbcType=INTEGER},
-      status = #{status,jdbcType=CHAR},
-      createtime = #{createtime,jdbcType=INTEGER},
-      updatetime = #{updatetime,jdbcType=INTEGER}
-    where id = #{id,jdbcType=INTEGER}
-  </update>
-  <select id="selectOneByExample" parameterType="com.book.dao.cps.pojo.example.BookCategoryExample" resultMap="BaseResultMap">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Mon Aug 16 23:54:49 CST 2021.
-    -->
-    select
-    <include refid="Base_Column_List" />
-    from book_category
-    <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 Mon Aug 16 23:54:49 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 book_category
-    <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 Mon Aug 16 23:54:49 CST 2021.
-    -->
-    insert into book_category
-    (id, name, image, sex, weigh, status, createtime, updatetime)
-    values
-    <foreach collection="list" item="item" separator=",">
-      (#{item.id,jdbcType=INTEGER}, #{item.name,jdbcType=VARCHAR}, #{item.image,jdbcType=VARCHAR}, 
-        #{item.sex,jdbcType=CHAR}, #{item.weigh,jdbcType=INTEGER}, #{item.status,jdbcType=CHAR}, 
-        #{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 Mon Aug 16 23:54:49 CST 2021.
-    -->
-    insert into book_category (
-    <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="'name'.toString() == column.value">
-          #{item.name,jdbcType=VARCHAR}
-        </if>
-        <if test="'image'.toString() == column.value">
-          #{item.image,jdbcType=VARCHAR}
-        </if>
-        <if test="'sex'.toString() == column.value">
-          #{item.sex,jdbcType=CHAR}
-        </if>
-        <if test="'weigh'.toString() == column.value">
-          #{item.weigh,jdbcType=INTEGER}
-        </if>
-        <if test="'status'.toString() == column.value">
-          #{item.status,jdbcType=CHAR}
-        </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 Mon Aug 16 23:54:49 CST 2021.
-    -->
-    insert into book_category
-    <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.name != null">
-            name,
-          </if>
-          <if test="record.image != null">
-            image,
-          </if>
-          <if test="record.sex != null">
-            sex,
-          </if>
-          <if test="record.weigh != null">
-            weigh,
-          </if>
-          <if test="record.status != null">
-            status,
-          </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.name != null">
-            #{record.name,jdbcType=VARCHAR},
-          </if>
-          <if test="record.image != null">
-            #{record.image,jdbcType=VARCHAR},
-          </if>
-          <if test="record.sex != null">
-            #{record.sex,jdbcType=CHAR},
-          </if>
-          <if test="record.weigh != null">
-            #{record.weigh,jdbcType=INTEGER},
-          </if>
-          <if test="record.status != null">
-            #{record.status,jdbcType=CHAR},
-          </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.name != null">
-            name = #{record.name,jdbcType=VARCHAR},
-          </if>
-          <if test="record.image != null">
-            image = #{record.image,jdbcType=VARCHAR},
-          </if>
-          <if test="record.sex != null">
-            sex = #{record.sex,jdbcType=CHAR},
-          </if>
-          <if test="record.weigh != null">
-            weigh = #{record.weigh,jdbcType=INTEGER},
-          </if>
-          <if test="record.status != null">
-            status = #{record.status,jdbcType=CHAR},
-          </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.dao.cps.pojo.BookCategory">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Mon Aug 16 23:54:49 CST 2021.
-    -->
-    insert into book_category
-    (id, name, image, sex, weigh, status, createtime, updatetime)
-    values
-    (#{id,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, #{image,jdbcType=VARCHAR}, #{sex,jdbcType=CHAR}, 
-      #{weigh,jdbcType=INTEGER}, #{status,jdbcType=CHAR}, #{createtime,jdbcType=INTEGER}, 
-      #{updatetime,jdbcType=INTEGER})
-    on duplicate key update 
-    id = #{id,jdbcType=INTEGER}, 
-    name = #{name,jdbcType=VARCHAR}, 
-    image = #{image,jdbcType=VARCHAR}, 
-    sex = #{sex,jdbcType=CHAR}, 
-    weigh = #{weigh,jdbcType=INTEGER}, 
-    status = #{status,jdbcType=CHAR}, 
-    createtime = #{createtime,jdbcType=INTEGER}, 
-    updatetime = #{updatetime,jdbcType=INTEGER}
-  </insert>
-</mapper>

+ 0 - 1960
book-server/src/main/resources/mapper/BookMapper.xml

@@ -1,1960 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
-<mapper namespace="com.book.server.dao.mapper.BookMapper">
-  <resultMap id="BaseResultMap" type="com.book.dao.cps.pojo.Book">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Aug 12 00:28:56 CST 2021.
-    -->
-    <id column="id" jdbcType="BIGINT" property="id" />
-    <result column="is_audio" jdbcType="TINYINT" property="isAudio" />
-    <result column="book_category_id" jdbcType="INTEGER" property="bookCategoryId" />
-    <result column="name" jdbcType="VARCHAR" property="name" />
-    <result column="realname" jdbcType="VARCHAR" property="realname" />
-    <result column="title" jdbcType="VARCHAR" property="title" />
-    <result column="author" jdbcType="VARCHAR" property="author" />
-    <result column="image" jdbcType="VARCHAR" property="image" />
-    <result column="big_cover" jdbcType="VARCHAR" property="bigCover" />
-    <result column="small_cover" jdbcType="VARCHAR" property="smallCover" />
-    <result column="description" jdbcType="VARCHAR" property="description" />
-    <result column="idx" jdbcType="INTEGER" property="idx" />
-    <result column="referral_num" jdbcType="TINYINT" property="referralNum" />
-    <result column="idxx" jdbcType="INTEGER" property="idxx" />
-    <result column="state" jdbcType="CHAR" property="state" />
-    <result column="free_stime" jdbcType="INTEGER" property="freeStime" />
-    <result column="free_etime" jdbcType="INTEGER" property="freeEtime" />
-    <result column="sex" jdbcType="CHAR" property="sex" />
-    <result column="billing_type" jdbcType="CHAR" property="billingType" />
-    <result column="price" jdbcType="INTEGER" property="price" />
-    <result column="app_price" jdbcType="INTEGER" property="appPrice" />
-    <result column="is_finish" jdbcType="CHAR" property="isFinish" />
-    <result column="free_chapter_num" jdbcType="INTEGER" property="freeChapterNum" />
-    <result column="word_count" jdbcType="VARCHAR" property="wordCount" />
-    <result column="chapter_num" jdbcType="INTEGER" property="chapterNum" />
-    <result column="first_chapter_id" jdbcType="BIGINT" property="firstChapterId" />
-    <result column="first_chapter_name" jdbcType="VARCHAR" property="firstChapterName" />
-    <result column="last_chapter_id" jdbcType="BIGINT" property="lastChapterId" />
-    <result column="last_chapter_name" jdbcType="VARCHAR" property="lastChapterName" />
-    <result column="last_chapter_utime" jdbcType="INTEGER" property="lastChapterUtime" />
-    <result column="read_num" jdbcType="INTEGER" property="readNum" />
-    <result column="article_chapter_order" jdbcType="INTEGER" property="articleChapterOrder" />
-    <result column="attent_chapter_order" jdbcType="INTEGER" property="attentChapterOrder" />
-    <result column="corner_mark" jdbcType="CHAR" property="cornerMark" />
-    <result column="recommand_book_id" jdbcType="BIGINT" property="recommandBookId" />
-    <result column="createtime" jdbcType="INTEGER" property="createtime" />
-    <result column="updatetime" jdbcType="INTEGER" property="updatetime" />
-    <result column="keywords" jdbcType="VARCHAR" property="keywords" />
-    <result column="cansee" jdbcType="CHAR" property="cansee" />
-    <result column="rank" jdbcType="TINYINT" property="rank" />
-    <result column="check_rank" jdbcType="TINYINT" property="checkRank" />
-    <result column="check_remark" jdbcType="VARCHAR" property="checkRemark" />
-    <result column="editor_recommand" jdbcType="VARCHAR" property="editorRecommand" />
-    <result column="book_tags" jdbcType="VARCHAR" property="bookTags" />
-    <result column="a" jdbcType="TINYINT" property="a" />
-    <result column="expire_time" jdbcType="INTEGER" property="expireTime" />
-    <result column="cp_id" jdbcType="INTEGER" property="cpId" />
-    <result column="cp_name" jdbcType="VARCHAR" property="cpName" />
-    <result column="tags" jdbcType="VARCHAR" property="tags" />
-    <result column="classify_white_list" jdbcType="TINYINT" property="classifyWhiteList" />
-    <result column="put_ad_set" jdbcType="TINYINT" property="putAdSet" />
-  </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 Thu Aug 12 00:28:56 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 Thu Aug 12 00:28:56 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 Thu Aug 12 00:28:56 CST 2021.
-    -->
-    id, is_audio, book_category_id, name, realname, title, author, image, big_cover, 
-    small_cover, description, idx, referral_num, idxx, state, free_stime, free_etime, 
-    sex, billing_type, price, app_price, is_finish, free_chapter_num, word_count, chapter_num, 
-    first_chapter_id, first_chapter_name, last_chapter_id, last_chapter_name, last_chapter_utime, 
-    read_num, article_chapter_order, attent_chapter_order, corner_mark, recommand_book_id, 
-    createtime, updatetime, keywords, cansee, rank, check_rank, check_remark, editor_recommand, 
-    book_tags, a, expire_time, cp_id, cp_name, tags, classify_white_list, put_ad_set
-  </sql>
-  <select id="selectByExample" parameterType="com.book.dao.cps.pojo.example.BookExample" resultMap="BaseResultMap">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Aug 12 00:28:56 CST 2021.
-    -->
-    select
-    <if test="distinct">
-      distinct
-    </if>
-    <include refid="Base_Column_List" />
-    from book
-    <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 Thu Aug 12 00:28:56 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 book
-    <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.Long" resultMap="BaseResultMap">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Aug 12 00:28:56 CST 2021.
-    -->
-    select 
-    <include refid="Base_Column_List" />
-    from book
-    where id = #{id,jdbcType=BIGINT}
-  </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 Thu Aug 12 00:28:56 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 book
-    where id = #{id,jdbcType=BIGINT}
-  </select>
-  <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Aug 12 00:28:56 CST 2021.
-    -->
-    delete from book
-    where id = #{id,jdbcType=BIGINT}
-  </delete>
-  <delete id="deleteByExample" parameterType="com.book.dao.cps.pojo.example.BookExample">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Aug 12 00:28:56 CST 2021.
-    -->
-    delete from book
-    <if test="_parameter != null">
-      <include refid="Example_Where_Clause" />
-    </if>
-  </delete>
-  <insert id="insert" parameterType="com.book.dao.cps.pojo.Book">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Aug 12 00:28:56 CST 2021.
-    -->
-    insert into book (id, is_audio, book_category_id, 
-      name, realname, title, 
-      author, image, big_cover, 
-      small_cover, description, idx, 
-      referral_num, idxx, state, 
-      free_stime, free_etime, sex, 
-      billing_type, price, app_price, 
-      is_finish, free_chapter_num, word_count, 
-      chapter_num, first_chapter_id, first_chapter_name, 
-      last_chapter_id, last_chapter_name, last_chapter_utime, 
-      read_num, article_chapter_order, attent_chapter_order, 
-      corner_mark, recommand_book_id, createtime, 
-      updatetime, keywords, cansee, 
-      rank, check_rank, check_remark, 
-      editor_recommand, book_tags, a, 
-      expire_time, cp_id, cp_name, 
-      tags, classify_white_list, put_ad_set
-      )
-    values (#{id,jdbcType=BIGINT}, #{isAudio,jdbcType=TINYINT}, #{bookCategoryId,jdbcType=INTEGER}, 
-      #{name,jdbcType=VARCHAR}, #{realname,jdbcType=VARCHAR}, #{title,jdbcType=VARCHAR}, 
-      #{author,jdbcType=VARCHAR}, #{image,jdbcType=VARCHAR}, #{bigCover,jdbcType=VARCHAR}, 
-      #{smallCover,jdbcType=VARCHAR}, #{description,jdbcType=VARCHAR}, #{idx,jdbcType=INTEGER}, 
-      #{referralNum,jdbcType=TINYINT}, #{idxx,jdbcType=INTEGER}, #{state,jdbcType=CHAR}, 
-      #{freeStime,jdbcType=INTEGER}, #{freeEtime,jdbcType=INTEGER}, #{sex,jdbcType=CHAR}, 
-      #{billingType,jdbcType=CHAR}, #{price,jdbcType=INTEGER}, #{appPrice,jdbcType=INTEGER}, 
-      #{isFinish,jdbcType=CHAR}, #{freeChapterNum,jdbcType=INTEGER}, #{wordCount,jdbcType=VARCHAR}, 
-      #{chapterNum,jdbcType=INTEGER}, #{firstChapterId,jdbcType=BIGINT}, #{firstChapterName,jdbcType=VARCHAR}, 
-      #{lastChapterId,jdbcType=BIGINT}, #{lastChapterName,jdbcType=VARCHAR}, #{lastChapterUtime,jdbcType=INTEGER}, 
-      #{readNum,jdbcType=INTEGER}, #{articleChapterOrder,jdbcType=INTEGER}, #{attentChapterOrder,jdbcType=INTEGER}, 
-      #{cornerMark,jdbcType=CHAR}, #{recommandBookId,jdbcType=BIGINT}, #{createtime,jdbcType=INTEGER}, 
-      #{updatetime,jdbcType=INTEGER}, #{keywords,jdbcType=VARCHAR}, #{cansee,jdbcType=CHAR}, 
-      #{rank,jdbcType=TINYINT}, #{checkRank,jdbcType=TINYINT}, #{checkRemark,jdbcType=VARCHAR}, 
-      #{editorRecommand,jdbcType=VARCHAR}, #{bookTags,jdbcType=VARCHAR}, #{a,jdbcType=TINYINT}, 
-      #{expireTime,jdbcType=INTEGER}, #{cpId,jdbcType=INTEGER}, #{cpName,jdbcType=VARCHAR}, 
-      #{tags,jdbcType=VARCHAR}, #{classifyWhiteList,jdbcType=TINYINT}, #{putAdSet,jdbcType=TINYINT}
-      )
-  </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 Thu Aug 12 00:28:56 CST 2021.
-    -->
-    insert into book
-    <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.isAudio != null">
-            is_audio,
-          </if>
-          <if test="record.bookCategoryId != null">
-            book_category_id,
-          </if>
-          <if test="record.name != null">
-            name,
-          </if>
-          <if test="record.realname != null">
-            realname,
-          </if>
-          <if test="record.title != null">
-            title,
-          </if>
-          <if test="record.author != null">
-            author,
-          </if>
-          <if test="record.image != null">
-            image,
-          </if>
-          <if test="record.bigCover != null">
-            big_cover,
-          </if>
-          <if test="record.smallCover != null">
-            small_cover,
-          </if>
-          <if test="record.description != null">
-            description,
-          </if>
-          <if test="record.idx != null">
-            idx,
-          </if>
-          <if test="record.referralNum != null">
-            referral_num,
-          </if>
-          <if test="record.idxx != null">
-            idxx,
-          </if>
-          <if test="record.state != null">
-            state,
-          </if>
-          <if test="record.freeStime != null">
-            free_stime,
-          </if>
-          <if test="record.freeEtime != null">
-            free_etime,
-          </if>
-          <if test="record.sex != null">
-            sex,
-          </if>
-          <if test="record.billingType != null">
-            billing_type,
-          </if>
-          <if test="record.price != null">
-            price,
-          </if>
-          <if test="record.appPrice != null">
-            app_price,
-          </if>
-          <if test="record.isFinish != null">
-            is_finish,
-          </if>
-          <if test="record.freeChapterNum != null">
-            free_chapter_num,
-          </if>
-          <if test="record.wordCount != null">
-            word_count,
-          </if>
-          <if test="record.chapterNum != null">
-            chapter_num,
-          </if>
-          <if test="record.firstChapterId != null">
-            first_chapter_id,
-          </if>
-          <if test="record.firstChapterName != null">
-            first_chapter_name,
-          </if>
-          <if test="record.lastChapterId != null">
-            last_chapter_id,
-          </if>
-          <if test="record.lastChapterName != null">
-            last_chapter_name,
-          </if>
-          <if test="record.lastChapterUtime != null">
-            last_chapter_utime,
-          </if>
-          <if test="record.readNum != null">
-            read_num,
-          </if>
-          <if test="record.articleChapterOrder != null">
-            article_chapter_order,
-          </if>
-          <if test="record.attentChapterOrder != null">
-            attent_chapter_order,
-          </if>
-          <if test="record.cornerMark != null">
-            corner_mark,
-          </if>
-          <if test="record.recommandBookId != null">
-            recommand_book_id,
-          </if>
-          <if test="record.createtime != null">
-            createtime,
-          </if>
-          <if test="record.updatetime != null">
-            updatetime,
-          </if>
-          <if test="record.keywords != null">
-            keywords,
-          </if>
-          <if test="record.cansee != null">
-            cansee,
-          </if>
-          <if test="record.rank != null">
-            rank,
-          </if>
-          <if test="record.checkRank != null">
-            check_rank,
-          </if>
-          <if test="record.checkRemark != null">
-            check_remark,
-          </if>
-          <if test="record.editorRecommand != null">
-            editor_recommand,
-          </if>
-          <if test="record.bookTags != null">
-            book_tags,
-          </if>
-          <if test="record.a != null">
-            a,
-          </if>
-          <if test="record.expireTime != null">
-            expire_time,
-          </if>
-          <if test="record.cpId != null">
-            cp_id,
-          </if>
-          <if test="record.cpName != null">
-            cp_name,
-          </if>
-          <if test="record.tags != null">
-            tags,
-          </if>
-          <if test="record.classifyWhiteList != null">
-            classify_white_list,
-          </if>
-          <if test="record.putAdSet != null">
-            put_ad_set,
-          </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=BIGINT},
-          </if>
-          <if test="record.isAudio != null">
-            #{record.isAudio,jdbcType=TINYINT},
-          </if>
-          <if test="record.bookCategoryId != null">
-            #{record.bookCategoryId,jdbcType=INTEGER},
-          </if>
-          <if test="record.name != null">
-            #{record.name,jdbcType=VARCHAR},
-          </if>
-          <if test="record.realname != null">
-            #{record.realname,jdbcType=VARCHAR},
-          </if>
-          <if test="record.title != null">
-            #{record.title,jdbcType=VARCHAR},
-          </if>
-          <if test="record.author != null">
-            #{record.author,jdbcType=VARCHAR},
-          </if>
-          <if test="record.image != null">
-            #{record.image,jdbcType=VARCHAR},
-          </if>
-          <if test="record.bigCover != null">
-            #{record.bigCover,jdbcType=VARCHAR},
-          </if>
-          <if test="record.smallCover != null">
-            #{record.smallCover,jdbcType=VARCHAR},
-          </if>
-          <if test="record.description != null">
-            #{record.description,jdbcType=VARCHAR},
-          </if>
-          <if test="record.idx != null">
-            #{record.idx,jdbcType=INTEGER},
-          </if>
-          <if test="record.referralNum != null">
-            #{record.referralNum,jdbcType=TINYINT},
-          </if>
-          <if test="record.idxx != null">
-            #{record.idxx,jdbcType=INTEGER},
-          </if>
-          <if test="record.state != null">
-            #{record.state,jdbcType=CHAR},
-          </if>
-          <if test="record.freeStime != null">
-            #{record.freeStime,jdbcType=INTEGER},
-          </if>
-          <if test="record.freeEtime != null">
-            #{record.freeEtime,jdbcType=INTEGER},
-          </if>
-          <if test="record.sex != null">
-            #{record.sex,jdbcType=CHAR},
-          </if>
-          <if test="record.billingType != null">
-            #{record.billingType,jdbcType=CHAR},
-          </if>
-          <if test="record.price != null">
-            #{record.price,jdbcType=INTEGER},
-          </if>
-          <if test="record.appPrice != null">
-            #{record.appPrice,jdbcType=INTEGER},
-          </if>
-          <if test="record.isFinish != null">
-            #{record.isFinish,jdbcType=CHAR},
-          </if>
-          <if test="record.freeChapterNum != null">
-            #{record.freeChapterNum,jdbcType=INTEGER},
-          </if>
-          <if test="record.wordCount != null">
-            #{record.wordCount,jdbcType=VARCHAR},
-          </if>
-          <if test="record.chapterNum != null">
-            #{record.chapterNum,jdbcType=INTEGER},
-          </if>
-          <if test="record.firstChapterId != null">
-            #{record.firstChapterId,jdbcType=BIGINT},
-          </if>
-          <if test="record.firstChapterName != null">
-            #{record.firstChapterName,jdbcType=VARCHAR},
-          </if>
-          <if test="record.lastChapterId != null">
-            #{record.lastChapterId,jdbcType=BIGINT},
-          </if>
-          <if test="record.lastChapterName != null">
-            #{record.lastChapterName,jdbcType=VARCHAR},
-          </if>
-          <if test="record.lastChapterUtime != null">
-            #{record.lastChapterUtime,jdbcType=INTEGER},
-          </if>
-          <if test="record.readNum != null">
-            #{record.readNum,jdbcType=INTEGER},
-          </if>
-          <if test="record.articleChapterOrder != null">
-            #{record.articleChapterOrder,jdbcType=INTEGER},
-          </if>
-          <if test="record.attentChapterOrder != null">
-            #{record.attentChapterOrder,jdbcType=INTEGER},
-          </if>
-          <if test="record.cornerMark != null">
-            #{record.cornerMark,jdbcType=CHAR},
-          </if>
-          <if test="record.recommandBookId != null">
-            #{record.recommandBookId,jdbcType=BIGINT},
-          </if>
-          <if test="record.createtime != null">
-            #{record.createtime,jdbcType=INTEGER},
-          </if>
-          <if test="record.updatetime != null">
-            #{record.updatetime,jdbcType=INTEGER},
-          </if>
-          <if test="record.keywords != null">
-            #{record.keywords,jdbcType=VARCHAR},
-          </if>
-          <if test="record.cansee != null">
-            #{record.cansee,jdbcType=CHAR},
-          </if>
-          <if test="record.rank != null">
-            #{record.rank,jdbcType=TINYINT},
-          </if>
-          <if test="record.checkRank != null">
-            #{record.checkRank,jdbcType=TINYINT},
-          </if>
-          <if test="record.checkRemark != null">
-            #{record.checkRemark,jdbcType=VARCHAR},
-          </if>
-          <if test="record.editorRecommand != null">
-            #{record.editorRecommand,jdbcType=VARCHAR},
-          </if>
-          <if test="record.bookTags != null">
-            #{record.bookTags,jdbcType=VARCHAR},
-          </if>
-          <if test="record.a != null">
-            #{record.a,jdbcType=TINYINT},
-          </if>
-          <if test="record.expireTime != null">
-            #{record.expireTime,jdbcType=INTEGER},
-          </if>
-          <if test="record.cpId != null">
-            #{record.cpId,jdbcType=INTEGER},
-          </if>
-          <if test="record.cpName != null">
-            #{record.cpName,jdbcType=VARCHAR},
-          </if>
-          <if test="record.tags != null">
-            #{record.tags,jdbcType=VARCHAR},
-          </if>
-          <if test="record.classifyWhiteList != null">
-            #{record.classifyWhiteList,jdbcType=TINYINT},
-          </if>
-          <if test="record.putAdSet != null">
-            #{record.putAdSet,jdbcType=TINYINT},
-          </if>
-        </trim>
-      </otherwise>
-    </choose>
-  </insert>
-  <select id="countByExample" parameterType="com.book.dao.cps.pojo.example.BookExample" resultType="java.lang.Long">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Aug 12 00:28:56 CST 2021.
-    -->
-    select count(*) from book
-    <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 Thu Aug 12 00:28:56 CST 2021.
-    -->
-    update book
-    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=BIGINT},
-          </if>
-          <if test="record.isAudio != null">
-            is_audio = #{record.isAudio,jdbcType=TINYINT},
-          </if>
-          <if test="record.bookCategoryId != null">
-            book_category_id = #{record.bookCategoryId,jdbcType=INTEGER},
-          </if>
-          <if test="record.name != null">
-            name = #{record.name,jdbcType=VARCHAR},
-          </if>
-          <if test="record.realname != null">
-            realname = #{record.realname,jdbcType=VARCHAR},
-          </if>
-          <if test="record.title != null">
-            title = #{record.title,jdbcType=VARCHAR},
-          </if>
-          <if test="record.author != null">
-            author = #{record.author,jdbcType=VARCHAR},
-          </if>
-          <if test="record.image != null">
-            image = #{record.image,jdbcType=VARCHAR},
-          </if>
-          <if test="record.bigCover != null">
-            big_cover = #{record.bigCover,jdbcType=VARCHAR},
-          </if>
-          <if test="record.smallCover != null">
-            small_cover = #{record.smallCover,jdbcType=VARCHAR},
-          </if>
-          <if test="record.description != null">
-            description = #{record.description,jdbcType=VARCHAR},
-          </if>
-          <if test="record.idx != null">
-            idx = #{record.idx,jdbcType=INTEGER},
-          </if>
-          <if test="record.referralNum != null">
-            referral_num = #{record.referralNum,jdbcType=TINYINT},
-          </if>
-          <if test="record.idxx != null">
-            idxx = #{record.idxx,jdbcType=INTEGER},
-          </if>
-          <if test="record.state != null">
-            state = #{record.state,jdbcType=CHAR},
-          </if>
-          <if test="record.freeStime != null">
-            free_stime = #{record.freeStime,jdbcType=INTEGER},
-          </if>
-          <if test="record.freeEtime != null">
-            free_etime = #{record.freeEtime,jdbcType=INTEGER},
-          </if>
-          <if test="record.sex != null">
-            sex = #{record.sex,jdbcType=CHAR},
-          </if>
-          <if test="record.billingType != null">
-            billing_type = #{record.billingType,jdbcType=CHAR},
-          </if>
-          <if test="record.price != null">
-            price = #{record.price,jdbcType=INTEGER},
-          </if>
-          <if test="record.appPrice != null">
-            app_price = #{record.appPrice,jdbcType=INTEGER},
-          </if>
-          <if test="record.isFinish != null">
-            is_finish = #{record.isFinish,jdbcType=CHAR},
-          </if>
-          <if test="record.freeChapterNum != null">
-            free_chapter_num = #{record.freeChapterNum,jdbcType=INTEGER},
-          </if>
-          <if test="record.wordCount != null">
-            word_count = #{record.wordCount,jdbcType=VARCHAR},
-          </if>
-          <if test="record.chapterNum != null">
-            chapter_num = #{record.chapterNum,jdbcType=INTEGER},
-          </if>
-          <if test="record.firstChapterId != null">
-            first_chapter_id = #{record.firstChapterId,jdbcType=BIGINT},
-          </if>
-          <if test="record.firstChapterName != null">
-            first_chapter_name = #{record.firstChapterName,jdbcType=VARCHAR},
-          </if>
-          <if test="record.lastChapterId != null">
-            last_chapter_id = #{record.lastChapterId,jdbcType=BIGINT},
-          </if>
-          <if test="record.lastChapterName != null">
-            last_chapter_name = #{record.lastChapterName,jdbcType=VARCHAR},
-          </if>
-          <if test="record.lastChapterUtime != null">
-            last_chapter_utime = #{record.lastChapterUtime,jdbcType=INTEGER},
-          </if>
-          <if test="record.readNum != null">
-            read_num = #{record.readNum,jdbcType=INTEGER},
-          </if>
-          <if test="record.articleChapterOrder != null">
-            article_chapter_order = #{record.articleChapterOrder,jdbcType=INTEGER},
-          </if>
-          <if test="record.attentChapterOrder != null">
-            attent_chapter_order = #{record.attentChapterOrder,jdbcType=INTEGER},
-          </if>
-          <if test="record.cornerMark != null">
-            corner_mark = #{record.cornerMark,jdbcType=CHAR},
-          </if>
-          <if test="record.recommandBookId != null">
-            recommand_book_id = #{record.recommandBookId,jdbcType=BIGINT},
-          </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.keywords != null">
-            keywords = #{record.keywords,jdbcType=VARCHAR},
-          </if>
-          <if test="record.cansee != null">
-            cansee = #{record.cansee,jdbcType=CHAR},
-          </if>
-          <if test="record.rank != null">
-            rank = #{record.rank,jdbcType=TINYINT},
-          </if>
-          <if test="record.checkRank != null">
-            check_rank = #{record.checkRank,jdbcType=TINYINT},
-          </if>
-          <if test="record.checkRemark != null">
-            check_remark = #{record.checkRemark,jdbcType=VARCHAR},
-          </if>
-          <if test="record.editorRecommand != null">
-            editor_recommand = #{record.editorRecommand,jdbcType=VARCHAR},
-          </if>
-          <if test="record.bookTags != null">
-            book_tags = #{record.bookTags,jdbcType=VARCHAR},
-          </if>
-          <if test="record.a != null">
-            a = #{record.a,jdbcType=TINYINT},
-          </if>
-          <if test="record.expireTime != null">
-            expire_time = #{record.expireTime,jdbcType=INTEGER},
-          </if>
-          <if test="record.cpId != null">
-            cp_id = #{record.cpId,jdbcType=INTEGER},
-          </if>
-          <if test="record.cpName != null">
-            cp_name = #{record.cpName,jdbcType=VARCHAR},
-          </if>
-          <if test="record.tags != null">
-            tags = #{record.tags,jdbcType=VARCHAR},
-          </if>
-          <if test="record.classifyWhiteList != null">
-            classify_white_list = #{record.classifyWhiteList,jdbcType=TINYINT},
-          </if>
-          <if test="record.putAdSet != null">
-            put_ad_set = #{record.putAdSet,jdbcType=TINYINT},
-          </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 Thu Aug 12 00:28:56 CST 2021.
-    -->
-    update book
-    set id = #{record.id,jdbcType=BIGINT},
-      is_audio = #{record.isAudio,jdbcType=TINYINT},
-      book_category_id = #{record.bookCategoryId,jdbcType=INTEGER},
-      name = #{record.name,jdbcType=VARCHAR},
-      realname = #{record.realname,jdbcType=VARCHAR},
-      title = #{record.title,jdbcType=VARCHAR},
-      author = #{record.author,jdbcType=VARCHAR},
-      image = #{record.image,jdbcType=VARCHAR},
-      big_cover = #{record.bigCover,jdbcType=VARCHAR},
-      small_cover = #{record.smallCover,jdbcType=VARCHAR},
-      description = #{record.description,jdbcType=VARCHAR},
-      idx = #{record.idx,jdbcType=INTEGER},
-      referral_num = #{record.referralNum,jdbcType=TINYINT},
-      idxx = #{record.idxx,jdbcType=INTEGER},
-      state = #{record.state,jdbcType=CHAR},
-      free_stime = #{record.freeStime,jdbcType=INTEGER},
-      free_etime = #{record.freeEtime,jdbcType=INTEGER},
-      sex = #{record.sex,jdbcType=CHAR},
-      billing_type = #{record.billingType,jdbcType=CHAR},
-      price = #{record.price,jdbcType=INTEGER},
-      app_price = #{record.appPrice,jdbcType=INTEGER},
-      is_finish = #{record.isFinish,jdbcType=CHAR},
-      free_chapter_num = #{record.freeChapterNum,jdbcType=INTEGER},
-      word_count = #{record.wordCount,jdbcType=VARCHAR},
-      chapter_num = #{record.chapterNum,jdbcType=INTEGER},
-      first_chapter_id = #{record.firstChapterId,jdbcType=BIGINT},
-      first_chapter_name = #{record.firstChapterName,jdbcType=VARCHAR},
-      last_chapter_id = #{record.lastChapterId,jdbcType=BIGINT},
-      last_chapter_name = #{record.lastChapterName,jdbcType=VARCHAR},
-      last_chapter_utime = #{record.lastChapterUtime,jdbcType=INTEGER},
-      read_num = #{record.readNum,jdbcType=INTEGER},
-      article_chapter_order = #{record.articleChapterOrder,jdbcType=INTEGER},
-      attent_chapter_order = #{record.attentChapterOrder,jdbcType=INTEGER},
-      corner_mark = #{record.cornerMark,jdbcType=CHAR},
-      recommand_book_id = #{record.recommandBookId,jdbcType=BIGINT},
-      createtime = #{record.createtime,jdbcType=INTEGER},
-      updatetime = #{record.updatetime,jdbcType=INTEGER},
-      keywords = #{record.keywords,jdbcType=VARCHAR},
-      cansee = #{record.cansee,jdbcType=CHAR},
-      rank = #{record.rank,jdbcType=TINYINT},
-      check_rank = #{record.checkRank,jdbcType=TINYINT},
-      check_remark = #{record.checkRemark,jdbcType=VARCHAR},
-      editor_recommand = #{record.editorRecommand,jdbcType=VARCHAR},
-      book_tags = #{record.bookTags,jdbcType=VARCHAR},
-      a = #{record.a,jdbcType=TINYINT},
-      expire_time = #{record.expireTime,jdbcType=INTEGER},
-      cp_id = #{record.cpId,jdbcType=INTEGER},
-      cp_name = #{record.cpName,jdbcType=VARCHAR},
-      tags = #{record.tags,jdbcType=VARCHAR},
-      classify_white_list = #{record.classifyWhiteList,jdbcType=TINYINT},
-      put_ad_set = #{record.putAdSet,jdbcType=TINYINT}
-    <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 Thu Aug 12 00:28:56 CST 2021.
-    -->
-    update book
-    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.isAudio != null">
-            is_audio = #{record.isAudio,jdbcType=TINYINT},
-          </if>
-          <if test="record.bookCategoryId != null">
-            book_category_id = #{record.bookCategoryId,jdbcType=INTEGER},
-          </if>
-          <if test="record.name != null">
-            name = #{record.name,jdbcType=VARCHAR},
-          </if>
-          <if test="record.realname != null">
-            realname = #{record.realname,jdbcType=VARCHAR},
-          </if>
-          <if test="record.title != null">
-            title = #{record.title,jdbcType=VARCHAR},
-          </if>
-          <if test="record.author != null">
-            author = #{record.author,jdbcType=VARCHAR},
-          </if>
-          <if test="record.image != null">
-            image = #{record.image,jdbcType=VARCHAR},
-          </if>
-          <if test="record.bigCover != null">
-            big_cover = #{record.bigCover,jdbcType=VARCHAR},
-          </if>
-          <if test="record.smallCover != null">
-            small_cover = #{record.smallCover,jdbcType=VARCHAR},
-          </if>
-          <if test="record.description != null">
-            description = #{record.description,jdbcType=VARCHAR},
-          </if>
-          <if test="record.idx != null">
-            idx = #{record.idx,jdbcType=INTEGER},
-          </if>
-          <if test="record.referralNum != null">
-            referral_num = #{record.referralNum,jdbcType=TINYINT},
-          </if>
-          <if test="record.idxx != null">
-            idxx = #{record.idxx,jdbcType=INTEGER},
-          </if>
-          <if test="record.state != null">
-            state = #{record.state,jdbcType=CHAR},
-          </if>
-          <if test="record.freeStime != null">
-            free_stime = #{record.freeStime,jdbcType=INTEGER},
-          </if>
-          <if test="record.freeEtime != null">
-            free_etime = #{record.freeEtime,jdbcType=INTEGER},
-          </if>
-          <if test="record.sex != null">
-            sex = #{record.sex,jdbcType=CHAR},
-          </if>
-          <if test="record.billingType != null">
-            billing_type = #{record.billingType,jdbcType=CHAR},
-          </if>
-          <if test="record.price != null">
-            price = #{record.price,jdbcType=INTEGER},
-          </if>
-          <if test="record.appPrice != null">
-            app_price = #{record.appPrice,jdbcType=INTEGER},
-          </if>
-          <if test="record.isFinish != null">
-            is_finish = #{record.isFinish,jdbcType=CHAR},
-          </if>
-          <if test="record.freeChapterNum != null">
-            free_chapter_num = #{record.freeChapterNum,jdbcType=INTEGER},
-          </if>
-          <if test="record.wordCount != null">
-            word_count = #{record.wordCount,jdbcType=VARCHAR},
-          </if>
-          <if test="record.chapterNum != null">
-            chapter_num = #{record.chapterNum,jdbcType=INTEGER},
-          </if>
-          <if test="record.firstChapterId != null">
-            first_chapter_id = #{record.firstChapterId,jdbcType=BIGINT},
-          </if>
-          <if test="record.firstChapterName != null">
-            first_chapter_name = #{record.firstChapterName,jdbcType=VARCHAR},
-          </if>
-          <if test="record.lastChapterId != null">
-            last_chapter_id = #{record.lastChapterId,jdbcType=BIGINT},
-          </if>
-          <if test="record.lastChapterName != null">
-            last_chapter_name = #{record.lastChapterName,jdbcType=VARCHAR},
-          </if>
-          <if test="record.lastChapterUtime != null">
-            last_chapter_utime = #{record.lastChapterUtime,jdbcType=INTEGER},
-          </if>
-          <if test="record.readNum != null">
-            read_num = #{record.readNum,jdbcType=INTEGER},
-          </if>
-          <if test="record.articleChapterOrder != null">
-            article_chapter_order = #{record.articleChapterOrder,jdbcType=INTEGER},
-          </if>
-          <if test="record.attentChapterOrder != null">
-            attent_chapter_order = #{record.attentChapterOrder,jdbcType=INTEGER},
-          </if>
-          <if test="record.cornerMark != null">
-            corner_mark = #{record.cornerMark,jdbcType=CHAR},
-          </if>
-          <if test="record.recommandBookId != null">
-            recommand_book_id = #{record.recommandBookId,jdbcType=BIGINT},
-          </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.keywords != null">
-            keywords = #{record.keywords,jdbcType=VARCHAR},
-          </if>
-          <if test="record.cansee != null">
-            cansee = #{record.cansee,jdbcType=CHAR},
-          </if>
-          <if test="record.rank != null">
-            rank = #{record.rank,jdbcType=TINYINT},
-          </if>
-          <if test="record.checkRank != null">
-            check_rank = #{record.checkRank,jdbcType=TINYINT},
-          </if>
-          <if test="record.checkRemark != null">
-            check_remark = #{record.checkRemark,jdbcType=VARCHAR},
-          </if>
-          <if test="record.editorRecommand != null">
-            editor_recommand = #{record.editorRecommand,jdbcType=VARCHAR},
-          </if>
-          <if test="record.bookTags != null">
-            book_tags = #{record.bookTags,jdbcType=VARCHAR},
-          </if>
-          <if test="record.a != null">
-            a = #{record.a,jdbcType=TINYINT},
-          </if>
-          <if test="record.expireTime != null">
-            expire_time = #{record.expireTime,jdbcType=INTEGER},
-          </if>
-          <if test="record.cpId != null">
-            cp_id = #{record.cpId,jdbcType=INTEGER},
-          </if>
-          <if test="record.cpName != null">
-            cp_name = #{record.cpName,jdbcType=VARCHAR},
-          </if>
-          <if test="record.tags != null">
-            tags = #{record.tags,jdbcType=VARCHAR},
-          </if>
-          <if test="record.classifyWhiteList != null">
-            classify_white_list = #{record.classifyWhiteList,jdbcType=TINYINT},
-          </if>
-          <if test="record.putAdSet != null">
-            put_ad_set = #{record.putAdSet,jdbcType=TINYINT},
-          </if>
-        </trim>
-      </otherwise>
-    </choose>
-    where id = #{record.id,jdbcType=BIGINT}
-  </update>
-  <update id="updateByPrimaryKey" parameterType="com.book.dao.cps.pojo.Book">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Aug 12 00:28:56 CST 2021.
-    -->
-    update book
-    set is_audio = #{isAudio,jdbcType=TINYINT},
-      book_category_id = #{bookCategoryId,jdbcType=INTEGER},
-      name = #{name,jdbcType=VARCHAR},
-      realname = #{realname,jdbcType=VARCHAR},
-      title = #{title,jdbcType=VARCHAR},
-      author = #{author,jdbcType=VARCHAR},
-      image = #{image,jdbcType=VARCHAR},
-      big_cover = #{bigCover,jdbcType=VARCHAR},
-      small_cover = #{smallCover,jdbcType=VARCHAR},
-      description = #{description,jdbcType=VARCHAR},
-      idx = #{idx,jdbcType=INTEGER},
-      referral_num = #{referralNum,jdbcType=TINYINT},
-      idxx = #{idxx,jdbcType=INTEGER},
-      state = #{state,jdbcType=CHAR},
-      free_stime = #{freeStime,jdbcType=INTEGER},
-      free_etime = #{freeEtime,jdbcType=INTEGER},
-      sex = #{sex,jdbcType=CHAR},
-      billing_type = #{billingType,jdbcType=CHAR},
-      price = #{price,jdbcType=INTEGER},
-      app_price = #{appPrice,jdbcType=INTEGER},
-      is_finish = #{isFinish,jdbcType=CHAR},
-      free_chapter_num = #{freeChapterNum,jdbcType=INTEGER},
-      word_count = #{wordCount,jdbcType=VARCHAR},
-      chapter_num = #{chapterNum,jdbcType=INTEGER},
-      first_chapter_id = #{firstChapterId,jdbcType=BIGINT},
-      first_chapter_name = #{firstChapterName,jdbcType=VARCHAR},
-      last_chapter_id = #{lastChapterId,jdbcType=BIGINT},
-      last_chapter_name = #{lastChapterName,jdbcType=VARCHAR},
-      last_chapter_utime = #{lastChapterUtime,jdbcType=INTEGER},
-      read_num = #{readNum,jdbcType=INTEGER},
-      article_chapter_order = #{articleChapterOrder,jdbcType=INTEGER},
-      attent_chapter_order = #{attentChapterOrder,jdbcType=INTEGER},
-      corner_mark = #{cornerMark,jdbcType=CHAR},
-      recommand_book_id = #{recommandBookId,jdbcType=BIGINT},
-      createtime = #{createtime,jdbcType=INTEGER},
-      updatetime = #{updatetime,jdbcType=INTEGER},
-      keywords = #{keywords,jdbcType=VARCHAR},
-      cansee = #{cansee,jdbcType=CHAR},
-      rank = #{rank,jdbcType=TINYINT},
-      check_rank = #{checkRank,jdbcType=TINYINT},
-      check_remark = #{checkRemark,jdbcType=VARCHAR},
-      editor_recommand = #{editorRecommand,jdbcType=VARCHAR},
-      book_tags = #{bookTags,jdbcType=VARCHAR},
-      a = #{a,jdbcType=TINYINT},
-      expire_time = #{expireTime,jdbcType=INTEGER},
-      cp_id = #{cpId,jdbcType=INTEGER},
-      cp_name = #{cpName,jdbcType=VARCHAR},
-      tags = #{tags,jdbcType=VARCHAR},
-      classify_white_list = #{classifyWhiteList,jdbcType=TINYINT},
-      put_ad_set = #{putAdSet,jdbcType=TINYINT}
-    where id = #{id,jdbcType=BIGINT}
-  </update>
-  <select id="selectOneByExample" parameterType="com.book.dao.cps.pojo.example.BookExample" resultMap="BaseResultMap">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Aug 12 00:28:56 CST 2021.
-    -->
-    select
-    <include refid="Base_Column_List" />
-    from book
-    <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 Thu Aug 12 00:28:56 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 book
-    <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 Thu Aug 12 00:28:56 CST 2021.
-    -->
-    insert into book
-    (id, is_audio, book_category_id, name, realname, title, author, image, big_cover, 
-      small_cover, description, idx, referral_num, idxx, state, free_stime, free_etime, 
-      sex, billing_type, price, app_price, is_finish, free_chapter_num, word_count, chapter_num, 
-      first_chapter_id, first_chapter_name, last_chapter_id, last_chapter_name, last_chapter_utime, 
-      read_num, article_chapter_order, attent_chapter_order, corner_mark, recommand_book_id, 
-      createtime, updatetime, keywords, cansee, rank, check_rank, check_remark, editor_recommand, 
-      book_tags, a, expire_time, cp_id, cp_name, tags, classify_white_list, put_ad_set
-      )
-    values
-    <foreach collection="list" item="item" separator=",">
-      (#{item.id,jdbcType=BIGINT}, #{item.isAudio,jdbcType=TINYINT}, #{item.bookCategoryId,jdbcType=INTEGER}, 
-        #{item.name,jdbcType=VARCHAR}, #{item.realname,jdbcType=VARCHAR}, #{item.title,jdbcType=VARCHAR}, 
-        #{item.author,jdbcType=VARCHAR}, #{item.image,jdbcType=VARCHAR}, #{item.bigCover,jdbcType=VARCHAR}, 
-        #{item.smallCover,jdbcType=VARCHAR}, #{item.description,jdbcType=VARCHAR}, #{item.idx,jdbcType=INTEGER}, 
-        #{item.referralNum,jdbcType=TINYINT}, #{item.idxx,jdbcType=INTEGER}, #{item.state,jdbcType=CHAR}, 
-        #{item.freeStime,jdbcType=INTEGER}, #{item.freeEtime,jdbcType=INTEGER}, #{item.sex,jdbcType=CHAR}, 
-        #{item.billingType,jdbcType=CHAR}, #{item.price,jdbcType=INTEGER}, #{item.appPrice,jdbcType=INTEGER}, 
-        #{item.isFinish,jdbcType=CHAR}, #{item.freeChapterNum,jdbcType=INTEGER}, #{item.wordCount,jdbcType=VARCHAR}, 
-        #{item.chapterNum,jdbcType=INTEGER}, #{item.firstChapterId,jdbcType=BIGINT}, #{item.firstChapterName,jdbcType=VARCHAR}, 
-        #{item.lastChapterId,jdbcType=BIGINT}, #{item.lastChapterName,jdbcType=VARCHAR}, 
-        #{item.lastChapterUtime,jdbcType=INTEGER}, #{item.readNum,jdbcType=INTEGER}, #{item.articleChapterOrder,jdbcType=INTEGER}, 
-        #{item.attentChapterOrder,jdbcType=INTEGER}, #{item.cornerMark,jdbcType=CHAR}, 
-        #{item.recommandBookId,jdbcType=BIGINT}, #{item.createtime,jdbcType=INTEGER}, #{item.updatetime,jdbcType=INTEGER}, 
-        #{item.keywords,jdbcType=VARCHAR}, #{item.cansee,jdbcType=CHAR}, #{item.rank,jdbcType=TINYINT}, 
-        #{item.checkRank,jdbcType=TINYINT}, #{item.checkRemark,jdbcType=VARCHAR}, #{item.editorRecommand,jdbcType=VARCHAR}, 
-        #{item.bookTags,jdbcType=VARCHAR}, #{item.a,jdbcType=TINYINT}, #{item.expireTime,jdbcType=INTEGER}, 
-        #{item.cpId,jdbcType=INTEGER}, #{item.cpName,jdbcType=VARCHAR}, #{item.tags,jdbcType=VARCHAR}, 
-        #{item.classifyWhiteList,jdbcType=TINYINT}, #{item.putAdSet,jdbcType=TINYINT})
-    </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 Thu Aug 12 00:28:56 CST 2021.
-    -->
-    insert into book (
-    <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=BIGINT}
-        </if>
-        <if test="'is_audio'.toString() == column.value">
-          #{item.isAudio,jdbcType=TINYINT}
-        </if>
-        <if test="'book_category_id'.toString() == column.value">
-          #{item.bookCategoryId,jdbcType=INTEGER}
-        </if>
-        <if test="'name'.toString() == column.value">
-          #{item.name,jdbcType=VARCHAR}
-        </if>
-        <if test="'realname'.toString() == column.value">
-          #{item.realname,jdbcType=VARCHAR}
-        </if>
-        <if test="'title'.toString() == column.value">
-          #{item.title,jdbcType=VARCHAR}
-        </if>
-        <if test="'author'.toString() == column.value">
-          #{item.author,jdbcType=VARCHAR}
-        </if>
-        <if test="'image'.toString() == column.value">
-          #{item.image,jdbcType=VARCHAR}
-        </if>
-        <if test="'big_cover'.toString() == column.value">
-          #{item.bigCover,jdbcType=VARCHAR}
-        </if>
-        <if test="'small_cover'.toString() == column.value">
-          #{item.smallCover,jdbcType=VARCHAR}
-        </if>
-        <if test="'description'.toString() == column.value">
-          #{item.description,jdbcType=VARCHAR}
-        </if>
-        <if test="'idx'.toString() == column.value">
-          #{item.idx,jdbcType=INTEGER}
-        </if>
-        <if test="'referral_num'.toString() == column.value">
-          #{item.referralNum,jdbcType=TINYINT}
-        </if>
-        <if test="'idxx'.toString() == column.value">
-          #{item.idxx,jdbcType=INTEGER}
-        </if>
-        <if test="'state'.toString() == column.value">
-          #{item.state,jdbcType=CHAR}
-        </if>
-        <if test="'free_stime'.toString() == column.value">
-          #{item.freeStime,jdbcType=INTEGER}
-        </if>
-        <if test="'free_etime'.toString() == column.value">
-          #{item.freeEtime,jdbcType=INTEGER}
-        </if>
-        <if test="'sex'.toString() == column.value">
-          #{item.sex,jdbcType=CHAR}
-        </if>
-        <if test="'billing_type'.toString() == column.value">
-          #{item.billingType,jdbcType=CHAR}
-        </if>
-        <if test="'price'.toString() == column.value">
-          #{item.price,jdbcType=INTEGER}
-        </if>
-        <if test="'app_price'.toString() == column.value">
-          #{item.appPrice,jdbcType=INTEGER}
-        </if>
-        <if test="'is_finish'.toString() == column.value">
-          #{item.isFinish,jdbcType=CHAR}
-        </if>
-        <if test="'free_chapter_num'.toString() == column.value">
-          #{item.freeChapterNum,jdbcType=INTEGER}
-        </if>
-        <if test="'word_count'.toString() == column.value">
-          #{item.wordCount,jdbcType=VARCHAR}
-        </if>
-        <if test="'chapter_num'.toString() == column.value">
-          #{item.chapterNum,jdbcType=INTEGER}
-        </if>
-        <if test="'first_chapter_id'.toString() == column.value">
-          #{item.firstChapterId,jdbcType=BIGINT}
-        </if>
-        <if test="'first_chapter_name'.toString() == column.value">
-          #{item.firstChapterName,jdbcType=VARCHAR}
-        </if>
-        <if test="'last_chapter_id'.toString() == column.value">
-          #{item.lastChapterId,jdbcType=BIGINT}
-        </if>
-        <if test="'last_chapter_name'.toString() == column.value">
-          #{item.lastChapterName,jdbcType=VARCHAR}
-        </if>
-        <if test="'last_chapter_utime'.toString() == column.value">
-          #{item.lastChapterUtime,jdbcType=INTEGER}
-        </if>
-        <if test="'read_num'.toString() == column.value">
-          #{item.readNum,jdbcType=INTEGER}
-        </if>
-        <if test="'article_chapter_order'.toString() == column.value">
-          #{item.articleChapterOrder,jdbcType=INTEGER}
-        </if>
-        <if test="'attent_chapter_order'.toString() == column.value">
-          #{item.attentChapterOrder,jdbcType=INTEGER}
-        </if>
-        <if test="'corner_mark'.toString() == column.value">
-          #{item.cornerMark,jdbcType=CHAR}
-        </if>
-        <if test="'recommand_book_id'.toString() == column.value">
-          #{item.recommandBookId,jdbcType=BIGINT}
-        </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="'keywords'.toString() == column.value">
-          #{item.keywords,jdbcType=VARCHAR}
-        </if>
-        <if test="'cansee'.toString() == column.value">
-          #{item.cansee,jdbcType=CHAR}
-        </if>
-        <if test="'rank'.toString() == column.value">
-          #{item.rank,jdbcType=TINYINT}
-        </if>
-        <if test="'check_rank'.toString() == column.value">
-          #{item.checkRank,jdbcType=TINYINT}
-        </if>
-        <if test="'check_remark'.toString() == column.value">
-          #{item.checkRemark,jdbcType=VARCHAR}
-        </if>
-        <if test="'editor_recommand'.toString() == column.value">
-          #{item.editorRecommand,jdbcType=VARCHAR}
-        </if>
-        <if test="'book_tags'.toString() == column.value">
-          #{item.bookTags,jdbcType=VARCHAR}
-        </if>
-        <if test="'a'.toString() == column.value">
-          #{item.a,jdbcType=TINYINT}
-        </if>
-        <if test="'expire_time'.toString() == column.value">
-          #{item.expireTime,jdbcType=INTEGER}
-        </if>
-        <if test="'cp_id'.toString() == column.value">
-          #{item.cpId,jdbcType=INTEGER}
-        </if>
-        <if test="'cp_name'.toString() == column.value">
-          #{item.cpName,jdbcType=VARCHAR}
-        </if>
-        <if test="'tags'.toString() == column.value">
-          #{item.tags,jdbcType=VARCHAR}
-        </if>
-        <if test="'classify_white_list'.toString() == column.value">
-          #{item.classifyWhiteList,jdbcType=TINYINT}
-        </if>
-        <if test="'put_ad_set'.toString() == column.value">
-          #{item.putAdSet,jdbcType=TINYINT}
-        </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 Thu Aug 12 00:28:56 CST 2021.
-    -->
-    insert into book
-    <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.isAudio != null">
-            is_audio,
-          </if>
-          <if test="record.bookCategoryId != null">
-            book_category_id,
-          </if>
-          <if test="record.name != null">
-            name,
-          </if>
-          <if test="record.realname != null">
-            realname,
-          </if>
-          <if test="record.title != null">
-            title,
-          </if>
-          <if test="record.author != null">
-            author,
-          </if>
-          <if test="record.image != null">
-            image,
-          </if>
-          <if test="record.bigCover != null">
-            big_cover,
-          </if>
-          <if test="record.smallCover != null">
-            small_cover,
-          </if>
-          <if test="record.description != null">
-            description,
-          </if>
-          <if test="record.idx != null">
-            idx,
-          </if>
-          <if test="record.referralNum != null">
-            referral_num,
-          </if>
-          <if test="record.idxx != null">
-            idxx,
-          </if>
-          <if test="record.state != null">
-            state,
-          </if>
-          <if test="record.freeStime != null">
-            free_stime,
-          </if>
-          <if test="record.freeEtime != null">
-            free_etime,
-          </if>
-          <if test="record.sex != null">
-            sex,
-          </if>
-          <if test="record.billingType != null">
-            billing_type,
-          </if>
-          <if test="record.price != null">
-            price,
-          </if>
-          <if test="record.appPrice != null">
-            app_price,
-          </if>
-          <if test="record.isFinish != null">
-            is_finish,
-          </if>
-          <if test="record.freeChapterNum != null">
-            free_chapter_num,
-          </if>
-          <if test="record.wordCount != null">
-            word_count,
-          </if>
-          <if test="record.chapterNum != null">
-            chapter_num,
-          </if>
-          <if test="record.firstChapterId != null">
-            first_chapter_id,
-          </if>
-          <if test="record.firstChapterName != null">
-            first_chapter_name,
-          </if>
-          <if test="record.lastChapterId != null">
-            last_chapter_id,
-          </if>
-          <if test="record.lastChapterName != null">
-            last_chapter_name,
-          </if>
-          <if test="record.lastChapterUtime != null">
-            last_chapter_utime,
-          </if>
-          <if test="record.readNum != null">
-            read_num,
-          </if>
-          <if test="record.articleChapterOrder != null">
-            article_chapter_order,
-          </if>
-          <if test="record.attentChapterOrder != null">
-            attent_chapter_order,
-          </if>
-          <if test="record.cornerMark != null">
-            corner_mark,
-          </if>
-          <if test="record.recommandBookId != null">
-            recommand_book_id,
-          </if>
-          <if test="record.createtime != null">
-            createtime,
-          </if>
-          <if test="record.updatetime != null">
-            updatetime,
-          </if>
-          <if test="record.keywords != null">
-            keywords,
-          </if>
-          <if test="record.cansee != null">
-            cansee,
-          </if>
-          <if test="record.rank != null">
-            rank,
-          </if>
-          <if test="record.checkRank != null">
-            check_rank,
-          </if>
-          <if test="record.checkRemark != null">
-            check_remark,
-          </if>
-          <if test="record.editorRecommand != null">
-            editor_recommand,
-          </if>
-          <if test="record.bookTags != null">
-            book_tags,
-          </if>
-          <if test="record.a != null">
-            a,
-          </if>
-          <if test="record.expireTime != null">
-            expire_time,
-          </if>
-          <if test="record.cpId != null">
-            cp_id,
-          </if>
-          <if test="record.cpName != null">
-            cp_name,
-          </if>
-          <if test="record.tags != null">
-            tags,
-          </if>
-          <if test="record.classifyWhiteList != null">
-            classify_white_list,
-          </if>
-          <if test="record.putAdSet != null">
-            put_ad_set,
-          </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=BIGINT},
-          </if>
-          <if test="record.isAudio != null">
-            #{record.isAudio,jdbcType=TINYINT},
-          </if>
-          <if test="record.bookCategoryId != null">
-            #{record.bookCategoryId,jdbcType=INTEGER},
-          </if>
-          <if test="record.name != null">
-            #{record.name,jdbcType=VARCHAR},
-          </if>
-          <if test="record.realname != null">
-            #{record.realname,jdbcType=VARCHAR},
-          </if>
-          <if test="record.title != null">
-            #{record.title,jdbcType=VARCHAR},
-          </if>
-          <if test="record.author != null">
-            #{record.author,jdbcType=VARCHAR},
-          </if>
-          <if test="record.image != null">
-            #{record.image,jdbcType=VARCHAR},
-          </if>
-          <if test="record.bigCover != null">
-            #{record.bigCover,jdbcType=VARCHAR},
-          </if>
-          <if test="record.smallCover != null">
-            #{record.smallCover,jdbcType=VARCHAR},
-          </if>
-          <if test="record.description != null">
-            #{record.description,jdbcType=VARCHAR},
-          </if>
-          <if test="record.idx != null">
-            #{record.idx,jdbcType=INTEGER},
-          </if>
-          <if test="record.referralNum != null">
-            #{record.referralNum,jdbcType=TINYINT},
-          </if>
-          <if test="record.idxx != null">
-            #{record.idxx,jdbcType=INTEGER},
-          </if>
-          <if test="record.state != null">
-            #{record.state,jdbcType=CHAR},
-          </if>
-          <if test="record.freeStime != null">
-            #{record.freeStime,jdbcType=INTEGER},
-          </if>
-          <if test="record.freeEtime != null">
-            #{record.freeEtime,jdbcType=INTEGER},
-          </if>
-          <if test="record.sex != null">
-            #{record.sex,jdbcType=CHAR},
-          </if>
-          <if test="record.billingType != null">
-            #{record.billingType,jdbcType=CHAR},
-          </if>
-          <if test="record.price != null">
-            #{record.price,jdbcType=INTEGER},
-          </if>
-          <if test="record.appPrice != null">
-            #{record.appPrice,jdbcType=INTEGER},
-          </if>
-          <if test="record.isFinish != null">
-            #{record.isFinish,jdbcType=CHAR},
-          </if>
-          <if test="record.freeChapterNum != null">
-            #{record.freeChapterNum,jdbcType=INTEGER},
-          </if>
-          <if test="record.wordCount != null">
-            #{record.wordCount,jdbcType=VARCHAR},
-          </if>
-          <if test="record.chapterNum != null">
-            #{record.chapterNum,jdbcType=INTEGER},
-          </if>
-          <if test="record.firstChapterId != null">
-            #{record.firstChapterId,jdbcType=BIGINT},
-          </if>
-          <if test="record.firstChapterName != null">
-            #{record.firstChapterName,jdbcType=VARCHAR},
-          </if>
-          <if test="record.lastChapterId != null">
-            #{record.lastChapterId,jdbcType=BIGINT},
-          </if>
-          <if test="record.lastChapterName != null">
-            #{record.lastChapterName,jdbcType=VARCHAR},
-          </if>
-          <if test="record.lastChapterUtime != null">
-            #{record.lastChapterUtime,jdbcType=INTEGER},
-          </if>
-          <if test="record.readNum != null">
-            #{record.readNum,jdbcType=INTEGER},
-          </if>
-          <if test="record.articleChapterOrder != null">
-            #{record.articleChapterOrder,jdbcType=INTEGER},
-          </if>
-          <if test="record.attentChapterOrder != null">
-            #{record.attentChapterOrder,jdbcType=INTEGER},
-          </if>
-          <if test="record.cornerMark != null">
-            #{record.cornerMark,jdbcType=CHAR},
-          </if>
-          <if test="record.recommandBookId != null">
-            #{record.recommandBookId,jdbcType=BIGINT},
-          </if>
-          <if test="record.createtime != null">
-            #{record.createtime,jdbcType=INTEGER},
-          </if>
-          <if test="record.updatetime != null">
-            #{record.updatetime,jdbcType=INTEGER},
-          </if>
-          <if test="record.keywords != null">
-            #{record.keywords,jdbcType=VARCHAR},
-          </if>
-          <if test="record.cansee != null">
-            #{record.cansee,jdbcType=CHAR},
-          </if>
-          <if test="record.rank != null">
-            #{record.rank,jdbcType=TINYINT},
-          </if>
-          <if test="record.checkRank != null">
-            #{record.checkRank,jdbcType=TINYINT},
-          </if>
-          <if test="record.checkRemark != null">
-            #{record.checkRemark,jdbcType=VARCHAR},
-          </if>
-          <if test="record.editorRecommand != null">
-            #{record.editorRecommand,jdbcType=VARCHAR},
-          </if>
-          <if test="record.bookTags != null">
-            #{record.bookTags,jdbcType=VARCHAR},
-          </if>
-          <if test="record.a != null">
-            #{record.a,jdbcType=TINYINT},
-          </if>
-          <if test="record.expireTime != null">
-            #{record.expireTime,jdbcType=INTEGER},
-          </if>
-          <if test="record.cpId != null">
-            #{record.cpId,jdbcType=INTEGER},
-          </if>
-          <if test="record.cpName != null">
-            #{record.cpName,jdbcType=VARCHAR},
-          </if>
-          <if test="record.tags != null">
-            #{record.tags,jdbcType=VARCHAR},
-          </if>
-          <if test="record.classifyWhiteList != null">
-            #{record.classifyWhiteList,jdbcType=TINYINT},
-          </if>
-          <if test="record.putAdSet != null">
-            #{record.putAdSet,jdbcType=TINYINT},
-          </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=BIGINT},
-          </if>
-          <if test="record.isAudio != null">
-            is_audio = #{record.isAudio,jdbcType=TINYINT},
-          </if>
-          <if test="record.bookCategoryId != null">
-            book_category_id = #{record.bookCategoryId,jdbcType=INTEGER},
-          </if>
-          <if test="record.name != null">
-            name = #{record.name,jdbcType=VARCHAR},
-          </if>
-          <if test="record.realname != null">
-            realname = #{record.realname,jdbcType=VARCHAR},
-          </if>
-          <if test="record.title != null">
-            title = #{record.title,jdbcType=VARCHAR},
-          </if>
-          <if test="record.author != null">
-            author = #{record.author,jdbcType=VARCHAR},
-          </if>
-          <if test="record.image != null">
-            image = #{record.image,jdbcType=VARCHAR},
-          </if>
-          <if test="record.bigCover != null">
-            big_cover = #{record.bigCover,jdbcType=VARCHAR},
-          </if>
-          <if test="record.smallCover != null">
-            small_cover = #{record.smallCover,jdbcType=VARCHAR},
-          </if>
-          <if test="record.description != null">
-            description = #{record.description,jdbcType=VARCHAR},
-          </if>
-          <if test="record.idx != null">
-            idx = #{record.idx,jdbcType=INTEGER},
-          </if>
-          <if test="record.referralNum != null">
-            referral_num = #{record.referralNum,jdbcType=TINYINT},
-          </if>
-          <if test="record.idxx != null">
-            idxx = #{record.idxx,jdbcType=INTEGER},
-          </if>
-          <if test="record.state != null">
-            state = #{record.state,jdbcType=CHAR},
-          </if>
-          <if test="record.freeStime != null">
-            free_stime = #{record.freeStime,jdbcType=INTEGER},
-          </if>
-          <if test="record.freeEtime != null">
-            free_etime = #{record.freeEtime,jdbcType=INTEGER},
-          </if>
-          <if test="record.sex != null">
-            sex = #{record.sex,jdbcType=CHAR},
-          </if>
-          <if test="record.billingType != null">
-            billing_type = #{record.billingType,jdbcType=CHAR},
-          </if>
-          <if test="record.price != null">
-            price = #{record.price,jdbcType=INTEGER},
-          </if>
-          <if test="record.appPrice != null">
-            app_price = #{record.appPrice,jdbcType=INTEGER},
-          </if>
-          <if test="record.isFinish != null">
-            is_finish = #{record.isFinish,jdbcType=CHAR},
-          </if>
-          <if test="record.freeChapterNum != null">
-            free_chapter_num = #{record.freeChapterNum,jdbcType=INTEGER},
-          </if>
-          <if test="record.wordCount != null">
-            word_count = #{record.wordCount,jdbcType=VARCHAR},
-          </if>
-          <if test="record.chapterNum != null">
-            chapter_num = #{record.chapterNum,jdbcType=INTEGER},
-          </if>
-          <if test="record.firstChapterId != null">
-            first_chapter_id = #{record.firstChapterId,jdbcType=BIGINT},
-          </if>
-          <if test="record.firstChapterName != null">
-            first_chapter_name = #{record.firstChapterName,jdbcType=VARCHAR},
-          </if>
-          <if test="record.lastChapterId != null">
-            last_chapter_id = #{record.lastChapterId,jdbcType=BIGINT},
-          </if>
-          <if test="record.lastChapterName != null">
-            last_chapter_name = #{record.lastChapterName,jdbcType=VARCHAR},
-          </if>
-          <if test="record.lastChapterUtime != null">
-            last_chapter_utime = #{record.lastChapterUtime,jdbcType=INTEGER},
-          </if>
-          <if test="record.readNum != null">
-            read_num = #{record.readNum,jdbcType=INTEGER},
-          </if>
-          <if test="record.articleChapterOrder != null">
-            article_chapter_order = #{record.articleChapterOrder,jdbcType=INTEGER},
-          </if>
-          <if test="record.attentChapterOrder != null">
-            attent_chapter_order = #{record.attentChapterOrder,jdbcType=INTEGER},
-          </if>
-          <if test="record.cornerMark != null">
-            corner_mark = #{record.cornerMark,jdbcType=CHAR},
-          </if>
-          <if test="record.recommandBookId != null">
-            recommand_book_id = #{record.recommandBookId,jdbcType=BIGINT},
-          </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.keywords != null">
-            keywords = #{record.keywords,jdbcType=VARCHAR},
-          </if>
-          <if test="record.cansee != null">
-            cansee = #{record.cansee,jdbcType=CHAR},
-          </if>
-          <if test="record.rank != null">
-            rank = #{record.rank,jdbcType=TINYINT},
-          </if>
-          <if test="record.checkRank != null">
-            check_rank = #{record.checkRank,jdbcType=TINYINT},
-          </if>
-          <if test="record.checkRemark != null">
-            check_remark = #{record.checkRemark,jdbcType=VARCHAR},
-          </if>
-          <if test="record.editorRecommand != null">
-            editor_recommand = #{record.editorRecommand,jdbcType=VARCHAR},
-          </if>
-          <if test="record.bookTags != null">
-            book_tags = #{record.bookTags,jdbcType=VARCHAR},
-          </if>
-          <if test="record.a != null">
-            a = #{record.a,jdbcType=TINYINT},
-          </if>
-          <if test="record.expireTime != null">
-            expire_time = #{record.expireTime,jdbcType=INTEGER},
-          </if>
-          <if test="record.cpId != null">
-            cp_id = #{record.cpId,jdbcType=INTEGER},
-          </if>
-          <if test="record.cpName != null">
-            cp_name = #{record.cpName,jdbcType=VARCHAR},
-          </if>
-          <if test="record.tags != null">
-            tags = #{record.tags,jdbcType=VARCHAR},
-          </if>
-          <if test="record.classifyWhiteList != null">
-            classify_white_list = #{record.classifyWhiteList,jdbcType=TINYINT},
-          </if>
-          <if test="record.putAdSet != null">
-            put_ad_set = #{record.putAdSet,jdbcType=TINYINT},
-          </if>
-        </trim>
-      </otherwise>
-    </choose>
-  </insert>
-  <insert id="upsert" parameterType="com.book.dao.cps.pojo.Book">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Aug 12 00:28:56 CST 2021.
-    -->
-    insert into book
-    (id, is_audio, book_category_id, name, realname, title, author, image, big_cover, 
-      small_cover, description, idx, referral_num, idxx, state, free_stime, free_etime, 
-      sex, billing_type, price, app_price, is_finish, free_chapter_num, word_count, chapter_num, 
-      first_chapter_id, first_chapter_name, last_chapter_id, last_chapter_name, last_chapter_utime, 
-      read_num, article_chapter_order, attent_chapter_order, corner_mark, recommand_book_id, 
-      createtime, updatetime, keywords, cansee, rank, check_rank, check_remark, editor_recommand, 
-      book_tags, a, expire_time, cp_id, cp_name, tags, classify_white_list, put_ad_set
-      )
-    values
-    (#{id,jdbcType=BIGINT}, #{isAudio,jdbcType=TINYINT}, #{bookCategoryId,jdbcType=INTEGER}, 
-      #{name,jdbcType=VARCHAR}, #{realname,jdbcType=VARCHAR}, #{title,jdbcType=VARCHAR}, 
-      #{author,jdbcType=VARCHAR}, #{image,jdbcType=VARCHAR}, #{bigCover,jdbcType=VARCHAR}, 
-      #{smallCover,jdbcType=VARCHAR}, #{description,jdbcType=VARCHAR}, #{idx,jdbcType=INTEGER}, 
-      #{referralNum,jdbcType=TINYINT}, #{idxx,jdbcType=INTEGER}, #{state,jdbcType=CHAR}, 
-      #{freeStime,jdbcType=INTEGER}, #{freeEtime,jdbcType=INTEGER}, #{sex,jdbcType=CHAR}, 
-      #{billingType,jdbcType=CHAR}, #{price,jdbcType=INTEGER}, #{appPrice,jdbcType=INTEGER}, 
-      #{isFinish,jdbcType=CHAR}, #{freeChapterNum,jdbcType=INTEGER}, #{wordCount,jdbcType=VARCHAR}, 
-      #{chapterNum,jdbcType=INTEGER}, #{firstChapterId,jdbcType=BIGINT}, #{firstChapterName,jdbcType=VARCHAR}, 
-      #{lastChapterId,jdbcType=BIGINT}, #{lastChapterName,jdbcType=VARCHAR}, #{lastChapterUtime,jdbcType=INTEGER}, 
-      #{readNum,jdbcType=INTEGER}, #{articleChapterOrder,jdbcType=INTEGER}, #{attentChapterOrder,jdbcType=INTEGER}, 
-      #{cornerMark,jdbcType=CHAR}, #{recommandBookId,jdbcType=BIGINT}, #{createtime,jdbcType=INTEGER}, 
-      #{updatetime,jdbcType=INTEGER}, #{keywords,jdbcType=VARCHAR}, #{cansee,jdbcType=CHAR}, 
-      #{rank,jdbcType=TINYINT}, #{checkRank,jdbcType=TINYINT}, #{checkRemark,jdbcType=VARCHAR}, 
-      #{editorRecommand,jdbcType=VARCHAR}, #{bookTags,jdbcType=VARCHAR}, #{a,jdbcType=TINYINT}, 
-      #{expireTime,jdbcType=INTEGER}, #{cpId,jdbcType=INTEGER}, #{cpName,jdbcType=VARCHAR}, 
-      #{tags,jdbcType=VARCHAR}, #{classifyWhiteList,jdbcType=TINYINT}, #{putAdSet,jdbcType=TINYINT}
-      )
-    on duplicate key update 
-    id = #{id,jdbcType=BIGINT}, 
-    is_audio = #{isAudio,jdbcType=TINYINT}, 
-    book_category_id = #{bookCategoryId,jdbcType=INTEGER}, 
-    name = #{name,jdbcType=VARCHAR}, 
-    realname = #{realname,jdbcType=VARCHAR}, 
-    title = #{title,jdbcType=VARCHAR}, 
-    author = #{author,jdbcType=VARCHAR}, 
-    image = #{image,jdbcType=VARCHAR}, 
-    big_cover = #{bigCover,jdbcType=VARCHAR}, 
-    small_cover = #{smallCover,jdbcType=VARCHAR}, 
-    description = #{description,jdbcType=VARCHAR}, 
-    idx = #{idx,jdbcType=INTEGER}, 
-    referral_num = #{referralNum,jdbcType=TINYINT}, 
-    idxx = #{idxx,jdbcType=INTEGER}, 
-    state = #{state,jdbcType=CHAR}, 
-    free_stime = #{freeStime,jdbcType=INTEGER}, 
-    free_etime = #{freeEtime,jdbcType=INTEGER}, 
-    sex = #{sex,jdbcType=CHAR}, 
-    billing_type = #{billingType,jdbcType=CHAR}, 
-    price = #{price,jdbcType=INTEGER}, 
-    app_price = #{appPrice,jdbcType=INTEGER}, 
-    is_finish = #{isFinish,jdbcType=CHAR}, 
-    free_chapter_num = #{freeChapterNum,jdbcType=INTEGER}, 
-    word_count = #{wordCount,jdbcType=VARCHAR}, 
-    chapter_num = #{chapterNum,jdbcType=INTEGER}, 
-    first_chapter_id = #{firstChapterId,jdbcType=BIGINT}, 
-    first_chapter_name = #{firstChapterName,jdbcType=VARCHAR}, 
-    last_chapter_id = #{lastChapterId,jdbcType=BIGINT}, 
-    last_chapter_name = #{lastChapterName,jdbcType=VARCHAR}, 
-    last_chapter_utime = #{lastChapterUtime,jdbcType=INTEGER}, 
-    read_num = #{readNum,jdbcType=INTEGER}, 
-    article_chapter_order = #{articleChapterOrder,jdbcType=INTEGER}, 
-    attent_chapter_order = #{attentChapterOrder,jdbcType=INTEGER}, 
-    corner_mark = #{cornerMark,jdbcType=CHAR}, 
-    recommand_book_id = #{recommandBookId,jdbcType=BIGINT}, 
-    createtime = #{createtime,jdbcType=INTEGER}, 
-    updatetime = #{updatetime,jdbcType=INTEGER}, 
-    keywords = #{keywords,jdbcType=VARCHAR}, 
-    cansee = #{cansee,jdbcType=CHAR}, 
-    rank = #{rank,jdbcType=TINYINT}, 
-    check_rank = #{checkRank,jdbcType=TINYINT}, 
-    check_remark = #{checkRemark,jdbcType=VARCHAR}, 
-    editor_recommand = #{editorRecommand,jdbcType=VARCHAR}, 
-    book_tags = #{bookTags,jdbcType=VARCHAR}, 
-    a = #{a,jdbcType=TINYINT}, 
-    expire_time = #{expireTime,jdbcType=INTEGER}, 
-    cp_id = #{cpId,jdbcType=INTEGER}, 
-    cp_name = #{cpName,jdbcType=VARCHAR}, 
-    tags = #{tags,jdbcType=VARCHAR}, 
-    classify_white_list = #{classifyWhiteList,jdbcType=TINYINT}, 
-    put_ad_set = #{putAdSet,jdbcType=TINYINT}
-  </insert>
-</mapper>

+ 0 - 648
book-server/src/main/resources/mapper/BookshelfRecommandMapper.xml

@@ -1,648 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
-<mapper namespace="com.book.server.dao.mapper.BookshelfRecommandMapper">
-  <resultMap id="BaseResultMap" type="com.book.dao.cps.pojo.BookshelfRecommand">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Aug 20 19:52:17 CST 2021.
-    -->
-    <id column="id" jdbcType="INTEGER" property="id" />
-    <result column="book_id" jdbcType="BIGINT" property="bookId" />
-    <result column="book_name" jdbcType="VARCHAR" property="bookName" />
-    <result column="sex" jdbcType="CHAR" property="sex" />
-    <result column="status" jdbcType="CHAR" property="status" />
-    <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 Fri Aug 20 19:52:17 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 Fri Aug 20 19:52:17 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 Fri Aug 20 19:52:17 CST 2021.
-    -->
-    id, book_id, book_name, sex, status, createtime, updatetime
-  </sql>
-  <select id="selectByExample" parameterType="com.book.dao.cps.pojo.example.BookshelfRecommandExample" resultMap="BaseResultMap">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Aug 20 19:52:17 CST 2021.
-    -->
-    select
-    <if test="distinct">
-      distinct
-    </if>
-    <include refid="Base_Column_List" />
-    from bookshelf_recommand
-    <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 Fri Aug 20 19:52:17 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 bookshelf_recommand
-    <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 Fri Aug 20 19:52:17 CST 2021.
-    -->
-    select 
-    <include refid="Base_Column_List" />
-    from bookshelf_recommand
-    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 Fri Aug 20 19:52:17 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 bookshelf_recommand
-    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 Fri Aug 20 19:52:17 CST 2021.
-    -->
-    delete from bookshelf_recommand
-    where id = #{id,jdbcType=INTEGER}
-  </delete>
-  <delete id="deleteByExample" parameterType="com.book.dao.cps.pojo.example.BookshelfRecommandExample">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Aug 20 19:52:17 CST 2021.
-    -->
-    delete from bookshelf_recommand
-    <if test="_parameter != null">
-      <include refid="Example_Where_Clause" />
-    </if>
-  </delete>
-  <insert id="insert" parameterType="com.book.dao.cps.pojo.BookshelfRecommand">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Aug 20 19:52:17 CST 2021.
-    -->
-    insert into bookshelf_recommand (id, book_id, book_name, 
-      sex, status, createtime, 
-      updatetime)
-    values (#{id,jdbcType=INTEGER}, #{bookId,jdbcType=BIGINT}, #{bookName,jdbcType=VARCHAR}, 
-      #{sex,jdbcType=CHAR}, #{status,jdbcType=CHAR}, #{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 Fri Aug 20 19:52:17 CST 2021.
-    -->
-    insert into bookshelf_recommand
-    <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.bookId != null">
-            book_id,
-          </if>
-          <if test="record.bookName != null">
-            book_name,
-          </if>
-          <if test="record.sex != null">
-            sex,
-          </if>
-          <if test="record.status != null">
-            status,
-          </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.bookId != null">
-            #{record.bookId,jdbcType=BIGINT},
-          </if>
-          <if test="record.bookName != null">
-            #{record.bookName,jdbcType=VARCHAR},
-          </if>
-          <if test="record.sex != null">
-            #{record.sex,jdbcType=CHAR},
-          </if>
-          <if test="record.status != null">
-            #{record.status,jdbcType=CHAR},
-          </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.dao.cps.pojo.example.BookshelfRecommandExample" resultType="java.lang.Long">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Aug 20 19:52:17 CST 2021.
-    -->
-    select count(*) from bookshelf_recommand
-    <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 Fri Aug 20 19:52:17 CST 2021.
-    -->
-    update bookshelf_recommand
-    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.bookId != null">
-            book_id = #{record.bookId,jdbcType=BIGINT},
-          </if>
-          <if test="record.bookName != null">
-            book_name = #{record.bookName,jdbcType=VARCHAR},
-          </if>
-          <if test="record.sex != null">
-            sex = #{record.sex,jdbcType=CHAR},
-          </if>
-          <if test="record.status != null">
-            status = #{record.status,jdbcType=CHAR},
-          </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 Fri Aug 20 19:52:17 CST 2021.
-    -->
-    update bookshelf_recommand
-    set id = #{record.id,jdbcType=INTEGER},
-      book_id = #{record.bookId,jdbcType=BIGINT},
-      book_name = #{record.bookName,jdbcType=VARCHAR},
-      sex = #{record.sex,jdbcType=CHAR},
-      status = #{record.status,jdbcType=CHAR},
-      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 Fri Aug 20 19:52:17 CST 2021.
-    -->
-    update bookshelf_recommand
-    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.bookId != null">
-            book_id = #{record.bookId,jdbcType=BIGINT},
-          </if>
-          <if test="record.bookName != null">
-            book_name = #{record.bookName,jdbcType=VARCHAR},
-          </if>
-          <if test="record.sex != null">
-            sex = #{record.sex,jdbcType=CHAR},
-          </if>
-          <if test="record.status != null">
-            status = #{record.status,jdbcType=CHAR},
-          </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.dao.cps.pojo.BookshelfRecommand">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Aug 20 19:52:17 CST 2021.
-    -->
-    update bookshelf_recommand
-    set book_id = #{bookId,jdbcType=BIGINT},
-      book_name = #{bookName,jdbcType=VARCHAR},
-      sex = #{sex,jdbcType=CHAR},
-      status = #{status,jdbcType=CHAR},
-      createtime = #{createtime,jdbcType=INTEGER},
-      updatetime = #{updatetime,jdbcType=INTEGER}
-    where id = #{id,jdbcType=INTEGER}
-  </update>
-  <select id="selectOneByExample" parameterType="com.book.dao.cps.pojo.example.BookshelfRecommandExample" resultMap="BaseResultMap">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Aug 20 19:52:17 CST 2021.
-    -->
-    select
-    <include refid="Base_Column_List" />
-    from bookshelf_recommand
-    <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 Fri Aug 20 19:52:17 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 bookshelf_recommand
-    <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 Fri Aug 20 19:52:17 CST 2021.
-    -->
-    insert into bookshelf_recommand
-    (id, book_id, book_name, sex, status, createtime, updatetime)
-    values
-    <foreach collection="list" item="item" separator=",">
-      (#{item.id,jdbcType=INTEGER}, #{item.bookId,jdbcType=BIGINT}, #{item.bookName,jdbcType=VARCHAR}, 
-        #{item.sex,jdbcType=CHAR}, #{item.status,jdbcType=CHAR}, #{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 Fri Aug 20 19:52:17 CST 2021.
-    -->
-    insert into bookshelf_recommand (
-    <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="'book_id'.toString() == column.value">
-          #{item.bookId,jdbcType=BIGINT}
-        </if>
-        <if test="'book_name'.toString() == column.value">
-          #{item.bookName,jdbcType=VARCHAR}
-        </if>
-        <if test="'sex'.toString() == column.value">
-          #{item.sex,jdbcType=CHAR}
-        </if>
-        <if test="'status'.toString() == column.value">
-          #{item.status,jdbcType=CHAR}
-        </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 Fri Aug 20 19:52:17 CST 2021.
-    -->
-    insert into bookshelf_recommand
-    <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.bookId != null">
-            book_id,
-          </if>
-          <if test="record.bookName != null">
-            book_name,
-          </if>
-          <if test="record.sex != null">
-            sex,
-          </if>
-          <if test="record.status != null">
-            status,
-          </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.bookId != null">
-            #{record.bookId,jdbcType=BIGINT},
-          </if>
-          <if test="record.bookName != null">
-            #{record.bookName,jdbcType=VARCHAR},
-          </if>
-          <if test="record.sex != null">
-            #{record.sex,jdbcType=CHAR},
-          </if>
-          <if test="record.status != null">
-            #{record.status,jdbcType=CHAR},
-          </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.bookId != null">
-            book_id = #{record.bookId,jdbcType=BIGINT},
-          </if>
-          <if test="record.bookName != null">
-            book_name = #{record.bookName,jdbcType=VARCHAR},
-          </if>
-          <if test="record.sex != null">
-            sex = #{record.sex,jdbcType=CHAR},
-          </if>
-          <if test="record.status != null">
-            status = #{record.status,jdbcType=CHAR},
-          </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.dao.cps.pojo.BookshelfRecommand">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Aug 20 19:52:17 CST 2021.
-    -->
-    insert into bookshelf_recommand
-    (id, book_id, book_name, sex, status, createtime, updatetime)
-    values
-    (#{id,jdbcType=INTEGER}, #{bookId,jdbcType=BIGINT}, #{bookName,jdbcType=VARCHAR}, 
-      #{sex,jdbcType=CHAR}, #{status,jdbcType=CHAR}, #{createtime,jdbcType=INTEGER}, 
-      #{updatetime,jdbcType=INTEGER})
-    on duplicate key update 
-    id = #{id,jdbcType=INTEGER}, 
-    book_id = #{bookId,jdbcType=BIGINT}, 
-    book_name = #{bookName,jdbcType=VARCHAR}, 
-    sex = #{sex,jdbcType=CHAR}, 
-    status = #{status,jdbcType=CHAR}, 
-    createtime = #{createtime,jdbcType=INTEGER}, 
-    updatetime = #{updatetime,jdbcType=INTEGER}
-  </insert>
-</mapper>

+ 0 - 863
book-server/src/main/resources/mapper/ConfigMapper.xml

@@ -1,863 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
-<mapper namespace="com.book.server.dao.mapper.ConfigMapper">
-  <resultMap id="BaseResultMap" type="com.book.dao.cps.pojo.Config">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Sat Aug 21 15:47:55 CST 2021.
-    -->
-    <id column="id" jdbcType="INTEGER" property="id" />
-    <result column="name" jdbcType="VARCHAR" property="name" />
-    <result column="group" jdbcType="VARCHAR" property="group" />
-    <result column="title" jdbcType="VARCHAR" property="title" />
-    <result column="tip" jdbcType="VARCHAR" property="tip" />
-    <result column="type" jdbcType="VARCHAR" property="type" />
-    <result column="rule" jdbcType="VARCHAR" property="rule" />
-    <result column="extend" jdbcType="VARCHAR" property="extend" />
-  </resultMap>
-  <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.book.dao.cps.pojo.Config">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Sat Aug 21 15:47:55 CST 2021.
-    -->
-    <result column="value" jdbcType="LONGVARCHAR" property="value" />
-    <result column="content" jdbcType="LONGVARCHAR" property="content" />
-  </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 Sat Aug 21 15:47:55 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 Sat Aug 21 15:47:55 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 Sat Aug 21 15:47:55 CST 2021.
-    -->
-    id, name, group, title, tip, type, rule, extend
-  </sql>
-  <sql id="Blob_Column_List">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Sat Aug 21 15:47:55 CST 2021.
-    -->
-    value, content
-  </sql>
-  <select id="selectByExampleWithBLOBs" parameterType="com.book.dao.cps.pojo.example.ConfigExample" resultMap="ResultMapWithBLOBs">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Sat Aug 21 15:47:55 CST 2021.
-    -->
-    select
-    <if test="distinct">
-      distinct
-    </if>
-    <include refid="Base_Column_List" />
-    ,
-    <include refid="Blob_Column_List" />
-    from config
-    <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="selectByExample" parameterType="com.book.dao.cps.pojo.example.ConfigExample" resultMap="BaseResultMap">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Sat Aug 21 15:47:55 CST 2021.
-    -->
-    select
-    <if test="distinct">
-      distinct
-    </if>
-    <include refid="Base_Column_List" />
-    from config
-    <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="ResultMapWithBLOBs">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Sat Aug 21 15:47:55 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" />
-        ,
-        <include refid="Blob_Column_List" />
-      </otherwise>
-    </choose>
-    from config
-    <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="ResultMapWithBLOBs">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Sat Aug 21 15:47:55 CST 2021.
-    -->
-    select 
-    <include refid="Base_Column_List" />
-    ,
-    <include refid="Blob_Column_List" />
-    from config
-    where id = #{id,jdbcType=INTEGER}
-  </select>
-  <select id="selectByPrimaryKeySelective" parameterType="map" resultMap="ResultMapWithBLOBs">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Sat Aug 21 15:47:55 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" />
-        ,
-        <include refid="Blob_Column_List" />
-      </otherwise>
-    </choose>
-    from config
-    where id = #{id,jdbcType=INTEGER}
-  </select>
-  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Sat Aug 21 15:47:55 CST 2021.
-    -->
-    delete from config
-    where id = #{id,jdbcType=INTEGER}
-  </delete>
-  <delete id="deleteByExample" parameterType="com.book.dao.cps.pojo.example.ConfigExample">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Sat Aug 21 15:47:55 CST 2021.
-    -->
-    delete from config
-    <if test="_parameter != null">
-      <include refid="Example_Where_Clause" />
-    </if>
-  </delete>
-  <insert id="insert" parameterType="com.book.dao.cps.pojo.Config">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Sat Aug 21 15:47:55 CST 2021.
-    -->
-    insert into config (id, name, group, 
-      title, tip, type, rule, 
-      extend, value, content
-      )
-    values (#{id,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, #{group,jdbcType=VARCHAR}, 
-      #{title,jdbcType=VARCHAR}, #{tip,jdbcType=VARCHAR}, #{type,jdbcType=VARCHAR}, #{rule,jdbcType=VARCHAR}, 
-      #{extend,jdbcType=VARCHAR}, #{value,jdbcType=LONGVARCHAR}, #{content,jdbcType=LONGVARCHAR}
-      )
-  </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 Sat Aug 21 15:47:55 CST 2021.
-    -->
-    insert into config
-    <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.name != null">
-            name,
-          </if>
-          <if test="record.group != null">
-            group,
-          </if>
-          <if test="record.title != null">
-            title,
-          </if>
-          <if test="record.tip != null">
-            tip,
-          </if>
-          <if test="record.type != null">
-            type,
-          </if>
-          <if test="record.rule != null">
-            rule,
-          </if>
-          <if test="record.extend != null">
-            extend,
-          </if>
-          <if test="record.value != null">
-            value,
-          </if>
-          <if test="record.content != null">
-            content,
-          </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.name != null">
-            #{record.name,jdbcType=VARCHAR},
-          </if>
-          <if test="record.group != null">
-            #{record.group,jdbcType=VARCHAR},
-          </if>
-          <if test="record.title != null">
-            #{record.title,jdbcType=VARCHAR},
-          </if>
-          <if test="record.tip != null">
-            #{record.tip,jdbcType=VARCHAR},
-          </if>
-          <if test="record.type != null">
-            #{record.type,jdbcType=VARCHAR},
-          </if>
-          <if test="record.rule != null">
-            #{record.rule,jdbcType=VARCHAR},
-          </if>
-          <if test="record.extend != null">
-            #{record.extend,jdbcType=VARCHAR},
-          </if>
-          <if test="record.value != null">
-            #{record.value,jdbcType=LONGVARCHAR},
-          </if>
-          <if test="record.content != null">
-            #{record.content,jdbcType=LONGVARCHAR},
-          </if>
-        </trim>
-      </otherwise>
-    </choose>
-  </insert>
-  <select id="countByExample" parameterType="com.book.dao.cps.pojo.example.ConfigExample" resultType="java.lang.Long">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Sat Aug 21 15:47:55 CST 2021.
-    -->
-    select count(*) from config
-    <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 Sat Aug 21 15:47:55 CST 2021.
-    -->
-    update config
-    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.name != null">
-            name = #{record.name,jdbcType=VARCHAR},
-          </if>
-          <if test="record.group != null">
-            group = #{record.group,jdbcType=VARCHAR},
-          </if>
-          <if test="record.title != null">
-            title = #{record.title,jdbcType=VARCHAR},
-          </if>
-          <if test="record.tip != null">
-            tip = #{record.tip,jdbcType=VARCHAR},
-          </if>
-          <if test="record.type != null">
-            type = #{record.type,jdbcType=VARCHAR},
-          </if>
-          <if test="record.rule != null">
-            rule = #{record.rule,jdbcType=VARCHAR},
-          </if>
-          <if test="record.extend != null">
-            extend = #{record.extend,jdbcType=VARCHAR},
-          </if>
-          <if test="record.value != null">
-            value = #{record.value,jdbcType=LONGVARCHAR},
-          </if>
-          <if test="record.content != null">
-            content = #{record.content,jdbcType=LONGVARCHAR},
-          </if>
-        </trim>
-      </otherwise>
-    </choose>
-    <if test="_parameter != null">
-      <include refid="Update_By_Example_Where_Clause" />
-    </if>
-  </update>
-  <update id="updateByExampleWithBLOBs" parameterType="map">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Sat Aug 21 15:47:55 CST 2021.
-    -->
-    update config
-    set id = #{record.id,jdbcType=INTEGER},
-      name = #{record.name,jdbcType=VARCHAR},
-      group = #{record.group,jdbcType=VARCHAR},
-      title = #{record.title,jdbcType=VARCHAR},
-      tip = #{record.tip,jdbcType=VARCHAR},
-      type = #{record.type,jdbcType=VARCHAR},
-      rule = #{record.rule,jdbcType=VARCHAR},
-      extend = #{record.extend,jdbcType=VARCHAR},
-      value = #{record.value,jdbcType=LONGVARCHAR},
-      content = #{record.content,jdbcType=LONGVARCHAR}
-    <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 Sat Aug 21 15:47:55 CST 2021.
-    -->
-    update config
-    set id = #{record.id,jdbcType=INTEGER},
-      name = #{record.name,jdbcType=VARCHAR},
-      group = #{record.group,jdbcType=VARCHAR},
-      title = #{record.title,jdbcType=VARCHAR},
-      tip = #{record.tip,jdbcType=VARCHAR},
-      type = #{record.type,jdbcType=VARCHAR},
-      rule = #{record.rule,jdbcType=VARCHAR},
-      extend = #{record.extend,jdbcType=VARCHAR}
-    <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 Sat Aug 21 15:47:55 CST 2021.
-    -->
-    update config
-    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.name != null">
-            name = #{record.name,jdbcType=VARCHAR},
-          </if>
-          <if test="record.group != null">
-            group = #{record.group,jdbcType=VARCHAR},
-          </if>
-          <if test="record.title != null">
-            title = #{record.title,jdbcType=VARCHAR},
-          </if>
-          <if test="record.tip != null">
-            tip = #{record.tip,jdbcType=VARCHAR},
-          </if>
-          <if test="record.type != null">
-            type = #{record.type,jdbcType=VARCHAR},
-          </if>
-          <if test="record.rule != null">
-            rule = #{record.rule,jdbcType=VARCHAR},
-          </if>
-          <if test="record.extend != null">
-            extend = #{record.extend,jdbcType=VARCHAR},
-          </if>
-          <if test="record.value != null">
-            value = #{record.value,jdbcType=LONGVARCHAR},
-          </if>
-          <if test="record.content != null">
-            content = #{record.content,jdbcType=LONGVARCHAR},
-          </if>
-        </trim>
-      </otherwise>
-    </choose>
-    where id = #{record.id,jdbcType=INTEGER}
-  </update>
-  <update id="updateByPrimaryKeyWithBLOBs" parameterType="com.book.dao.cps.pojo.Config">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Sat Aug 21 15:47:55 CST 2021.
-    -->
-    update config
-    set name = #{name,jdbcType=VARCHAR},
-      group = #{group,jdbcType=VARCHAR},
-      title = #{title,jdbcType=VARCHAR},
-      tip = #{tip,jdbcType=VARCHAR},
-      type = #{type,jdbcType=VARCHAR},
-      rule = #{rule,jdbcType=VARCHAR},
-      extend = #{extend,jdbcType=VARCHAR},
-      value = #{value,jdbcType=LONGVARCHAR},
-      content = #{content,jdbcType=LONGVARCHAR}
-    where id = #{id,jdbcType=INTEGER}
-  </update>
-  <update id="updateByPrimaryKey" parameterType="com.book.dao.cps.pojo.Config">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Sat Aug 21 15:47:55 CST 2021.
-    -->
-    update config
-    set name = #{name,jdbcType=VARCHAR},
-      group = #{group,jdbcType=VARCHAR},
-      title = #{title,jdbcType=VARCHAR},
-      tip = #{tip,jdbcType=VARCHAR},
-      type = #{type,jdbcType=VARCHAR},
-      rule = #{rule,jdbcType=VARCHAR},
-      extend = #{extend,jdbcType=VARCHAR}
-    where id = #{id,jdbcType=INTEGER}
-  </update>
-  <select id="selectOneByExample" parameterType="com.book.dao.cps.pojo.example.ConfigExample" resultMap="BaseResultMap">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Sat Aug 21 15:47:55 CST 2021.
-    -->
-    select
-    <include refid="Base_Column_List" />
-    from config
-    <if test="_parameter != null">
-      <include refid="Example_Where_Clause" />
-    </if>
-    <if test="orderByClause != null">
-      order by ${orderByClause}
-    </if>
-    limit 1
-  </select>
-  <select id="selectOneByExampleWithBLOBs" parameterType="com.book.dao.cps.pojo.example.ConfigExample" resultMap="ResultMapWithBLOBs">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Sat Aug 21 15:47:55 CST 2021.
-    -->
-    select
-    <include refid="Base_Column_List" />
-    ,
-    <include refid="Blob_Column_List" />
-    from config
-    <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="ResultMapWithBLOBs">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Sat Aug 21 15:47:55 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" />
-        ,
-        <include refid="Blob_Column_List" />
-      </otherwise>
-    </choose>
-    from config
-    <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 Sat Aug 21 15:47:55 CST 2021.
-    -->
-    insert into config
-    (id, name, group, title, tip, type, rule, extend, value, content)
-    values
-    <foreach collection="list" item="item" separator=",">
-      (#{item.id,jdbcType=INTEGER}, #{item.name,jdbcType=VARCHAR}, #{item.group,jdbcType=VARCHAR}, 
-        #{item.title,jdbcType=VARCHAR}, #{item.tip,jdbcType=VARCHAR}, #{item.type,jdbcType=VARCHAR}, 
-        #{item.rule,jdbcType=VARCHAR}, #{item.extend,jdbcType=VARCHAR}, #{item.value,jdbcType=LONGVARCHAR}, 
-        #{item.content,jdbcType=LONGVARCHAR})
-    </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 Sat Aug 21 15:47:55 CST 2021.
-    -->
-    insert into config (
-    <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="'name'.toString() == column.value">
-          #{item.name,jdbcType=VARCHAR}
-        </if>
-        <if test="'group'.toString() == column.value">
-          #{item.group,jdbcType=VARCHAR}
-        </if>
-        <if test="'title'.toString() == column.value">
-          #{item.title,jdbcType=VARCHAR}
-        </if>
-        <if test="'tip'.toString() == column.value">
-          #{item.tip,jdbcType=VARCHAR}
-        </if>
-        <if test="'type'.toString() == column.value">
-          #{item.type,jdbcType=VARCHAR}
-        </if>
-        <if test="'rule'.toString() == column.value">
-          #{item.rule,jdbcType=VARCHAR}
-        </if>
-        <if test="'extend'.toString() == column.value">
-          #{item.extend,jdbcType=VARCHAR}
-        </if>
-        <if test="'value'.toString() == column.value">
-          #{item.value,jdbcType=LONGVARCHAR}
-        </if>
-        <if test="'content'.toString() == column.value">
-          #{item.content,jdbcType=LONGVARCHAR}
-        </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 Sat Aug 21 15:47:55 CST 2021.
-    -->
-    insert into config
-    <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.name != null">
-            name,
-          </if>
-          <if test="record.group != null">
-            group,
-          </if>
-          <if test="record.title != null">
-            title,
-          </if>
-          <if test="record.tip != null">
-            tip,
-          </if>
-          <if test="record.type != null">
-            type,
-          </if>
-          <if test="record.rule != null">
-            rule,
-          </if>
-          <if test="record.extend != null">
-            extend,
-          </if>
-          <if test="record.value != null">
-            value,
-          </if>
-          <if test="record.content != null">
-            content,
-          </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.name != null">
-            #{record.name,jdbcType=VARCHAR},
-          </if>
-          <if test="record.group != null">
-            #{record.group,jdbcType=VARCHAR},
-          </if>
-          <if test="record.title != null">
-            #{record.title,jdbcType=VARCHAR},
-          </if>
-          <if test="record.tip != null">
-            #{record.tip,jdbcType=VARCHAR},
-          </if>
-          <if test="record.type != null">
-            #{record.type,jdbcType=VARCHAR},
-          </if>
-          <if test="record.rule != null">
-            #{record.rule,jdbcType=VARCHAR},
-          </if>
-          <if test="record.extend != null">
-            #{record.extend,jdbcType=VARCHAR},
-          </if>
-          <if test="record.value != null">
-            #{record.value,jdbcType=LONGVARCHAR},
-          </if>
-          <if test="record.content != null">
-            #{record.content,jdbcType=LONGVARCHAR},
-          </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.name != null">
-            name = #{record.name,jdbcType=VARCHAR},
-          </if>
-          <if test="record.group != null">
-            group = #{record.group,jdbcType=VARCHAR},
-          </if>
-          <if test="record.title != null">
-            title = #{record.title,jdbcType=VARCHAR},
-          </if>
-          <if test="record.tip != null">
-            tip = #{record.tip,jdbcType=VARCHAR},
-          </if>
-          <if test="record.type != null">
-            type = #{record.type,jdbcType=VARCHAR},
-          </if>
-          <if test="record.rule != null">
-            rule = #{record.rule,jdbcType=VARCHAR},
-          </if>
-          <if test="record.extend != null">
-            extend = #{record.extend,jdbcType=VARCHAR},
-          </if>
-          <if test="record.value != null">
-            value = #{record.value,jdbcType=LONGVARCHAR},
-          </if>
-          <if test="record.content != null">
-            content = #{record.content,jdbcType=LONGVARCHAR},
-          </if>
-        </trim>
-      </otherwise>
-    </choose>
-  </insert>
-  <insert id="upsert" parameterType="com.book.dao.cps.pojo.Config">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Sat Aug 21 15:47:55 CST 2021.
-    -->
-    insert into config
-    (id, name, group, title, tip, type, rule, extend)
-    values
-    (#{id,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, #{group,jdbcType=VARCHAR}, #{title,jdbcType=VARCHAR}, 
-      #{tip,jdbcType=VARCHAR}, #{type,jdbcType=VARCHAR}, #{rule,jdbcType=VARCHAR}, #{extend,jdbcType=VARCHAR}
-      )
-    on duplicate key update 
-    id = #{id,jdbcType=INTEGER}, 
-    name = #{name,jdbcType=VARCHAR}, 
-    group = #{group,jdbcType=VARCHAR}, 
-    title = #{title,jdbcType=VARCHAR}, 
-    tip = #{tip,jdbcType=VARCHAR}, 
-    type = #{type,jdbcType=VARCHAR}, 
-    rule = #{rule,jdbcType=VARCHAR}, 
-    extend = #{extend,jdbcType=VARCHAR}
-  </insert>
-  <insert id="upsertWithBLOBs" parameterType="com.book.dao.cps.pojo.Config">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Sat Aug 21 15:47:55 CST 2021.
-    -->
-    insert into config
-    (id, name, group, title, tip, type, rule, extend, value, content)
-    values
-    (#{id,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, #{group,jdbcType=VARCHAR}, #{title,jdbcType=VARCHAR}, 
-      #{tip,jdbcType=VARCHAR}, #{type,jdbcType=VARCHAR}, #{rule,jdbcType=VARCHAR}, #{extend,jdbcType=VARCHAR}, 
-      #{value,jdbcType=LONGVARCHAR}, #{content,jdbcType=LONGVARCHAR})
-    on duplicate key update 
-    id = #{id,jdbcType=INTEGER}, 
-    name = #{name,jdbcType=VARCHAR}, 
-    group = #{group,jdbcType=VARCHAR}, 
-    title = #{title,jdbcType=VARCHAR}, 
-    tip = #{tip,jdbcType=VARCHAR}, 
-    type = #{type,jdbcType=VARCHAR}, 
-    rule = #{rule,jdbcType=VARCHAR}, 
-    extend = #{extend,jdbcType=VARCHAR}, 
-    value = #{value,jdbcType=LONGVARCHAR}, 
-    content = #{content,jdbcType=LONGVARCHAR}
-  </insert>
-</mapper>

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

@@ -1,676 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
-<mapper namespace="com.book.server.dao.mapper.ManageBlockMapper">
-  <resultMap id="BaseResultMap" type="com.book.dao.cps.pojo.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.dao.cps.pojo.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.dao.cps.pojo.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.dao.cps.pojo.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.dao.cps.pojo.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.dao.cps.pojo.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.dao.cps.pojo.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.dao.cps.pojo.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>

+ 0 - 42
book-server/src/main/resources/mapper/ManageBlockResource2Mapper.xml

@@ -1,42 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
-<mapper namespace="com.book.server.dao.mapper.ManageBlockResource2Mapper">
-  <resultMap id="BaseResultMap" type="com.book.dao.VO.ManageBlockResourceRes">
-    <!--
-      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" />
-    <result column="bookName" jdbcType="VARCHAR" property="bookName" />
-    <result column="bookDescription" jdbcType="VARCHAR" property="bookDescription" />
-    <result column="isFinish" jdbcType="VARCHAR" property="isFinish" />
-  </resultMap>
-  <select id="getBooks" resultMap="BaseResultMap">
-    SELECT
-      m.*,
-      b.NAME AS bookName,
-      b.description AS bookDescription,
-      b.is_finish AS isFinish
-    FROM
-      manage_block_resource m
-        LEFT JOIN book b ON m.book_id = b.id
-    WHERE
-      m.block_id IN (
-    <foreach collection="blockIds" item="blockId" index="index" separator="," >
-      #{blockId,jdbcType=INTEGER}
-    </foreach>
-    )
-  </select>
-
-
-</mapper>

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

@@ -1,738 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
-<mapper namespace="com.book.server.dao.mapper.ManageBlockResourceMapper">
-  <resultMap id="BaseResultMap" type="com.book.dao.cps.pojo.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.dao.cps.pojo.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.dao.cps.pojo.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.dao.cps.pojo.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.dao.cps.pojo.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.dao.cps.pojo.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.dao.cps.pojo.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.dao.cps.pojo.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>

+ 0 - 648
book-server/src/main/resources/mapper/ReturnRecommandMapper.xml

@@ -1,648 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
-<mapper namespace="com.book.server.dao.mapper.ReturnRecommandMapper">
-  <resultMap id="BaseResultMap" type="com.book.dao.cps.pojo.ReturnRecommand">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Aug 20 19:52:17 CST 2021.
-    -->
-    <id column="id" jdbcType="INTEGER" property="id" />
-    <result column="book_id" jdbcType="BIGINT" property="bookId" />
-    <result column="book_name" jdbcType="VARCHAR" property="bookName" />
-    <result column="sex" jdbcType="CHAR" property="sex" />
-    <result column="status" jdbcType="CHAR" property="status" />
-    <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 Fri Aug 20 19:52:17 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 Fri Aug 20 19:52:17 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 Fri Aug 20 19:52:17 CST 2021.
-    -->
-    id, book_id, book_name, sex, status, createtime, updatetime
-  </sql>
-  <select id="selectByExample" parameterType="com.book.dao.cps.pojo.example.ReturnRecommandExample" resultMap="BaseResultMap">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Aug 20 19:52:17 CST 2021.
-    -->
-    select
-    <if test="distinct">
-      distinct
-    </if>
-    <include refid="Base_Column_List" />
-    from return_recommand
-    <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 Fri Aug 20 19:52:17 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 return_recommand
-    <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 Fri Aug 20 19:52:17 CST 2021.
-    -->
-    select 
-    <include refid="Base_Column_List" />
-    from return_recommand
-    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 Fri Aug 20 19:52:17 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 return_recommand
-    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 Fri Aug 20 19:52:17 CST 2021.
-    -->
-    delete from return_recommand
-    where id = #{id,jdbcType=INTEGER}
-  </delete>
-  <delete id="deleteByExample" parameterType="com.book.dao.cps.pojo.example.ReturnRecommandExample">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Aug 20 19:52:17 CST 2021.
-    -->
-    delete from return_recommand
-    <if test="_parameter != null">
-      <include refid="Example_Where_Clause" />
-    </if>
-  </delete>
-  <insert id="insert" parameterType="com.book.dao.cps.pojo.ReturnRecommand">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Aug 20 19:52:17 CST 2021.
-    -->
-    insert into return_recommand (id, book_id, book_name, 
-      sex, status, createtime, 
-      updatetime)
-    values (#{id,jdbcType=INTEGER}, #{bookId,jdbcType=BIGINT}, #{bookName,jdbcType=VARCHAR}, 
-      #{sex,jdbcType=CHAR}, #{status,jdbcType=CHAR}, #{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 Fri Aug 20 19:52:17 CST 2021.
-    -->
-    insert into return_recommand
-    <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.bookId != null">
-            book_id,
-          </if>
-          <if test="record.bookName != null">
-            book_name,
-          </if>
-          <if test="record.sex != null">
-            sex,
-          </if>
-          <if test="record.status != null">
-            status,
-          </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.bookId != null">
-            #{record.bookId,jdbcType=BIGINT},
-          </if>
-          <if test="record.bookName != null">
-            #{record.bookName,jdbcType=VARCHAR},
-          </if>
-          <if test="record.sex != null">
-            #{record.sex,jdbcType=CHAR},
-          </if>
-          <if test="record.status != null">
-            #{record.status,jdbcType=CHAR},
-          </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.dao.cps.pojo.example.ReturnRecommandExample" resultType="java.lang.Long">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Aug 20 19:52:17 CST 2021.
-    -->
-    select count(*) from return_recommand
-    <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 Fri Aug 20 19:52:17 CST 2021.
-    -->
-    update return_recommand
-    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.bookId != null">
-            book_id = #{record.bookId,jdbcType=BIGINT},
-          </if>
-          <if test="record.bookName != null">
-            book_name = #{record.bookName,jdbcType=VARCHAR},
-          </if>
-          <if test="record.sex != null">
-            sex = #{record.sex,jdbcType=CHAR},
-          </if>
-          <if test="record.status != null">
-            status = #{record.status,jdbcType=CHAR},
-          </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 Fri Aug 20 19:52:17 CST 2021.
-    -->
-    update return_recommand
-    set id = #{record.id,jdbcType=INTEGER},
-      book_id = #{record.bookId,jdbcType=BIGINT},
-      book_name = #{record.bookName,jdbcType=VARCHAR},
-      sex = #{record.sex,jdbcType=CHAR},
-      status = #{record.status,jdbcType=CHAR},
-      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 Fri Aug 20 19:52:17 CST 2021.
-    -->
-    update return_recommand
-    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.bookId != null">
-            book_id = #{record.bookId,jdbcType=BIGINT},
-          </if>
-          <if test="record.bookName != null">
-            book_name = #{record.bookName,jdbcType=VARCHAR},
-          </if>
-          <if test="record.sex != null">
-            sex = #{record.sex,jdbcType=CHAR},
-          </if>
-          <if test="record.status != null">
-            status = #{record.status,jdbcType=CHAR},
-          </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.dao.cps.pojo.ReturnRecommand">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Aug 20 19:52:17 CST 2021.
-    -->
-    update return_recommand
-    set book_id = #{bookId,jdbcType=BIGINT},
-      book_name = #{bookName,jdbcType=VARCHAR},
-      sex = #{sex,jdbcType=CHAR},
-      status = #{status,jdbcType=CHAR},
-      createtime = #{createtime,jdbcType=INTEGER},
-      updatetime = #{updatetime,jdbcType=INTEGER}
-    where id = #{id,jdbcType=INTEGER}
-  </update>
-  <select id="selectOneByExample" parameterType="com.book.dao.cps.pojo.example.ReturnRecommandExample" resultMap="BaseResultMap">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Aug 20 19:52:17 CST 2021.
-    -->
-    select
-    <include refid="Base_Column_List" />
-    from return_recommand
-    <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 Fri Aug 20 19:52:17 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 return_recommand
-    <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 Fri Aug 20 19:52:17 CST 2021.
-    -->
-    insert into return_recommand
-    (id, book_id, book_name, sex, status, createtime, updatetime)
-    values
-    <foreach collection="list" item="item" separator=",">
-      (#{item.id,jdbcType=INTEGER}, #{item.bookId,jdbcType=BIGINT}, #{item.bookName,jdbcType=VARCHAR}, 
-        #{item.sex,jdbcType=CHAR}, #{item.status,jdbcType=CHAR}, #{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 Fri Aug 20 19:52:17 CST 2021.
-    -->
-    insert into return_recommand (
-    <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="'book_id'.toString() == column.value">
-          #{item.bookId,jdbcType=BIGINT}
-        </if>
-        <if test="'book_name'.toString() == column.value">
-          #{item.bookName,jdbcType=VARCHAR}
-        </if>
-        <if test="'sex'.toString() == column.value">
-          #{item.sex,jdbcType=CHAR}
-        </if>
-        <if test="'status'.toString() == column.value">
-          #{item.status,jdbcType=CHAR}
-        </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 Fri Aug 20 19:52:17 CST 2021.
-    -->
-    insert into return_recommand
-    <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.bookId != null">
-            book_id,
-          </if>
-          <if test="record.bookName != null">
-            book_name,
-          </if>
-          <if test="record.sex != null">
-            sex,
-          </if>
-          <if test="record.status != null">
-            status,
-          </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.bookId != null">
-            #{record.bookId,jdbcType=BIGINT},
-          </if>
-          <if test="record.bookName != null">
-            #{record.bookName,jdbcType=VARCHAR},
-          </if>
-          <if test="record.sex != null">
-            #{record.sex,jdbcType=CHAR},
-          </if>
-          <if test="record.status != null">
-            #{record.status,jdbcType=CHAR},
-          </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.bookId != null">
-            book_id = #{record.bookId,jdbcType=BIGINT},
-          </if>
-          <if test="record.bookName != null">
-            book_name = #{record.bookName,jdbcType=VARCHAR},
-          </if>
-          <if test="record.sex != null">
-            sex = #{record.sex,jdbcType=CHAR},
-          </if>
-          <if test="record.status != null">
-            status = #{record.status,jdbcType=CHAR},
-          </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.dao.cps.pojo.ReturnRecommand">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Aug 20 19:52:17 CST 2021.
-    -->
-    insert into return_recommand
-    (id, book_id, book_name, sex, status, createtime, updatetime)
-    values
-    (#{id,jdbcType=INTEGER}, #{bookId,jdbcType=BIGINT}, #{bookName,jdbcType=VARCHAR}, 
-      #{sex,jdbcType=CHAR}, #{status,jdbcType=CHAR}, #{createtime,jdbcType=INTEGER}, 
-      #{updatetime,jdbcType=INTEGER})
-    on duplicate key update 
-    id = #{id,jdbcType=INTEGER}, 
-    book_id = #{bookId,jdbcType=BIGINT}, 
-    book_name = #{bookName,jdbcType=VARCHAR}, 
-    sex = #{sex,jdbcType=CHAR}, 
-    status = #{status,jdbcType=CHAR}, 
-    createtime = #{createtime,jdbcType=INTEGER}, 
-    updatetime = #{updatetime,jdbcType=INTEGER}
-  </insert>
-</mapper>

+ 0 - 648
book-server/src/main/resources/mapper/SearchKeywordMapper.xml

@@ -1,648 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
-<mapper namespace="com.book.server.dao.mapper.SearchKeywordMapper">
-  <resultMap id="BaseResultMap" type="com.book.dao.cps.pojo.SearchKeyword">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Tue Aug 17 22:58:15 CST 2021.
-    -->
-    <id column="id" jdbcType="INTEGER" property="id" />
-    <result column="keyword" jdbcType="VARCHAR" property="keyword" />
-    <result column="book_id" jdbcType="BIGINT" property="bookId" />
-    <result column="sex" jdbcType="CHAR" property="sex" />
-    <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 Tue Aug 17 22:58:15 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 Tue Aug 17 22:58:15 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 Tue Aug 17 22:58:15 CST 2021.
-    -->
-    id, keyword, book_id, sex, weigh, createtime, updatetime
-  </sql>
-  <select id="selectByExample" parameterType="com.book.dao.cps.pojo.example.SearchKeywordExample" resultMap="BaseResultMap">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Tue Aug 17 22:58:15 CST 2021.
-    -->
-    select
-    <if test="distinct">
-      distinct
-    </if>
-    <include refid="Base_Column_List" />
-    from search_keyword
-    <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 Tue Aug 17 22:58:15 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 search_keyword
-    <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 Tue Aug 17 22:58:15 CST 2021.
-    -->
-    select 
-    <include refid="Base_Column_List" />
-    from search_keyword
-    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 Tue Aug 17 22:58:15 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 search_keyword
-    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 Tue Aug 17 22:58:15 CST 2021.
-    -->
-    delete from search_keyword
-    where id = #{id,jdbcType=INTEGER}
-  </delete>
-  <delete id="deleteByExample" parameterType="com.book.dao.cps.pojo.example.SearchKeywordExample">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Tue Aug 17 22:58:15 CST 2021.
-    -->
-    delete from search_keyword
-    <if test="_parameter != null">
-      <include refid="Example_Where_Clause" />
-    </if>
-  </delete>
-  <insert id="insert" parameterType="com.book.dao.cps.pojo.SearchKeyword">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Tue Aug 17 22:58:15 CST 2021.
-    -->
-    insert into search_keyword (id, keyword, book_id, 
-      sex, weigh, createtime, 
-      updatetime)
-    values (#{id,jdbcType=INTEGER}, #{keyword,jdbcType=VARCHAR}, #{bookId,jdbcType=BIGINT}, 
-      #{sex,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 Tue Aug 17 22:58:15 CST 2021.
-    -->
-    insert into search_keyword
-    <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.keyword != null">
-            keyword,
-          </if>
-          <if test="record.bookId != null">
-            book_id,
-          </if>
-          <if test="record.sex != null">
-            sex,
-          </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.keyword != null">
-            #{record.keyword,jdbcType=VARCHAR},
-          </if>
-          <if test="record.bookId != null">
-            #{record.bookId,jdbcType=BIGINT},
-          </if>
-          <if test="record.sex != null">
-            #{record.sex,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.dao.cps.pojo.example.SearchKeywordExample" resultType="java.lang.Long">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Tue Aug 17 22:58:15 CST 2021.
-    -->
-    select count(*) from search_keyword
-    <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 Tue Aug 17 22:58:15 CST 2021.
-    -->
-    update search_keyword
-    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.keyword != null">
-            keyword = #{record.keyword,jdbcType=VARCHAR},
-          </if>
-          <if test="record.bookId != null">
-            book_id = #{record.bookId,jdbcType=BIGINT},
-          </if>
-          <if test="record.sex != null">
-            sex = #{record.sex,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 Tue Aug 17 22:58:15 CST 2021.
-    -->
-    update search_keyword
-    set id = #{record.id,jdbcType=INTEGER},
-      keyword = #{record.keyword,jdbcType=VARCHAR},
-      book_id = #{record.bookId,jdbcType=BIGINT},
-      sex = #{record.sex,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 Tue Aug 17 22:58:15 CST 2021.
-    -->
-    update search_keyword
-    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.keyword != null">
-            keyword = #{record.keyword,jdbcType=VARCHAR},
-          </if>
-          <if test="record.bookId != null">
-            book_id = #{record.bookId,jdbcType=BIGINT},
-          </if>
-          <if test="record.sex != null">
-            sex = #{record.sex,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.dao.cps.pojo.SearchKeyword">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Tue Aug 17 22:58:15 CST 2021.
-    -->
-    update search_keyword
-    set keyword = #{keyword,jdbcType=VARCHAR},
-      book_id = #{bookId,jdbcType=BIGINT},
-      sex = #{sex,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.dao.cps.pojo.example.SearchKeywordExample" resultMap="BaseResultMap">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Tue Aug 17 22:58:15 CST 2021.
-    -->
-    select
-    <include refid="Base_Column_List" />
-    from search_keyword
-    <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 Tue Aug 17 22:58:15 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 search_keyword
-    <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 Tue Aug 17 22:58:15 CST 2021.
-    -->
-    insert into search_keyword
-    (id, keyword, book_id, sex, weigh, createtime, updatetime)
-    values
-    <foreach collection="list" item="item" separator=",">
-      (#{item.id,jdbcType=INTEGER}, #{item.keyword,jdbcType=VARCHAR}, #{item.bookId,jdbcType=BIGINT}, 
-        #{item.sex,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 Tue Aug 17 22:58:15 CST 2021.
-    -->
-    insert into search_keyword (
-    <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="'keyword'.toString() == column.value">
-          #{item.keyword,jdbcType=VARCHAR}
-        </if>
-        <if test="'book_id'.toString() == column.value">
-          #{item.bookId,jdbcType=BIGINT}
-        </if>
-        <if test="'sex'.toString() == column.value">
-          #{item.sex,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 Tue Aug 17 22:58:15 CST 2021.
-    -->
-    insert into search_keyword
-    <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.keyword != null">
-            keyword,
-          </if>
-          <if test="record.bookId != null">
-            book_id,
-          </if>
-          <if test="record.sex != null">
-            sex,
-          </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.keyword != null">
-            #{record.keyword,jdbcType=VARCHAR},
-          </if>
-          <if test="record.bookId != null">
-            #{record.bookId,jdbcType=BIGINT},
-          </if>
-          <if test="record.sex != null">
-            #{record.sex,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.keyword != null">
-            keyword = #{record.keyword,jdbcType=VARCHAR},
-          </if>
-          <if test="record.bookId != null">
-            book_id = #{record.bookId,jdbcType=BIGINT},
-          </if>
-          <if test="record.sex != null">
-            sex = #{record.sex,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.dao.cps.pojo.SearchKeyword">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Tue Aug 17 22:58:15 CST 2021.
-    -->
-    insert into search_keyword
-    (id, keyword, book_id, sex, weigh, createtime, updatetime)
-    values
-    (#{id,jdbcType=INTEGER}, #{keyword,jdbcType=VARCHAR}, #{bookId,jdbcType=BIGINT}, 
-      #{sex,jdbcType=CHAR}, #{weigh,jdbcType=INTEGER}, #{createtime,jdbcType=INTEGER}, 
-      #{updatetime,jdbcType=INTEGER})
-    on duplicate key update 
-    id = #{id,jdbcType=INTEGER}, 
-    keyword = #{keyword,jdbcType=VARCHAR}, 
-    book_id = #{bookId,jdbcType=BIGINT}, 
-    sex = #{sex,jdbcType=CHAR}, 
-    weigh = #{weigh,jdbcType=INTEGER}, 
-    createtime = #{createtime,jdbcType=INTEGER}, 
-    updatetime = #{updatetime,jdbcType=INTEGER}
-  </insert>
-</mapper>

+ 0 - 767
book-server/src/main/resources/mapper/SmartRecommandMapper.xml

@@ -1,767 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
-<mapper namespace="com.book.server.dao.mapper.SmartRecommandMapper">
-  <resultMap id="BaseResultMap" type="com.book.dao.cps.pojo.SmartRecommand">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Aug 20 19:52:17 CST 2021.
-    -->
-    <id column="id" jdbcType="INTEGER" property="id" />
-    <result column="book_id" jdbcType="BIGINT" property="bookId" />
-    <result column="book_name" jdbcType="VARCHAR" property="bookName" />
-    <result column="title" jdbcType="VARCHAR" property="title" />
-    <result column="description" jdbcType="VARCHAR" property="description" />
-    <result column="image" jdbcType="VARCHAR" property="image" />
-    <result column="sex" jdbcType="CHAR" property="sex" />
-    <result column="status" jdbcType="CHAR" property="status" />
-    <result column="location" jdbcType="CHAR" property="location" />
-    <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 Fri Aug 20 19:52:17 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 Fri Aug 20 19:52:17 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 Fri Aug 20 19:52:17 CST 2021.
-    -->
-    id, book_id, book_name, title, description, image, sex, status, location, createtime, 
-    updatetime
-  </sql>
-  <select id="selectByExample" parameterType="com.book.dao.cps.pojo.example.SmartRecommandExample" resultMap="BaseResultMap">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Aug 20 19:52:17 CST 2021.
-    -->
-    select
-    <if test="distinct">
-      distinct
-    </if>
-    <include refid="Base_Column_List" />
-    from smart_recommand
-    <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 Fri Aug 20 19:52:17 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 smart_recommand
-    <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 Fri Aug 20 19:52:17 CST 2021.
-    -->
-    select 
-    <include refid="Base_Column_List" />
-    from smart_recommand
-    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 Fri Aug 20 19:52:17 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 smart_recommand
-    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 Fri Aug 20 19:52:17 CST 2021.
-    -->
-    delete from smart_recommand
-    where id = #{id,jdbcType=INTEGER}
-  </delete>
-  <delete id="deleteByExample" parameterType="com.book.dao.cps.pojo.example.SmartRecommandExample">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Aug 20 19:52:17 CST 2021.
-    -->
-    delete from smart_recommand
-    <if test="_parameter != null">
-      <include refid="Example_Where_Clause" />
-    </if>
-  </delete>
-  <insert id="insert" parameterType="com.book.dao.cps.pojo.SmartRecommand">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Aug 20 19:52:17 CST 2021.
-    -->
-    insert into smart_recommand (id, book_id, book_name, 
-      title, description, image, 
-      sex, status, location, createtime, 
-      updatetime)
-    values (#{id,jdbcType=INTEGER}, #{bookId,jdbcType=BIGINT}, #{bookName,jdbcType=VARCHAR}, 
-      #{title,jdbcType=VARCHAR}, #{description,jdbcType=VARCHAR}, #{image,jdbcType=VARCHAR}, 
-      #{sex,jdbcType=CHAR}, #{status,jdbcType=CHAR}, #{location,jdbcType=CHAR}, #{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 Fri Aug 20 19:52:17 CST 2021.
-    -->
-    insert into smart_recommand
-    <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.bookId != null">
-            book_id,
-          </if>
-          <if test="record.bookName != null">
-            book_name,
-          </if>
-          <if test="record.title != null">
-            title,
-          </if>
-          <if test="record.description != null">
-            description,
-          </if>
-          <if test="record.image != null">
-            image,
-          </if>
-          <if test="record.sex != null">
-            sex,
-          </if>
-          <if test="record.status != null">
-            status,
-          </if>
-          <if test="record.location != null">
-            location,
-          </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.bookId != null">
-            #{record.bookId,jdbcType=BIGINT},
-          </if>
-          <if test="record.bookName != null">
-            #{record.bookName,jdbcType=VARCHAR},
-          </if>
-          <if test="record.title != null">
-            #{record.title,jdbcType=VARCHAR},
-          </if>
-          <if test="record.description != null">
-            #{record.description,jdbcType=VARCHAR},
-          </if>
-          <if test="record.image != null">
-            #{record.image,jdbcType=VARCHAR},
-          </if>
-          <if test="record.sex != null">
-            #{record.sex,jdbcType=CHAR},
-          </if>
-          <if test="record.status != null">
-            #{record.status,jdbcType=CHAR},
-          </if>
-          <if test="record.location != null">
-            #{record.location,jdbcType=CHAR},
-          </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.dao.cps.pojo.example.SmartRecommandExample" resultType="java.lang.Long">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Aug 20 19:52:17 CST 2021.
-    -->
-    select count(*) from smart_recommand
-    <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 Fri Aug 20 19:52:17 CST 2021.
-    -->
-    update smart_recommand
-    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.bookId != null">
-            book_id = #{record.bookId,jdbcType=BIGINT},
-          </if>
-          <if test="record.bookName != null">
-            book_name = #{record.bookName,jdbcType=VARCHAR},
-          </if>
-          <if test="record.title != null">
-            title = #{record.title,jdbcType=VARCHAR},
-          </if>
-          <if test="record.description != null">
-            description = #{record.description,jdbcType=VARCHAR},
-          </if>
-          <if test="record.image != null">
-            image = #{record.image,jdbcType=VARCHAR},
-          </if>
-          <if test="record.sex != null">
-            sex = #{record.sex,jdbcType=CHAR},
-          </if>
-          <if test="record.status != null">
-            status = #{record.status,jdbcType=CHAR},
-          </if>
-          <if test="record.location != null">
-            location = #{record.location,jdbcType=CHAR},
-          </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 Fri Aug 20 19:52:17 CST 2021.
-    -->
-    update smart_recommand
-    set id = #{record.id,jdbcType=INTEGER},
-      book_id = #{record.bookId,jdbcType=BIGINT},
-      book_name = #{record.bookName,jdbcType=VARCHAR},
-      title = #{record.title,jdbcType=VARCHAR},
-      description = #{record.description,jdbcType=VARCHAR},
-      image = #{record.image,jdbcType=VARCHAR},
-      sex = #{record.sex,jdbcType=CHAR},
-      status = #{record.status,jdbcType=CHAR},
-      location = #{record.location,jdbcType=CHAR},
-      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 Fri Aug 20 19:52:17 CST 2021.
-    -->
-    update smart_recommand
-    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.bookId != null">
-            book_id = #{record.bookId,jdbcType=BIGINT},
-          </if>
-          <if test="record.bookName != null">
-            book_name = #{record.bookName,jdbcType=VARCHAR},
-          </if>
-          <if test="record.title != null">
-            title = #{record.title,jdbcType=VARCHAR},
-          </if>
-          <if test="record.description != null">
-            description = #{record.description,jdbcType=VARCHAR},
-          </if>
-          <if test="record.image != null">
-            image = #{record.image,jdbcType=VARCHAR},
-          </if>
-          <if test="record.sex != null">
-            sex = #{record.sex,jdbcType=CHAR},
-          </if>
-          <if test="record.status != null">
-            status = #{record.status,jdbcType=CHAR},
-          </if>
-          <if test="record.location != null">
-            location = #{record.location,jdbcType=CHAR},
-          </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.dao.cps.pojo.SmartRecommand">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Aug 20 19:52:17 CST 2021.
-    -->
-    update smart_recommand
-    set book_id = #{bookId,jdbcType=BIGINT},
-      book_name = #{bookName,jdbcType=VARCHAR},
-      title = #{title,jdbcType=VARCHAR},
-      description = #{description,jdbcType=VARCHAR},
-      image = #{image,jdbcType=VARCHAR},
-      sex = #{sex,jdbcType=CHAR},
-      status = #{status,jdbcType=CHAR},
-      location = #{location,jdbcType=CHAR},
-      createtime = #{createtime,jdbcType=INTEGER},
-      updatetime = #{updatetime,jdbcType=INTEGER}
-    where id = #{id,jdbcType=INTEGER}
-  </update>
-  <select id="selectOneByExample" parameterType="com.book.dao.cps.pojo.example.SmartRecommandExample" resultMap="BaseResultMap">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Aug 20 19:52:17 CST 2021.
-    -->
-    select
-    <include refid="Base_Column_List" />
-    from smart_recommand
-    <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 Fri Aug 20 19:52:17 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 smart_recommand
-    <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 Fri Aug 20 19:52:17 CST 2021.
-    -->
-    insert into smart_recommand
-    (id, book_id, book_name, title, description, image, sex, status, location, createtime, 
-      updatetime)
-    values
-    <foreach collection="list" item="item" separator=",">
-      (#{item.id,jdbcType=INTEGER}, #{item.bookId,jdbcType=BIGINT}, #{item.bookName,jdbcType=VARCHAR}, 
-        #{item.title,jdbcType=VARCHAR}, #{item.description,jdbcType=VARCHAR}, #{item.image,jdbcType=VARCHAR}, 
-        #{item.sex,jdbcType=CHAR}, #{item.status,jdbcType=CHAR}, #{item.location,jdbcType=CHAR}, 
-        #{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 Fri Aug 20 19:52:17 CST 2021.
-    -->
-    insert into smart_recommand (
-    <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="'book_id'.toString() == column.value">
-          #{item.bookId,jdbcType=BIGINT}
-        </if>
-        <if test="'book_name'.toString() == column.value">
-          #{item.bookName,jdbcType=VARCHAR}
-        </if>
-        <if test="'title'.toString() == column.value">
-          #{item.title,jdbcType=VARCHAR}
-        </if>
-        <if test="'description'.toString() == column.value">
-          #{item.description,jdbcType=VARCHAR}
-        </if>
-        <if test="'image'.toString() == column.value">
-          #{item.image,jdbcType=VARCHAR}
-        </if>
-        <if test="'sex'.toString() == column.value">
-          #{item.sex,jdbcType=CHAR}
-        </if>
-        <if test="'status'.toString() == column.value">
-          #{item.status,jdbcType=CHAR}
-        </if>
-        <if test="'location'.toString() == column.value">
-          #{item.location,jdbcType=CHAR}
-        </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 Fri Aug 20 19:52:17 CST 2021.
-    -->
-    insert into smart_recommand
-    <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.bookId != null">
-            book_id,
-          </if>
-          <if test="record.bookName != null">
-            book_name,
-          </if>
-          <if test="record.title != null">
-            title,
-          </if>
-          <if test="record.description != null">
-            description,
-          </if>
-          <if test="record.image != null">
-            image,
-          </if>
-          <if test="record.sex != null">
-            sex,
-          </if>
-          <if test="record.status != null">
-            status,
-          </if>
-          <if test="record.location != null">
-            location,
-          </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.bookId != null">
-            #{record.bookId,jdbcType=BIGINT},
-          </if>
-          <if test="record.bookName != null">
-            #{record.bookName,jdbcType=VARCHAR},
-          </if>
-          <if test="record.title != null">
-            #{record.title,jdbcType=VARCHAR},
-          </if>
-          <if test="record.description != null">
-            #{record.description,jdbcType=VARCHAR},
-          </if>
-          <if test="record.image != null">
-            #{record.image,jdbcType=VARCHAR},
-          </if>
-          <if test="record.sex != null">
-            #{record.sex,jdbcType=CHAR},
-          </if>
-          <if test="record.status != null">
-            #{record.status,jdbcType=CHAR},
-          </if>
-          <if test="record.location != null">
-            #{record.location,jdbcType=CHAR},
-          </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.bookId != null">
-            book_id = #{record.bookId,jdbcType=BIGINT},
-          </if>
-          <if test="record.bookName != null">
-            book_name = #{record.bookName,jdbcType=VARCHAR},
-          </if>
-          <if test="record.title != null">
-            title = #{record.title,jdbcType=VARCHAR},
-          </if>
-          <if test="record.description != null">
-            description = #{record.description,jdbcType=VARCHAR},
-          </if>
-          <if test="record.image != null">
-            image = #{record.image,jdbcType=VARCHAR},
-          </if>
-          <if test="record.sex != null">
-            sex = #{record.sex,jdbcType=CHAR},
-          </if>
-          <if test="record.status != null">
-            status = #{record.status,jdbcType=CHAR},
-          </if>
-          <if test="record.location != null">
-            location = #{record.location,jdbcType=CHAR},
-          </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.dao.cps.pojo.SmartRecommand">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Aug 20 19:52:17 CST 2021.
-    -->
-    insert into smart_recommand
-    (id, book_id, book_name, title, description, image, sex, status, location, createtime, 
-      updatetime)
-    values
-    (#{id,jdbcType=INTEGER}, #{bookId,jdbcType=BIGINT}, #{bookName,jdbcType=VARCHAR}, 
-      #{title,jdbcType=VARCHAR}, #{description,jdbcType=VARCHAR}, #{image,jdbcType=VARCHAR}, 
-      #{sex,jdbcType=CHAR}, #{status,jdbcType=CHAR}, #{location,jdbcType=CHAR}, #{createtime,jdbcType=INTEGER}, 
-      #{updatetime,jdbcType=INTEGER})
-    on duplicate key update 
-    id = #{id,jdbcType=INTEGER}, 
-    book_id = #{bookId,jdbcType=BIGINT}, 
-    book_name = #{bookName,jdbcType=VARCHAR}, 
-    title = #{title,jdbcType=VARCHAR}, 
-    description = #{description,jdbcType=VARCHAR}, 
-    image = #{image,jdbcType=VARCHAR}, 
-    sex = #{sex,jdbcType=CHAR}, 
-    status = #{status,jdbcType=CHAR}, 
-    location = #{location,jdbcType=CHAR}, 
-    createtime = #{createtime,jdbcType=INTEGER}, 
-    updatetime = #{updatetime,jdbcType=INTEGER}
-  </insert>
-</mapper>

+ 0 - 1244
book-server/src/main/resources/mapper/UserMapper.xml

@@ -1,1244 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
-<mapper namespace="com.book.server.dao.mapper.UserMapper">
-  <resultMap id="BaseResultMap" type="com.book.dao.cps.pojo.User">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Tue Aug 17 22:19:18 CST 2021.
-    -->
-    <id column="id" jdbcType="BIGINT" property="id" />
-    <result column="openid" jdbcType="VARCHAR" property="openid" />
-    <result column="unionid" jdbcType="VARCHAR" property="unionid" />
-    <result column="visitor" jdbcType="VARCHAR" property="visitor" />
-    <result column="nickname" jdbcType="VARCHAR" property="nickname" />
-    <result column="sex" jdbcType="CHAR" property="sex" />
-    <result column="mobile" jdbcType="CHAR" property="mobile" />
-    <result column="avatar" jdbcType="VARCHAR" property="avatar" />
-    <result column="is_subscribe" jdbcType="CHAR" property="isSubscribe" />
-    <result column="subscription_extend" jdbcType="CHAR" property="subscriptionExtend" />
-    <result column="subscribe_time" jdbcType="INTEGER" property="subscribeTime" />
-    <result column="book_category_ids" jdbcType="VARCHAR" property="bookCategoryIds" />
-    <result column="operate_time" jdbcType="INTEGER" property="operateTime" />
-    <result column="is_pay" jdbcType="CHAR" property="isPay" />
-    <result column="kandian" jdbcType="INTEGER" property="kandian" />
-    <result column="free_kandian" jdbcType="INTEGER" property="freeKandian" />
-    <result column="vip_endtime" jdbcType="INTEGER" property="vipEndtime" />
-    <result column="register_ip" jdbcType="VARCHAR" property="registerIp" />
-    <result column="country" jdbcType="VARCHAR" property="country" />
-    <result column="area" jdbcType="VARCHAR" property="area" />
-    <result column="province" jdbcType="VARCHAR" property="province" />
-    <result column="city" jdbcType="VARCHAR" property="city" />
-    <result column="isp" jdbcType="VARCHAR" property="isp" />
-    <result column="channel_id" jdbcType="INTEGER" property="channelId" />
-    <result column="state" jdbcType="CHAR" property="state" />
-    <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 Tue Aug 17 22:19:18 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 Tue Aug 17 22:19:18 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 Tue Aug 17 22:19:18 CST 2021.
-    -->
-    id, openid, unionid, visitor, nickname, sex, mobile, avatar, is_subscribe, subscription_extend, 
-    subscribe_time, book_category_ids, operate_time, is_pay, kandian, free_kandian, vip_endtime, 
-    register_ip, country, area, province, city, isp, channel_id, state, createtime, updatetime
-  </sql>
-  <select id="selectByExample" parameterType="com.book.dao.cps.pojo.example.UserExample" resultMap="BaseResultMap">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Tue Aug 17 22:19:18 CST 2021.
-    -->
-    select
-    <if test="distinct">
-      distinct
-    </if>
-    <include refid="Base_Column_List" />
-    from user
-    <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 Tue Aug 17 22:19:18 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 user
-    <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.Long" resultMap="BaseResultMap">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Tue Aug 17 22:19:18 CST 2021.
-    -->
-    select 
-    <include refid="Base_Column_List" />
-    from user
-    where id = #{id,jdbcType=BIGINT}
-  </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 Tue Aug 17 22:19:18 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 user
-    where id = #{id,jdbcType=BIGINT}
-  </select>
-  <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Tue Aug 17 22:19:18 CST 2021.
-    -->
-    delete from user
-    where id = #{id,jdbcType=BIGINT}
-  </delete>
-  <delete id="deleteByExample" parameterType="com.book.dao.cps.pojo.example.UserExample">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Tue Aug 17 22:19:18 CST 2021.
-    -->
-    delete from user
-    <if test="_parameter != null">
-      <include refid="Example_Where_Clause" />
-    </if>
-  </delete>
-  <insert id="insert" parameterType="com.book.dao.cps.pojo.User">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Tue Aug 17 22:19:18 CST 2021.
-    -->
-    insert into user (id, openid, unionid, 
-      visitor, nickname, sex, 
-      mobile, avatar, is_subscribe, 
-      subscription_extend, subscribe_time, book_category_ids, 
-      operate_time, is_pay, kandian, 
-      free_kandian, vip_endtime, register_ip, 
-      country, area, province, 
-      city, isp, channel_id, 
-      state, createtime, updatetime
-      )
-    values (#{id,jdbcType=BIGINT}, #{openid,jdbcType=VARCHAR}, #{unionid,jdbcType=VARCHAR}, 
-      #{visitor,jdbcType=VARCHAR}, #{nickname,jdbcType=VARCHAR}, #{sex,jdbcType=CHAR}, 
-      #{mobile,jdbcType=CHAR}, #{avatar,jdbcType=VARCHAR}, #{isSubscribe,jdbcType=CHAR}, 
-      #{subscriptionExtend,jdbcType=CHAR}, #{subscribeTime,jdbcType=INTEGER}, #{bookCategoryIds,jdbcType=VARCHAR}, 
-      #{operateTime,jdbcType=INTEGER}, #{isPay,jdbcType=CHAR}, #{kandian,jdbcType=INTEGER}, 
-      #{freeKandian,jdbcType=INTEGER}, #{vipEndtime,jdbcType=INTEGER}, #{registerIp,jdbcType=VARCHAR}, 
-      #{country,jdbcType=VARCHAR}, #{area,jdbcType=VARCHAR}, #{province,jdbcType=VARCHAR}, 
-      #{city,jdbcType=VARCHAR}, #{isp,jdbcType=VARCHAR}, #{channelId,jdbcType=INTEGER}, 
-      #{state,jdbcType=CHAR}, #{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 Tue Aug 17 22:19:18 CST 2021.
-    -->
-    insert into user
-    <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.openid != null">
-            openid,
-          </if>
-          <if test="record.unionid != null">
-            unionid,
-          </if>
-          <if test="record.visitor != null">
-            visitor,
-          </if>
-          <if test="record.nickname != null">
-            nickname,
-          </if>
-          <if test="record.sex != null">
-            sex,
-          </if>
-          <if test="record.mobile != null">
-            mobile,
-          </if>
-          <if test="record.avatar != null">
-            avatar,
-          </if>
-          <if test="record.isSubscribe != null">
-            is_subscribe,
-          </if>
-          <if test="record.subscriptionExtend != null">
-            subscription_extend,
-          </if>
-          <if test="record.subscribeTime != null">
-            subscribe_time,
-          </if>
-          <if test="record.bookCategoryIds != null">
-            book_category_ids,
-          </if>
-          <if test="record.operateTime != null">
-            operate_time,
-          </if>
-          <if test="record.isPay != null">
-            is_pay,
-          </if>
-          <if test="record.kandian != null">
-            kandian,
-          </if>
-          <if test="record.freeKandian != null">
-            free_kandian,
-          </if>
-          <if test="record.vipEndtime != null">
-            vip_endtime,
-          </if>
-          <if test="record.registerIp != null">
-            register_ip,
-          </if>
-          <if test="record.country != null">
-            country,
-          </if>
-          <if test="record.area != null">
-            area,
-          </if>
-          <if test="record.province != null">
-            province,
-          </if>
-          <if test="record.city != null">
-            city,
-          </if>
-          <if test="record.isp != null">
-            isp,
-          </if>
-          <if test="record.channelId != null">
-            channel_id,
-          </if>
-          <if test="record.state != null">
-            state,
-          </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=BIGINT},
-          </if>
-          <if test="record.openid != null">
-            #{record.openid,jdbcType=VARCHAR},
-          </if>
-          <if test="record.unionid != null">
-            #{record.unionid,jdbcType=VARCHAR},
-          </if>
-          <if test="record.visitor != null">
-            #{record.visitor,jdbcType=VARCHAR},
-          </if>
-          <if test="record.nickname != null">
-            #{record.nickname,jdbcType=VARCHAR},
-          </if>
-          <if test="record.sex != null">
-            #{record.sex,jdbcType=CHAR},
-          </if>
-          <if test="record.mobile != null">
-            #{record.mobile,jdbcType=CHAR},
-          </if>
-          <if test="record.avatar != null">
-            #{record.avatar,jdbcType=VARCHAR},
-          </if>
-          <if test="record.isSubscribe != null">
-            #{record.isSubscribe,jdbcType=CHAR},
-          </if>
-          <if test="record.subscriptionExtend != null">
-            #{record.subscriptionExtend,jdbcType=CHAR},
-          </if>
-          <if test="record.subscribeTime != null">
-            #{record.subscribeTime,jdbcType=INTEGER},
-          </if>
-          <if test="record.bookCategoryIds != null">
-            #{record.bookCategoryIds,jdbcType=VARCHAR},
-          </if>
-          <if test="record.operateTime != null">
-            #{record.operateTime,jdbcType=INTEGER},
-          </if>
-          <if test="record.isPay != null">
-            #{record.isPay,jdbcType=CHAR},
-          </if>
-          <if test="record.kandian != null">
-            #{record.kandian,jdbcType=INTEGER},
-          </if>
-          <if test="record.freeKandian != null">
-            #{record.freeKandian,jdbcType=INTEGER},
-          </if>
-          <if test="record.vipEndtime != null">
-            #{record.vipEndtime,jdbcType=INTEGER},
-          </if>
-          <if test="record.registerIp != null">
-            #{record.registerIp,jdbcType=VARCHAR},
-          </if>
-          <if test="record.country != null">
-            #{record.country,jdbcType=VARCHAR},
-          </if>
-          <if test="record.area != null">
-            #{record.area,jdbcType=VARCHAR},
-          </if>
-          <if test="record.province != null">
-            #{record.province,jdbcType=VARCHAR},
-          </if>
-          <if test="record.city != null">
-            #{record.city,jdbcType=VARCHAR},
-          </if>
-          <if test="record.isp != null">
-            #{record.isp,jdbcType=VARCHAR},
-          </if>
-          <if test="record.channelId != null">
-            #{record.channelId,jdbcType=INTEGER},
-          </if>
-          <if test="record.state != null">
-            #{record.state,jdbcType=CHAR},
-          </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.dao.cps.pojo.example.UserExample" resultType="java.lang.Long">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Tue Aug 17 22:19:18 CST 2021.
-    -->
-    select count(*) from user
-    <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 Tue Aug 17 22:19:18 CST 2021.
-    -->
-    update user
-    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=BIGINT},
-          </if>
-          <if test="record.openid != null">
-            openid = #{record.openid,jdbcType=VARCHAR},
-          </if>
-          <if test="record.unionid != null">
-            unionid = #{record.unionid,jdbcType=VARCHAR},
-          </if>
-          <if test="record.visitor != null">
-            visitor = #{record.visitor,jdbcType=VARCHAR},
-          </if>
-          <if test="record.nickname != null">
-            nickname = #{record.nickname,jdbcType=VARCHAR},
-          </if>
-          <if test="record.sex != null">
-            sex = #{record.sex,jdbcType=CHAR},
-          </if>
-          <if test="record.mobile != null">
-            mobile = #{record.mobile,jdbcType=CHAR},
-          </if>
-          <if test="record.avatar != null">
-            avatar = #{record.avatar,jdbcType=VARCHAR},
-          </if>
-          <if test="record.isSubscribe != null">
-            is_subscribe = #{record.isSubscribe,jdbcType=CHAR},
-          </if>
-          <if test="record.subscriptionExtend != null">
-            subscription_extend = #{record.subscriptionExtend,jdbcType=CHAR},
-          </if>
-          <if test="record.subscribeTime != null">
-            subscribe_time = #{record.subscribeTime,jdbcType=INTEGER},
-          </if>
-          <if test="record.bookCategoryIds != null">
-            book_category_ids = #{record.bookCategoryIds,jdbcType=VARCHAR},
-          </if>
-          <if test="record.operateTime != null">
-            operate_time = #{record.operateTime,jdbcType=INTEGER},
-          </if>
-          <if test="record.isPay != null">
-            is_pay = #{record.isPay,jdbcType=CHAR},
-          </if>
-          <if test="record.kandian != null">
-            kandian = #{record.kandian,jdbcType=INTEGER},
-          </if>
-          <if test="record.freeKandian != null">
-            free_kandian = #{record.freeKandian,jdbcType=INTEGER},
-          </if>
-          <if test="record.vipEndtime != null">
-            vip_endtime = #{record.vipEndtime,jdbcType=INTEGER},
-          </if>
-          <if test="record.registerIp != null">
-            register_ip = #{record.registerIp,jdbcType=VARCHAR},
-          </if>
-          <if test="record.country != null">
-            country = #{record.country,jdbcType=VARCHAR},
-          </if>
-          <if test="record.area != null">
-            area = #{record.area,jdbcType=VARCHAR},
-          </if>
-          <if test="record.province != null">
-            province = #{record.province,jdbcType=VARCHAR},
-          </if>
-          <if test="record.city != null">
-            city = #{record.city,jdbcType=VARCHAR},
-          </if>
-          <if test="record.isp != null">
-            isp = #{record.isp,jdbcType=VARCHAR},
-          </if>
-          <if test="record.channelId != null">
-            channel_id = #{record.channelId,jdbcType=INTEGER},
-          </if>
-          <if test="record.state != null">
-            state = #{record.state,jdbcType=CHAR},
-          </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 Tue Aug 17 22:19:18 CST 2021.
-    -->
-    update user
-    set id = #{record.id,jdbcType=BIGINT},
-      openid = #{record.openid,jdbcType=VARCHAR},
-      unionid = #{record.unionid,jdbcType=VARCHAR},
-      visitor = #{record.visitor,jdbcType=VARCHAR},
-      nickname = #{record.nickname,jdbcType=VARCHAR},
-      sex = #{record.sex,jdbcType=CHAR},
-      mobile = #{record.mobile,jdbcType=CHAR},
-      avatar = #{record.avatar,jdbcType=VARCHAR},
-      is_subscribe = #{record.isSubscribe,jdbcType=CHAR},
-      subscription_extend = #{record.subscriptionExtend,jdbcType=CHAR},
-      subscribe_time = #{record.subscribeTime,jdbcType=INTEGER},
-      book_category_ids = #{record.bookCategoryIds,jdbcType=VARCHAR},
-      operate_time = #{record.operateTime,jdbcType=INTEGER},
-      is_pay = #{record.isPay,jdbcType=CHAR},
-      kandian = #{record.kandian,jdbcType=INTEGER},
-      free_kandian = #{record.freeKandian,jdbcType=INTEGER},
-      vip_endtime = #{record.vipEndtime,jdbcType=INTEGER},
-      register_ip = #{record.registerIp,jdbcType=VARCHAR},
-      country = #{record.country,jdbcType=VARCHAR},
-      area = #{record.area,jdbcType=VARCHAR},
-      province = #{record.province,jdbcType=VARCHAR},
-      city = #{record.city,jdbcType=VARCHAR},
-      isp = #{record.isp,jdbcType=VARCHAR},
-      channel_id = #{record.channelId,jdbcType=INTEGER},
-      state = #{record.state,jdbcType=CHAR},
-      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 Tue Aug 17 22:19:18 CST 2021.
-    -->
-    update user
-    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.openid != null">
-            openid = #{record.openid,jdbcType=VARCHAR},
-          </if>
-          <if test="record.unionid != null">
-            unionid = #{record.unionid,jdbcType=VARCHAR},
-          </if>
-          <if test="record.visitor != null">
-            visitor = #{record.visitor,jdbcType=VARCHAR},
-          </if>
-          <if test="record.nickname != null">
-            nickname = #{record.nickname,jdbcType=VARCHAR},
-          </if>
-          <if test="record.sex != null">
-            sex = #{record.sex,jdbcType=CHAR},
-          </if>
-          <if test="record.mobile != null">
-            mobile = #{record.mobile,jdbcType=CHAR},
-          </if>
-          <if test="record.avatar != null">
-            avatar = #{record.avatar,jdbcType=VARCHAR},
-          </if>
-          <if test="record.isSubscribe != null">
-            is_subscribe = #{record.isSubscribe,jdbcType=CHAR},
-          </if>
-          <if test="record.subscriptionExtend != null">
-            subscription_extend = #{record.subscriptionExtend,jdbcType=CHAR},
-          </if>
-          <if test="record.subscribeTime != null">
-            subscribe_time = #{record.subscribeTime,jdbcType=INTEGER},
-          </if>
-          <if test="record.bookCategoryIds != null">
-            book_category_ids = #{record.bookCategoryIds,jdbcType=VARCHAR},
-          </if>
-          <if test="record.operateTime != null">
-            operate_time = #{record.operateTime,jdbcType=INTEGER},
-          </if>
-          <if test="record.isPay != null">
-            is_pay = #{record.isPay,jdbcType=CHAR},
-          </if>
-          <if test="record.kandian != null">
-            kandian = #{record.kandian,jdbcType=INTEGER},
-          </if>
-          <if test="record.freeKandian != null">
-            free_kandian = #{record.freeKandian,jdbcType=INTEGER},
-          </if>
-          <if test="record.vipEndtime != null">
-            vip_endtime = #{record.vipEndtime,jdbcType=INTEGER},
-          </if>
-          <if test="record.registerIp != null">
-            register_ip = #{record.registerIp,jdbcType=VARCHAR},
-          </if>
-          <if test="record.country != null">
-            country = #{record.country,jdbcType=VARCHAR},
-          </if>
-          <if test="record.area != null">
-            area = #{record.area,jdbcType=VARCHAR},
-          </if>
-          <if test="record.province != null">
-            province = #{record.province,jdbcType=VARCHAR},
-          </if>
-          <if test="record.city != null">
-            city = #{record.city,jdbcType=VARCHAR},
-          </if>
-          <if test="record.isp != null">
-            isp = #{record.isp,jdbcType=VARCHAR},
-          </if>
-          <if test="record.channelId != null">
-            channel_id = #{record.channelId,jdbcType=INTEGER},
-          </if>
-          <if test="record.state != null">
-            state = #{record.state,jdbcType=CHAR},
-          </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=BIGINT}
-  </update>
-  <update id="updateByPrimaryKey" parameterType="com.book.dao.cps.pojo.User">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Tue Aug 17 22:19:18 CST 2021.
-    -->
-    update user
-    set openid = #{openid,jdbcType=VARCHAR},
-      unionid = #{unionid,jdbcType=VARCHAR},
-      visitor = #{visitor,jdbcType=VARCHAR},
-      nickname = #{nickname,jdbcType=VARCHAR},
-      sex = #{sex,jdbcType=CHAR},
-      mobile = #{mobile,jdbcType=CHAR},
-      avatar = #{avatar,jdbcType=VARCHAR},
-      is_subscribe = #{isSubscribe,jdbcType=CHAR},
-      subscription_extend = #{subscriptionExtend,jdbcType=CHAR},
-      subscribe_time = #{subscribeTime,jdbcType=INTEGER},
-      book_category_ids = #{bookCategoryIds,jdbcType=VARCHAR},
-      operate_time = #{operateTime,jdbcType=INTEGER},
-      is_pay = #{isPay,jdbcType=CHAR},
-      kandian = #{kandian,jdbcType=INTEGER},
-      free_kandian = #{freeKandian,jdbcType=INTEGER},
-      vip_endtime = #{vipEndtime,jdbcType=INTEGER},
-      register_ip = #{registerIp,jdbcType=VARCHAR},
-      country = #{country,jdbcType=VARCHAR},
-      area = #{area,jdbcType=VARCHAR},
-      province = #{province,jdbcType=VARCHAR},
-      city = #{city,jdbcType=VARCHAR},
-      isp = #{isp,jdbcType=VARCHAR},
-      channel_id = #{channelId,jdbcType=INTEGER},
-      state = #{state,jdbcType=CHAR},
-      createtime = #{createtime,jdbcType=INTEGER},
-      updatetime = #{updatetime,jdbcType=INTEGER}
-    where id = #{id,jdbcType=BIGINT}
-  </update>
-  <select id="selectOneByExample" parameterType="com.book.dao.cps.pojo.example.UserExample" resultMap="BaseResultMap">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Tue Aug 17 22:19:18 CST 2021.
-    -->
-    select
-    <include refid="Base_Column_List" />
-    from user
-    <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 Tue Aug 17 22:19:18 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 user
-    <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 Tue Aug 17 22:19:18 CST 2021.
-    -->
-    insert into user
-    (id, openid, unionid, visitor, nickname, sex, mobile, avatar, is_subscribe, subscription_extend, 
-      subscribe_time, book_category_ids, operate_time, is_pay, kandian, free_kandian, 
-      vip_endtime, register_ip, country, area, province, city, isp, channel_id, state, 
-      createtime, updatetime)
-    values
-    <foreach collection="list" item="item" separator=",">
-      (#{item.id,jdbcType=BIGINT}, #{item.openid,jdbcType=VARCHAR}, #{item.unionid,jdbcType=VARCHAR}, 
-        #{item.visitor,jdbcType=VARCHAR}, #{item.nickname,jdbcType=VARCHAR}, #{item.sex,jdbcType=CHAR}, 
-        #{item.mobile,jdbcType=CHAR}, #{item.avatar,jdbcType=VARCHAR}, #{item.isSubscribe,jdbcType=CHAR}, 
-        #{item.subscriptionExtend,jdbcType=CHAR}, #{item.subscribeTime,jdbcType=INTEGER}, 
-        #{item.bookCategoryIds,jdbcType=VARCHAR}, #{item.operateTime,jdbcType=INTEGER}, 
-        #{item.isPay,jdbcType=CHAR}, #{item.kandian,jdbcType=INTEGER}, #{item.freeKandian,jdbcType=INTEGER}, 
-        #{item.vipEndtime,jdbcType=INTEGER}, #{item.registerIp,jdbcType=VARCHAR}, #{item.country,jdbcType=VARCHAR}, 
-        #{item.area,jdbcType=VARCHAR}, #{item.province,jdbcType=VARCHAR}, #{item.city,jdbcType=VARCHAR}, 
-        #{item.isp,jdbcType=VARCHAR}, #{item.channelId,jdbcType=INTEGER}, #{item.state,jdbcType=CHAR}, 
-        #{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 Tue Aug 17 22:19:18 CST 2021.
-    -->
-    insert into user (
-    <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=BIGINT}
-        </if>
-        <if test="'openid'.toString() == column.value">
-          #{item.openid,jdbcType=VARCHAR}
-        </if>
-        <if test="'unionid'.toString() == column.value">
-          #{item.unionid,jdbcType=VARCHAR}
-        </if>
-        <if test="'visitor'.toString() == column.value">
-          #{item.visitor,jdbcType=VARCHAR}
-        </if>
-        <if test="'nickname'.toString() == column.value">
-          #{item.nickname,jdbcType=VARCHAR}
-        </if>
-        <if test="'sex'.toString() == column.value">
-          #{item.sex,jdbcType=CHAR}
-        </if>
-        <if test="'mobile'.toString() == column.value">
-          #{item.mobile,jdbcType=CHAR}
-        </if>
-        <if test="'avatar'.toString() == column.value">
-          #{item.avatar,jdbcType=VARCHAR}
-        </if>
-        <if test="'is_subscribe'.toString() == column.value">
-          #{item.isSubscribe,jdbcType=CHAR}
-        </if>
-        <if test="'subscription_extend'.toString() == column.value">
-          #{item.subscriptionExtend,jdbcType=CHAR}
-        </if>
-        <if test="'subscribe_time'.toString() == column.value">
-          #{item.subscribeTime,jdbcType=INTEGER}
-        </if>
-        <if test="'book_category_ids'.toString() == column.value">
-          #{item.bookCategoryIds,jdbcType=VARCHAR}
-        </if>
-        <if test="'operate_time'.toString() == column.value">
-          #{item.operateTime,jdbcType=INTEGER}
-        </if>
-        <if test="'is_pay'.toString() == column.value">
-          #{item.isPay,jdbcType=CHAR}
-        </if>
-        <if test="'kandian'.toString() == column.value">
-          #{item.kandian,jdbcType=INTEGER}
-        </if>
-        <if test="'free_kandian'.toString() == column.value">
-          #{item.freeKandian,jdbcType=INTEGER}
-        </if>
-        <if test="'vip_endtime'.toString() == column.value">
-          #{item.vipEndtime,jdbcType=INTEGER}
-        </if>
-        <if test="'register_ip'.toString() == column.value">
-          #{item.registerIp,jdbcType=VARCHAR}
-        </if>
-        <if test="'country'.toString() == column.value">
-          #{item.country,jdbcType=VARCHAR}
-        </if>
-        <if test="'area'.toString() == column.value">
-          #{item.area,jdbcType=VARCHAR}
-        </if>
-        <if test="'province'.toString() == column.value">
-          #{item.province,jdbcType=VARCHAR}
-        </if>
-        <if test="'city'.toString() == column.value">
-          #{item.city,jdbcType=VARCHAR}
-        </if>
-        <if test="'isp'.toString() == column.value">
-          #{item.isp,jdbcType=VARCHAR}
-        </if>
-        <if test="'channel_id'.toString() == column.value">
-          #{item.channelId,jdbcType=INTEGER}
-        </if>
-        <if test="'state'.toString() == column.value">
-          #{item.state,jdbcType=CHAR}
-        </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 Tue Aug 17 22:19:18 CST 2021.
-    -->
-    insert into user
-    <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.openid != null">
-            openid,
-          </if>
-          <if test="record.unionid != null">
-            unionid,
-          </if>
-          <if test="record.visitor != null">
-            visitor,
-          </if>
-          <if test="record.nickname != null">
-            nickname,
-          </if>
-          <if test="record.sex != null">
-            sex,
-          </if>
-          <if test="record.mobile != null">
-            mobile,
-          </if>
-          <if test="record.avatar != null">
-            avatar,
-          </if>
-          <if test="record.isSubscribe != null">
-            is_subscribe,
-          </if>
-          <if test="record.subscriptionExtend != null">
-            subscription_extend,
-          </if>
-          <if test="record.subscribeTime != null">
-            subscribe_time,
-          </if>
-          <if test="record.bookCategoryIds != null">
-            book_category_ids,
-          </if>
-          <if test="record.operateTime != null">
-            operate_time,
-          </if>
-          <if test="record.isPay != null">
-            is_pay,
-          </if>
-          <if test="record.kandian != null">
-            kandian,
-          </if>
-          <if test="record.freeKandian != null">
-            free_kandian,
-          </if>
-          <if test="record.vipEndtime != null">
-            vip_endtime,
-          </if>
-          <if test="record.registerIp != null">
-            register_ip,
-          </if>
-          <if test="record.country != null">
-            country,
-          </if>
-          <if test="record.area != null">
-            area,
-          </if>
-          <if test="record.province != null">
-            province,
-          </if>
-          <if test="record.city != null">
-            city,
-          </if>
-          <if test="record.isp != null">
-            isp,
-          </if>
-          <if test="record.channelId != null">
-            channel_id,
-          </if>
-          <if test="record.state != null">
-            state,
-          </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=BIGINT},
-          </if>
-          <if test="record.openid != null">
-            #{record.openid,jdbcType=VARCHAR},
-          </if>
-          <if test="record.unionid != null">
-            #{record.unionid,jdbcType=VARCHAR},
-          </if>
-          <if test="record.visitor != null">
-            #{record.visitor,jdbcType=VARCHAR},
-          </if>
-          <if test="record.nickname != null">
-            #{record.nickname,jdbcType=VARCHAR},
-          </if>
-          <if test="record.sex != null">
-            #{record.sex,jdbcType=CHAR},
-          </if>
-          <if test="record.mobile != null">
-            #{record.mobile,jdbcType=CHAR},
-          </if>
-          <if test="record.avatar != null">
-            #{record.avatar,jdbcType=VARCHAR},
-          </if>
-          <if test="record.isSubscribe != null">
-            #{record.isSubscribe,jdbcType=CHAR},
-          </if>
-          <if test="record.subscriptionExtend != null">
-            #{record.subscriptionExtend,jdbcType=CHAR},
-          </if>
-          <if test="record.subscribeTime != null">
-            #{record.subscribeTime,jdbcType=INTEGER},
-          </if>
-          <if test="record.bookCategoryIds != null">
-            #{record.bookCategoryIds,jdbcType=VARCHAR},
-          </if>
-          <if test="record.operateTime != null">
-            #{record.operateTime,jdbcType=INTEGER},
-          </if>
-          <if test="record.isPay != null">
-            #{record.isPay,jdbcType=CHAR},
-          </if>
-          <if test="record.kandian != null">
-            #{record.kandian,jdbcType=INTEGER},
-          </if>
-          <if test="record.freeKandian != null">
-            #{record.freeKandian,jdbcType=INTEGER},
-          </if>
-          <if test="record.vipEndtime != null">
-            #{record.vipEndtime,jdbcType=INTEGER},
-          </if>
-          <if test="record.registerIp != null">
-            #{record.registerIp,jdbcType=VARCHAR},
-          </if>
-          <if test="record.country != null">
-            #{record.country,jdbcType=VARCHAR},
-          </if>
-          <if test="record.area != null">
-            #{record.area,jdbcType=VARCHAR},
-          </if>
-          <if test="record.province != null">
-            #{record.province,jdbcType=VARCHAR},
-          </if>
-          <if test="record.city != null">
-            #{record.city,jdbcType=VARCHAR},
-          </if>
-          <if test="record.isp != null">
-            #{record.isp,jdbcType=VARCHAR},
-          </if>
-          <if test="record.channelId != null">
-            #{record.channelId,jdbcType=INTEGER},
-          </if>
-          <if test="record.state != null">
-            #{record.state,jdbcType=CHAR},
-          </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=BIGINT},
-          </if>
-          <if test="record.openid != null">
-            openid = #{record.openid,jdbcType=VARCHAR},
-          </if>
-          <if test="record.unionid != null">
-            unionid = #{record.unionid,jdbcType=VARCHAR},
-          </if>
-          <if test="record.visitor != null">
-            visitor = #{record.visitor,jdbcType=VARCHAR},
-          </if>
-          <if test="record.nickname != null">
-            nickname = #{record.nickname,jdbcType=VARCHAR},
-          </if>
-          <if test="record.sex != null">
-            sex = #{record.sex,jdbcType=CHAR},
-          </if>
-          <if test="record.mobile != null">
-            mobile = #{record.mobile,jdbcType=CHAR},
-          </if>
-          <if test="record.avatar != null">
-            avatar = #{record.avatar,jdbcType=VARCHAR},
-          </if>
-          <if test="record.isSubscribe != null">
-            is_subscribe = #{record.isSubscribe,jdbcType=CHAR},
-          </if>
-          <if test="record.subscriptionExtend != null">
-            subscription_extend = #{record.subscriptionExtend,jdbcType=CHAR},
-          </if>
-          <if test="record.subscribeTime != null">
-            subscribe_time = #{record.subscribeTime,jdbcType=INTEGER},
-          </if>
-          <if test="record.bookCategoryIds != null">
-            book_category_ids = #{record.bookCategoryIds,jdbcType=VARCHAR},
-          </if>
-          <if test="record.operateTime != null">
-            operate_time = #{record.operateTime,jdbcType=INTEGER},
-          </if>
-          <if test="record.isPay != null">
-            is_pay = #{record.isPay,jdbcType=CHAR},
-          </if>
-          <if test="record.kandian != null">
-            kandian = #{record.kandian,jdbcType=INTEGER},
-          </if>
-          <if test="record.freeKandian != null">
-            free_kandian = #{record.freeKandian,jdbcType=INTEGER},
-          </if>
-          <if test="record.vipEndtime != null">
-            vip_endtime = #{record.vipEndtime,jdbcType=INTEGER},
-          </if>
-          <if test="record.registerIp != null">
-            register_ip = #{record.registerIp,jdbcType=VARCHAR},
-          </if>
-          <if test="record.country != null">
-            country = #{record.country,jdbcType=VARCHAR},
-          </if>
-          <if test="record.area != null">
-            area = #{record.area,jdbcType=VARCHAR},
-          </if>
-          <if test="record.province != null">
-            province = #{record.province,jdbcType=VARCHAR},
-          </if>
-          <if test="record.city != null">
-            city = #{record.city,jdbcType=VARCHAR},
-          </if>
-          <if test="record.isp != null">
-            isp = #{record.isp,jdbcType=VARCHAR},
-          </if>
-          <if test="record.channelId != null">
-            channel_id = #{record.channelId,jdbcType=INTEGER},
-          </if>
-          <if test="record.state != null">
-            state = #{record.state,jdbcType=CHAR},
-          </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.dao.cps.pojo.User">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Tue Aug 17 22:19:18 CST 2021.
-    -->
-    insert into user
-    (id, openid, unionid, visitor, nickname, sex, mobile, avatar, is_subscribe, subscription_extend, 
-      subscribe_time, book_category_ids, operate_time, is_pay, kandian, free_kandian, 
-      vip_endtime, register_ip, country, area, province, city, isp, channel_id, state, 
-      createtime, updatetime)
-    values
-    (#{id,jdbcType=BIGINT}, #{openid,jdbcType=VARCHAR}, #{unionid,jdbcType=VARCHAR}, 
-      #{visitor,jdbcType=VARCHAR}, #{nickname,jdbcType=VARCHAR}, #{sex,jdbcType=CHAR}, 
-      #{mobile,jdbcType=CHAR}, #{avatar,jdbcType=VARCHAR}, #{isSubscribe,jdbcType=CHAR}, 
-      #{subscriptionExtend,jdbcType=CHAR}, #{subscribeTime,jdbcType=INTEGER}, #{bookCategoryIds,jdbcType=VARCHAR}, 
-      #{operateTime,jdbcType=INTEGER}, #{isPay,jdbcType=CHAR}, #{kandian,jdbcType=INTEGER}, 
-      #{freeKandian,jdbcType=INTEGER}, #{vipEndtime,jdbcType=INTEGER}, #{registerIp,jdbcType=VARCHAR}, 
-      #{country,jdbcType=VARCHAR}, #{area,jdbcType=VARCHAR}, #{province,jdbcType=VARCHAR}, 
-      #{city,jdbcType=VARCHAR}, #{isp,jdbcType=VARCHAR}, #{channelId,jdbcType=INTEGER}, 
-      #{state,jdbcType=CHAR}, #{createtime,jdbcType=INTEGER}, #{updatetime,jdbcType=INTEGER}
-      )
-    on duplicate key update 
-    id = #{id,jdbcType=BIGINT}, 
-    openid = #{openid,jdbcType=VARCHAR}, 
-    unionid = #{unionid,jdbcType=VARCHAR}, 
-    visitor = #{visitor,jdbcType=VARCHAR}, 
-    nickname = #{nickname,jdbcType=VARCHAR}, 
-    sex = #{sex,jdbcType=CHAR}, 
-    mobile = #{mobile,jdbcType=CHAR}, 
-    avatar = #{avatar,jdbcType=VARCHAR}, 
-    is_subscribe = #{isSubscribe,jdbcType=CHAR}, 
-    subscription_extend = #{subscriptionExtend,jdbcType=CHAR}, 
-    subscribe_time = #{subscribeTime,jdbcType=INTEGER}, 
-    book_category_ids = #{bookCategoryIds,jdbcType=VARCHAR}, 
-    operate_time = #{operateTime,jdbcType=INTEGER}, 
-    is_pay = #{isPay,jdbcType=CHAR}, 
-    kandian = #{kandian,jdbcType=INTEGER}, 
-    free_kandian = #{freeKandian,jdbcType=INTEGER}, 
-    vip_endtime = #{vipEndtime,jdbcType=INTEGER}, 
-    register_ip = #{registerIp,jdbcType=VARCHAR}, 
-    country = #{country,jdbcType=VARCHAR}, 
-    area = #{area,jdbcType=VARCHAR}, 
-    province = #{province,jdbcType=VARCHAR}, 
-    city = #{city,jdbcType=VARCHAR}, 
-    isp = #{isp,jdbcType=VARCHAR}, 
-    channel_id = #{channelId,jdbcType=INTEGER}, 
-    state = #{state,jdbcType=CHAR}, 
-    createtime = #{createtime,jdbcType=INTEGER}, 
-    updatetime = #{updatetime,jdbcType=INTEGER}
-  </insert>
-</mapper>