123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863 |
- <?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.server.dao.entity.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.server.dao.entity.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.server.dao.entity.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.server.dao.entity.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.server.dao.entity.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.server.dao.entity.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.server.dao.entity.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.server.dao.entity.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.server.dao.entity.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.server.dao.entity.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.server.dao.entity.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.server.dao.entity.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.server.dao.entity.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>
|