|
@@ -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>
|