|
@@ -5,19 +5,20 @@
|
|
<!--
|
|
<!--
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
- This element was generated on Wed Aug 25 22:53:28 CST 2021.
|
|
|
|
|
|
+ This element was generated on Fri Aug 27 01:01:13 CST 2021.
|
|
-->
|
|
-->
|
|
<id column="id" jdbcType="BIGINT" property="id" />
|
|
<id column="id" jdbcType="BIGINT" property="id" />
|
|
<id column="book_id" jdbcType="BIGINT" property="bookId" />
|
|
<id column="book_id" jdbcType="BIGINT" property="bookId" />
|
|
<result column="chapter_name" jdbcType="VARCHAR" property="chapterName" />
|
|
<result column="chapter_name" jdbcType="VARCHAR" property="chapterName" />
|
|
- <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
|
|
- <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
|
|
|
|
|
+ <result column="create_time" jdbcType="INTEGER" property="createTime" />
|
|
|
|
+ <result column="update_time" jdbcType="INTEGER" property="updateTime" />
|
|
|
|
+ <result column="chapter_id" jdbcType="BIGINT" property="chapterId" />
|
|
</resultMap>
|
|
</resultMap>
|
|
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.book.dao.cps.entity.EditBook">
|
|
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.book.dao.cps.entity.EditBook">
|
|
<!--
|
|
<!--
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
- This element was generated on Wed Aug 25 22:53:28 CST 2021.
|
|
|
|
|
|
+ This element was generated on Fri Aug 27 01:01:13 CST 2021.
|
|
-->
|
|
-->
|
|
<result column="content" jdbcType="LONGVARCHAR" property="content" />
|
|
<result column="content" jdbcType="LONGVARCHAR" property="content" />
|
|
</resultMap>
|
|
</resultMap>
|
|
@@ -25,7 +26,7 @@
|
|
<!--
|
|
<!--
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
- This element was generated on Wed Aug 25 22:53:28 CST 2021.
|
|
|
|
|
|
+ This element was generated on Fri Aug 27 01:01:13 CST 2021.
|
|
-->
|
|
-->
|
|
<where>
|
|
<where>
|
|
<foreach collection="oredCriteria" item="criteria" separator="or">
|
|
<foreach collection="oredCriteria" item="criteria" separator="or">
|
|
@@ -59,7 +60,7 @@
|
|
<!--
|
|
<!--
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
- This element was generated on Wed Aug 25 22:53:28 CST 2021.
|
|
|
|
|
|
+ This element was generated on Fri Aug 27 01:01:13 CST 2021.
|
|
-->
|
|
-->
|
|
<where>
|
|
<where>
|
|
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
|
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
|
@@ -93,15 +94,15 @@
|
|
<!--
|
|
<!--
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
- This element was generated on Wed Aug 25 22:53:28 CST 2021.
|
|
|
|
|
|
+ This element was generated on Fri Aug 27 01:01:13 CST 2021.
|
|
-->
|
|
-->
|
|
- id, book_id, chapter_name, create_time, update_time
|
|
|
|
|
|
+ id, book_id, chapter_name, create_time, update_time, chapter_id
|
|
</sql>
|
|
</sql>
|
|
<sql id="Blob_Column_List">
|
|
<sql id="Blob_Column_List">
|
|
<!--
|
|
<!--
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
- This element was generated on Wed Aug 25 22:53:28 CST 2021.
|
|
|
|
|
|
+ This element was generated on Fri Aug 27 01:01:13 CST 2021.
|
|
-->
|
|
-->
|
|
content
|
|
content
|
|
</sql>
|
|
</sql>
|
|
@@ -109,7 +110,7 @@
|
|
<!--
|
|
<!--
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
- This element was generated on Wed Aug 25 22:53:28 CST 2021.
|
|
|
|
|
|
+ This element was generated on Fri Aug 27 01:01:13 CST 2021.
|
|
-->
|
|
-->
|
|
select
|
|
select
|
|
<if test="distinct">
|
|
<if test="distinct">
|
|
@@ -138,7 +139,7 @@
|
|
<!--
|
|
<!--
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
- This element was generated on Wed Aug 25 22:53:28 CST 2021.
|
|
|
|
|
|
+ This element was generated on Fri Aug 27 01:01:13 CST 2021.
|
|
-->
|
|
-->
|
|
select
|
|
select
|
|
<if test="distinct">
|
|
<if test="distinct">
|
|
@@ -165,14 +166,14 @@
|
|
<!--
|
|
<!--
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
- This element was generated on Wed Aug 25 22:53:28 CST 2021.
|
|
|
|
|
|
+ This element was generated on Fri Aug 27 01:01:13 CST 2021.
|
|
-->
|
|
-->
|
|
select
|
|
select
|
|
<if test="example != null and example.distinct">
|
|
<if test="example != null and example.distinct">
|
|
distinct
|
|
distinct
|
|
</if>
|
|
</if>
|
|
<choose>
|
|
<choose>
|
|
- <when test="selective != null and selective.length > 0">
|
|
|
|
|
|
+ <when test="selective != null and selective.length > 0">
|
|
<foreach collection="selective" item="column" separator=",">
|
|
<foreach collection="selective" item="column" separator=",">
|
|
${column.aliasedEscapedColumnName}
|
|
${column.aliasedEscapedColumnName}
|
|
</foreach>
|
|
</foreach>
|
|
@@ -203,7 +204,7 @@
|
|
<!--
|
|
<!--
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
- This element was generated on Wed Aug 25 22:53:28 CST 2021.
|
|
|
|
|
|
+ This element was generated on Fri Aug 27 01:01:13 CST 2021.
|
|
-->
|
|
-->
|
|
select
|
|
select
|
|
<include refid="Base_Column_List" />
|
|
<include refid="Base_Column_List" />
|
|
@@ -217,11 +218,11 @@
|
|
<!--
|
|
<!--
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
- This element was generated on Wed Aug 25 22:53:28 CST 2021.
|
|
|
|
|
|
+ This element was generated on Fri Aug 27 01:01:13 CST 2021.
|
|
-->
|
|
-->
|
|
select
|
|
select
|
|
<choose>
|
|
<choose>
|
|
- <when test="selective != null and selective.length > 0">
|
|
|
|
|
|
+ <when test="selective != null and selective.length > 0">
|
|
<foreach collection="selective" item="column" separator=",">
|
|
<foreach collection="selective" item="column" separator=",">
|
|
${column.aliasedEscapedColumnName}
|
|
${column.aliasedEscapedColumnName}
|
|
</foreach>
|
|
</foreach>
|
|
@@ -240,7 +241,7 @@
|
|
<!--
|
|
<!--
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
- This element was generated on Wed Aug 25 22:53:28 CST 2021.
|
|
|
|
|
|
+ This element was generated on Fri Aug 27 01:01:13 CST 2021.
|
|
-->
|
|
-->
|
|
delete from edit_book
|
|
delete from edit_book
|
|
where id = #{id,jdbcType=BIGINT}
|
|
where id = #{id,jdbcType=BIGINT}
|
|
@@ -250,7 +251,7 @@
|
|
<!--
|
|
<!--
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
- This element was generated on Wed Aug 25 22:53:28 CST 2021.
|
|
|
|
|
|
+ This element was generated on Fri Aug 27 01:01:13 CST 2021.
|
|
-->
|
|
-->
|
|
delete from edit_book
|
|
delete from edit_book
|
|
<if test="_parameter != null">
|
|
<if test="_parameter != null">
|
|
@@ -261,24 +262,24 @@
|
|
<!--
|
|
<!--
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
- This element was generated on Wed Aug 25 22:53:28 CST 2021.
|
|
|
|
|
|
+ This element was generated on Fri Aug 27 01:01:13 CST 2021.
|
|
-->
|
|
-->
|
|
insert into edit_book (id, book_id, chapter_name,
|
|
insert into edit_book (id, book_id, chapter_name,
|
|
- create_time, update_time, content
|
|
|
|
- )
|
|
|
|
|
|
+ create_time, update_time, chapter_id,
|
|
|
|
+ content)
|
|
values (#{id,jdbcType=BIGINT}, #{bookId,jdbcType=BIGINT}, #{chapterName,jdbcType=VARCHAR},
|
|
values (#{id,jdbcType=BIGINT}, #{bookId,jdbcType=BIGINT}, #{chapterName,jdbcType=VARCHAR},
|
|
- #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{content,jdbcType=LONGVARCHAR}
|
|
|
|
- )
|
|
|
|
|
|
+ #{createTime,jdbcType=INTEGER}, #{updateTime,jdbcType=INTEGER}, #{chapterId,jdbcType=BIGINT},
|
|
|
|
+ #{content,jdbcType=LONGVARCHAR})
|
|
</insert>
|
|
</insert>
|
|
<insert id="insertSelective" parameterType="map">
|
|
<insert id="insertSelective" parameterType="map">
|
|
<!--
|
|
<!--
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
- This element was generated on Wed Aug 25 22:53:28 CST 2021.
|
|
|
|
|
|
+ This element was generated on Fri Aug 27 01:01:13 CST 2021.
|
|
-->
|
|
-->
|
|
insert into edit_book
|
|
insert into edit_book
|
|
<choose>
|
|
<choose>
|
|
- <when test="selective != null and selective.length > 0">
|
|
|
|
|
|
+ <when test="selective != null and selective.length > 0">
|
|
<foreach close=")" collection="selective" item="column" open="(" separator=",">
|
|
<foreach close=")" collection="selective" item="column" open="(" separator=",">
|
|
${column.escapedColumnName}
|
|
${column.escapedColumnName}
|
|
</foreach>
|
|
</foreach>
|
|
@@ -300,6 +301,9 @@
|
|
<if test="record.updateTime != null">
|
|
<if test="record.updateTime != null">
|
|
update_time,
|
|
update_time,
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="record.chapterId != null">
|
|
|
|
+ chapter_id,
|
|
|
|
+ </if>
|
|
<if test="record.content != null">
|
|
<if test="record.content != null">
|
|
content,
|
|
content,
|
|
</if>
|
|
</if>
|
|
@@ -309,7 +313,7 @@
|
|
</choose>
|
|
</choose>
|
|
values
|
|
values
|
|
<choose>
|
|
<choose>
|
|
- <when test="selective != null and selective.length > 0">
|
|
|
|
|
|
+ <when test="selective != null and selective.length > 0">
|
|
<foreach close=")" collection="selective" item="column" open="(" separator=",">
|
|
<foreach close=")" collection="selective" item="column" open="(" separator=",">
|
|
#{record.${column.javaProperty},jdbcType=${column.jdbcType}}
|
|
#{record.${column.javaProperty},jdbcType=${column.jdbcType}}
|
|
</foreach>
|
|
</foreach>
|
|
@@ -326,10 +330,13 @@
|
|
#{record.chapterName,jdbcType=VARCHAR},
|
|
#{record.chapterName,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
<if test="record.createTime != null">
|
|
<if test="record.createTime != null">
|
|
- #{record.createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
|
+ #{record.createTime,jdbcType=INTEGER},
|
|
</if>
|
|
</if>
|
|
<if test="record.updateTime != null">
|
|
<if test="record.updateTime != null">
|
|
- #{record.updateTime,jdbcType=TIMESTAMP},
|
|
|
|
|
|
+ #{record.updateTime,jdbcType=INTEGER},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="record.chapterId != null">
|
|
|
|
+ #{record.chapterId,jdbcType=BIGINT},
|
|
</if>
|
|
</if>
|
|
<if test="record.content != null">
|
|
<if test="record.content != null">
|
|
#{record.content,jdbcType=LONGVARCHAR},
|
|
#{record.content,jdbcType=LONGVARCHAR},
|
|
@@ -342,7 +349,7 @@
|
|
<!--
|
|
<!--
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
- This element was generated on Wed Aug 25 22:53:28 CST 2021.
|
|
|
|
|
|
+ This element was generated on Fri Aug 27 01:01:13 CST 2021.
|
|
-->
|
|
-->
|
|
select count(*) from edit_book
|
|
select count(*) from edit_book
|
|
<if test="_parameter != null">
|
|
<if test="_parameter != null">
|
|
@@ -353,12 +360,12 @@
|
|
<!--
|
|
<!--
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
- This element was generated on Wed Aug 25 22:53:28 CST 2021.
|
|
|
|
|
|
+ This element was generated on Fri Aug 27 01:01:13 CST 2021.
|
|
-->
|
|
-->
|
|
update edit_book
|
|
update edit_book
|
|
SET
|
|
SET
|
|
<choose>
|
|
<choose>
|
|
- <when test="selective != null and selective.length > 0">
|
|
|
|
|
|
+ <when test="selective != null and selective.length > 0">
|
|
<foreach collection="selective" item="column" separator=",">
|
|
<foreach collection="selective" item="column" separator=",">
|
|
${column.escapedColumnName} = #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
|
|
${column.escapedColumnName} = #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
|
|
</foreach>
|
|
</foreach>
|
|
@@ -375,10 +382,13 @@
|
|
chapter_name = #{record.chapterName,jdbcType=VARCHAR},
|
|
chapter_name = #{record.chapterName,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
<if test="record.createTime != null">
|
|
<if test="record.createTime != null">
|
|
- create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
|
+ create_time = #{record.createTime,jdbcType=INTEGER},
|
|
</if>
|
|
</if>
|
|
<if test="record.updateTime != null">
|
|
<if test="record.updateTime != null">
|
|
- update_time = #{record.updateTime,jdbcType=TIMESTAMP},
|
|
|
|
|
|
+ update_time = #{record.updateTime,jdbcType=INTEGER},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="record.chapterId != null">
|
|
|
|
+ chapter_id = #{record.chapterId,jdbcType=BIGINT},
|
|
</if>
|
|
</if>
|
|
<if test="record.content != null">
|
|
<if test="record.content != null">
|
|
content = #{record.content,jdbcType=LONGVARCHAR},
|
|
content = #{record.content,jdbcType=LONGVARCHAR},
|
|
@@ -394,14 +404,15 @@
|
|
<!--
|
|
<!--
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
- This element was generated on Wed Aug 25 22:53:28 CST 2021.
|
|
|
|
|
|
+ This element was generated on Fri Aug 27 01:01:13 CST 2021.
|
|
-->
|
|
-->
|
|
update edit_book
|
|
update edit_book
|
|
set id = #{record.id,jdbcType=BIGINT},
|
|
set id = #{record.id,jdbcType=BIGINT},
|
|
book_id = #{record.bookId,jdbcType=BIGINT},
|
|
book_id = #{record.bookId,jdbcType=BIGINT},
|
|
chapter_name = #{record.chapterName,jdbcType=VARCHAR},
|
|
chapter_name = #{record.chapterName,jdbcType=VARCHAR},
|
|
- create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
|
|
- update_time = #{record.updateTime,jdbcType=TIMESTAMP},
|
|
|
|
|
|
+ create_time = #{record.createTime,jdbcType=INTEGER},
|
|
|
|
+ update_time = #{record.updateTime,jdbcType=INTEGER},
|
|
|
|
+ chapter_id = #{record.chapterId,jdbcType=BIGINT},
|
|
content = #{record.content,jdbcType=LONGVARCHAR}
|
|
content = #{record.content,jdbcType=LONGVARCHAR}
|
|
<if test="_parameter != null">
|
|
<if test="_parameter != null">
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
@@ -411,14 +422,15 @@
|
|
<!--
|
|
<!--
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
- This element was generated on Wed Aug 25 22:53:28 CST 2021.
|
|
|
|
|
|
+ This element was generated on Fri Aug 27 01:01:13 CST 2021.
|
|
-->
|
|
-->
|
|
update edit_book
|
|
update edit_book
|
|
set id = #{record.id,jdbcType=BIGINT},
|
|
set id = #{record.id,jdbcType=BIGINT},
|
|
book_id = #{record.bookId,jdbcType=BIGINT},
|
|
book_id = #{record.bookId,jdbcType=BIGINT},
|
|
chapter_name = #{record.chapterName,jdbcType=VARCHAR},
|
|
chapter_name = #{record.chapterName,jdbcType=VARCHAR},
|
|
- create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
|
|
- update_time = #{record.updateTime,jdbcType=TIMESTAMP}
|
|
|
|
|
|
+ create_time = #{record.createTime,jdbcType=INTEGER},
|
|
|
|
+ update_time = #{record.updateTime,jdbcType=INTEGER},
|
|
|
|
+ chapter_id = #{record.chapterId,jdbcType=BIGINT}
|
|
<if test="_parameter != null">
|
|
<if test="_parameter != null">
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
</if>
|
|
</if>
|
|
@@ -427,12 +439,12 @@
|
|
<!--
|
|
<!--
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
- This element was generated on Wed Aug 25 22:53:28 CST 2021.
|
|
|
|
|
|
+ This element was generated on Fri Aug 27 01:01:13 CST 2021.
|
|
-->
|
|
-->
|
|
update edit_book
|
|
update edit_book
|
|
SET
|
|
SET
|
|
<choose>
|
|
<choose>
|
|
- <when test="selective != null and selective.length > 0">
|
|
|
|
|
|
+ <when test="selective != null and selective.length > 0">
|
|
<foreach collection="selective" item="column" separator=",">
|
|
<foreach collection="selective" item="column" separator=",">
|
|
${column.escapedColumnName} = #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
|
|
${column.escapedColumnName} = #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
|
|
</foreach>
|
|
</foreach>
|
|
@@ -443,10 +455,13 @@
|
|
chapter_name = #{record.chapterName,jdbcType=VARCHAR},
|
|
chapter_name = #{record.chapterName,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
<if test="record.createTime != null">
|
|
<if test="record.createTime != null">
|
|
- create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
|
+ create_time = #{record.createTime,jdbcType=INTEGER},
|
|
</if>
|
|
</if>
|
|
<if test="record.updateTime != null">
|
|
<if test="record.updateTime != null">
|
|
- update_time = #{record.updateTime,jdbcType=TIMESTAMP},
|
|
|
|
|
|
+ update_time = #{record.updateTime,jdbcType=INTEGER},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="record.chapterId != null">
|
|
|
|
+ chapter_id = #{record.chapterId,jdbcType=BIGINT},
|
|
</if>
|
|
</if>
|
|
<if test="record.content != null">
|
|
<if test="record.content != null">
|
|
content = #{record.content,jdbcType=LONGVARCHAR},
|
|
content = #{record.content,jdbcType=LONGVARCHAR},
|
|
@@ -461,12 +476,13 @@
|
|
<!--
|
|
<!--
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
- This element was generated on Wed Aug 25 22:53:28 CST 2021.
|
|
|
|
|
|
+ This element was generated on Fri Aug 27 01:01:13 CST 2021.
|
|
-->
|
|
-->
|
|
update edit_book
|
|
update edit_book
|
|
set chapter_name = #{chapterName,jdbcType=VARCHAR},
|
|
set chapter_name = #{chapterName,jdbcType=VARCHAR},
|
|
- create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
|
- update_time = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
|
|
|
+ create_time = #{createTime,jdbcType=INTEGER},
|
|
|
|
+ update_time = #{updateTime,jdbcType=INTEGER},
|
|
|
|
+ chapter_id = #{chapterId,jdbcType=BIGINT},
|
|
content = #{content,jdbcType=LONGVARCHAR}
|
|
content = #{content,jdbcType=LONGVARCHAR}
|
|
where id = #{id,jdbcType=BIGINT}
|
|
where id = #{id,jdbcType=BIGINT}
|
|
and book_id = #{bookId,jdbcType=BIGINT}
|
|
and book_id = #{bookId,jdbcType=BIGINT}
|
|
@@ -475,12 +491,13 @@
|
|
<!--
|
|
<!--
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
- This element was generated on Wed Aug 25 22:53:28 CST 2021.
|
|
|
|
|
|
+ This element was generated on Fri Aug 27 01:01:13 CST 2021.
|
|
-->
|
|
-->
|
|
update edit_book
|
|
update edit_book
|
|
set chapter_name = #{chapterName,jdbcType=VARCHAR},
|
|
set chapter_name = #{chapterName,jdbcType=VARCHAR},
|
|
- create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
|
- update_time = #{updateTime,jdbcType=TIMESTAMP}
|
|
|
|
|
|
+ create_time = #{createTime,jdbcType=INTEGER},
|
|
|
|
+ update_time = #{updateTime,jdbcType=INTEGER},
|
|
|
|
+ chapter_id = #{chapterId,jdbcType=BIGINT}
|
|
where id = #{id,jdbcType=BIGINT}
|
|
where id = #{id,jdbcType=BIGINT}
|
|
and book_id = #{bookId,jdbcType=BIGINT}
|
|
and book_id = #{bookId,jdbcType=BIGINT}
|
|
</update>
|
|
</update>
|
|
@@ -488,7 +505,7 @@
|
|
<!--
|
|
<!--
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
- This element was generated on Wed Aug 25 22:53:28 CST 2021.
|
|
|
|
|
|
+ This element was generated on Fri Aug 27 01:01:13 CST 2021.
|
|
-->
|
|
-->
|
|
select
|
|
select
|
|
<include refid="Base_Column_List" />
|
|
<include refid="Base_Column_List" />
|
|
@@ -505,7 +522,7 @@
|
|
<!--
|
|
<!--
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
- This element was generated on Wed Aug 25 22:53:28 CST 2021.
|
|
|
|
|
|
+ This element was generated on Fri Aug 27 01:01:13 CST 2021.
|
|
-->
|
|
-->
|
|
select
|
|
select
|
|
<include refid="Base_Column_List" />
|
|
<include refid="Base_Column_List" />
|
|
@@ -524,11 +541,11 @@
|
|
<!--
|
|
<!--
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
- This element was generated on Wed Aug 25 22:53:28 CST 2021.
|
|
|
|
|
|
+ This element was generated on Fri Aug 27 01:01:13 CST 2021.
|
|
-->
|
|
-->
|
|
select
|
|
select
|
|
<choose>
|
|
<choose>
|
|
- <when test="selective != null and selective.length > 0">
|
|
|
|
|
|
+ <when test="selective != null and selective.length > 0">
|
|
<foreach collection="selective" item="column" separator=",">
|
|
<foreach collection="selective" item="column" separator=",">
|
|
${column.aliasedEscapedColumnName}
|
|
${column.aliasedEscapedColumnName}
|
|
</foreach>
|
|
</foreach>
|
|
@@ -552,22 +569,22 @@
|
|
<!--
|
|
<!--
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
- This element was generated on Wed Aug 25 22:53:28 CST 2021.
|
|
|
|
|
|
+ This element was generated on Fri Aug 27 01:01:13 CST 2021.
|
|
-->
|
|
-->
|
|
insert into edit_book
|
|
insert into edit_book
|
|
- (id, book_id, chapter_name, create_time, update_time, content)
|
|
|
|
|
|
+ (id, book_id, chapter_name, create_time, update_time, chapter_id, content)
|
|
values
|
|
values
|
|
<foreach collection="list" item="item" separator=",">
|
|
<foreach collection="list" item="item" separator=",">
|
|
(#{item.id,jdbcType=BIGINT}, #{item.bookId,jdbcType=BIGINT}, #{item.chapterName,jdbcType=VARCHAR},
|
|
(#{item.id,jdbcType=BIGINT}, #{item.bookId,jdbcType=BIGINT}, #{item.chapterName,jdbcType=VARCHAR},
|
|
- #{item.createTime,jdbcType=TIMESTAMP}, #{item.updateTime,jdbcType=TIMESTAMP}, #{item.content,jdbcType=LONGVARCHAR}
|
|
|
|
- )
|
|
|
|
|
|
+ #{item.createTime,jdbcType=INTEGER}, #{item.updateTime,jdbcType=INTEGER}, #{item.chapterId,jdbcType=BIGINT},
|
|
|
|
+ #{item.content,jdbcType=LONGVARCHAR})
|
|
</foreach>
|
|
</foreach>
|
|
</insert>
|
|
</insert>
|
|
<insert id="batchInsertSelective" parameterType="map">
|
|
<insert id="batchInsertSelective" parameterType="map">
|
|
<!--
|
|
<!--
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
- This element was generated on Wed Aug 25 22:53:28 CST 2021.
|
|
|
|
|
|
+ This element was generated on Fri Aug 27 01:01:13 CST 2021.
|
|
-->
|
|
-->
|
|
insert into edit_book (
|
|
insert into edit_book (
|
|
<foreach collection="selective" item="column" separator=",">
|
|
<foreach collection="selective" item="column" separator=",">
|
|
@@ -588,10 +605,13 @@
|
|
#{item.chapterName,jdbcType=VARCHAR}
|
|
#{item.chapterName,jdbcType=VARCHAR}
|
|
</if>
|
|
</if>
|
|
<if test="'create_time'.toString() == column.value">
|
|
<if test="'create_time'.toString() == column.value">
|
|
- #{item.createTime,jdbcType=TIMESTAMP}
|
|
|
|
|
|
+ #{item.createTime,jdbcType=INTEGER}
|
|
</if>
|
|
</if>
|
|
<if test="'update_time'.toString() == column.value">
|
|
<if test="'update_time'.toString() == column.value">
|
|
- #{item.updateTime,jdbcType=TIMESTAMP}
|
|
|
|
|
|
+ #{item.updateTime,jdbcType=INTEGER}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="'chapter_id'.toString() == column.value">
|
|
|
|
+ #{item.chapterId,jdbcType=BIGINT}
|
|
</if>
|
|
</if>
|
|
<if test="'content'.toString() == column.value">
|
|
<if test="'content'.toString() == column.value">
|
|
#{item.content,jdbcType=LONGVARCHAR}
|
|
#{item.content,jdbcType=LONGVARCHAR}
|
|
@@ -604,11 +624,11 @@
|
|
<!--
|
|
<!--
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
- This element was generated on Wed Aug 25 22:53:28 CST 2021.
|
|
|
|
|
|
+ This element was generated on Fri Aug 27 01:01:13 CST 2021.
|
|
-->
|
|
-->
|
|
insert into edit_book
|
|
insert into edit_book
|
|
<choose>
|
|
<choose>
|
|
- <when test="selective != null and selective.length > 0">
|
|
|
|
|
|
+ <when test="selective != null and selective.length > 0">
|
|
<foreach close=")" collection="selective" item="column" open="(" separator=",">
|
|
<foreach close=")" collection="selective" item="column" open="(" separator=",">
|
|
${column.escapedColumnName}
|
|
${column.escapedColumnName}
|
|
</foreach>
|
|
</foreach>
|
|
@@ -630,6 +650,9 @@
|
|
<if test="record.updateTime != null">
|
|
<if test="record.updateTime != null">
|
|
update_time,
|
|
update_time,
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="record.chapterId != null">
|
|
|
|
+ chapter_id,
|
|
|
|
+ </if>
|
|
<if test="record.content != null">
|
|
<if test="record.content != null">
|
|
content,
|
|
content,
|
|
</if>
|
|
</if>
|
|
@@ -639,7 +662,7 @@
|
|
</choose>
|
|
</choose>
|
|
values
|
|
values
|
|
<choose>
|
|
<choose>
|
|
- <when test="selective != null and selective.length > 0">
|
|
|
|
|
|
+ <when test="selective != null and selective.length > 0">
|
|
<foreach close=")" collection="selective" item="column" open="(" separator=",">
|
|
<foreach close=")" collection="selective" item="column" open="(" separator=",">
|
|
#{record.${column.javaProperty},jdbcType=${column.jdbcType}}
|
|
#{record.${column.javaProperty},jdbcType=${column.jdbcType}}
|
|
</foreach>
|
|
</foreach>
|
|
@@ -656,10 +679,13 @@
|
|
#{record.chapterName,jdbcType=VARCHAR},
|
|
#{record.chapterName,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
<if test="record.createTime != null">
|
|
<if test="record.createTime != null">
|
|
- #{record.createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
|
+ #{record.createTime,jdbcType=INTEGER},
|
|
</if>
|
|
</if>
|
|
<if test="record.updateTime != null">
|
|
<if test="record.updateTime != null">
|
|
- #{record.updateTime,jdbcType=TIMESTAMP},
|
|
|
|
|
|
+ #{record.updateTime,jdbcType=INTEGER},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="record.chapterId != null">
|
|
|
|
+ #{record.chapterId,jdbcType=BIGINT},
|
|
</if>
|
|
</if>
|
|
<if test="record.content != null">
|
|
<if test="record.content != null">
|
|
#{record.content,jdbcType=LONGVARCHAR},
|
|
#{record.content,jdbcType=LONGVARCHAR},
|
|
@@ -669,7 +695,7 @@
|
|
</choose>
|
|
</choose>
|
|
on duplicate key update
|
|
on duplicate key update
|
|
<choose>
|
|
<choose>
|
|
- <when test="selective != null and selective.length > 0">
|
|
|
|
|
|
+ <when test="selective != null and selective.length > 0">
|
|
<foreach collection="selective" item="column" separator=",">
|
|
<foreach collection="selective" item="column" separator=",">
|
|
${column.escapedColumnName} = #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
|
|
${column.escapedColumnName} = #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
|
|
</foreach>
|
|
</foreach>
|
|
@@ -686,10 +712,13 @@
|
|
chapter_name = #{record.chapterName,jdbcType=VARCHAR},
|
|
chapter_name = #{record.chapterName,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
<if test="record.createTime != null">
|
|
<if test="record.createTime != null">
|
|
- create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
|
+ create_time = #{record.createTime,jdbcType=INTEGER},
|
|
</if>
|
|
</if>
|
|
<if test="record.updateTime != null">
|
|
<if test="record.updateTime != null">
|
|
- update_time = #{record.updateTime,jdbcType=TIMESTAMP},
|
|
|
|
|
|
+ update_time = #{record.updateTime,jdbcType=INTEGER},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="record.chapterId != null">
|
|
|
|
+ chapter_id = #{record.chapterId,jdbcType=BIGINT},
|
|
</if>
|
|
</if>
|
|
<if test="record.content != null">
|
|
<if test="record.content != null">
|
|
content = #{record.content,jdbcType=LONGVARCHAR},
|
|
content = #{record.content,jdbcType=LONGVARCHAR},
|
|
@@ -702,38 +731,41 @@
|
|
<!--
|
|
<!--
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
- This element was generated on Wed Aug 25 22:53:28 CST 2021.
|
|
|
|
|
|
+ This element was generated on Fri Aug 27 01:01:13 CST 2021.
|
|
-->
|
|
-->
|
|
insert into edit_book
|
|
insert into edit_book
|
|
- (id, book_id, chapter_name, create_time, update_time)
|
|
|
|
|
|
+ (id, book_id, chapter_name, create_time, update_time, chapter_id)
|
|
values
|
|
values
|
|
(#{id,jdbcType=BIGINT}, #{bookId,jdbcType=BIGINT}, #{chapterName,jdbcType=VARCHAR},
|
|
(#{id,jdbcType=BIGINT}, #{bookId,jdbcType=BIGINT}, #{chapterName,jdbcType=VARCHAR},
|
|
- #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP})
|
|
|
|
|
|
+ #{createTime,jdbcType=INTEGER}, #{updateTime,jdbcType=INTEGER}, #{chapterId,jdbcType=BIGINT}
|
|
|
|
+ )
|
|
on duplicate key update
|
|
on duplicate key update
|
|
id = #{id,jdbcType=BIGINT},
|
|
id = #{id,jdbcType=BIGINT},
|
|
book_id = #{bookId,jdbcType=BIGINT},
|
|
book_id = #{bookId,jdbcType=BIGINT},
|
|
chapter_name = #{chapterName,jdbcType=VARCHAR},
|
|
chapter_name = #{chapterName,jdbcType=VARCHAR},
|
|
- create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
|
- update_time = #{updateTime,jdbcType=TIMESTAMP}
|
|
|
|
|
|
+ create_time = #{createTime,jdbcType=INTEGER},
|
|
|
|
+ update_time = #{updateTime,jdbcType=INTEGER},
|
|
|
|
+ chapter_id = #{chapterId,jdbcType=BIGINT}
|
|
</insert>
|
|
</insert>
|
|
<insert id="upsertWithBLOBs" parameterType="com.book.dao.cps.entity.EditBook">
|
|
<insert id="upsertWithBLOBs" parameterType="com.book.dao.cps.entity.EditBook">
|
|
<!--
|
|
<!--
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
- This element was generated on Wed Aug 25 22:53:28 CST 2021.
|
|
|
|
|
|
+ This element was generated on Fri Aug 27 01:01:13 CST 2021.
|
|
-->
|
|
-->
|
|
insert into edit_book
|
|
insert into edit_book
|
|
- (id, book_id, chapter_name, create_time, update_time, content)
|
|
|
|
|
|
+ (id, book_id, chapter_name, create_time, update_time, chapter_id, content)
|
|
values
|
|
values
|
|
(#{id,jdbcType=BIGINT}, #{bookId,jdbcType=BIGINT}, #{chapterName,jdbcType=VARCHAR},
|
|
(#{id,jdbcType=BIGINT}, #{bookId,jdbcType=BIGINT}, #{chapterName,jdbcType=VARCHAR},
|
|
- #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{content,jdbcType=LONGVARCHAR}
|
|
|
|
- )
|
|
|
|
|
|
+ #{createTime,jdbcType=INTEGER}, #{updateTime,jdbcType=INTEGER}, #{chapterId,jdbcType=BIGINT},
|
|
|
|
+ #{content,jdbcType=LONGVARCHAR})
|
|
on duplicate key update
|
|
on duplicate key update
|
|
id = #{id,jdbcType=BIGINT},
|
|
id = #{id,jdbcType=BIGINT},
|
|
book_id = #{bookId,jdbcType=BIGINT},
|
|
book_id = #{bookId,jdbcType=BIGINT},
|
|
chapter_name = #{chapterName,jdbcType=VARCHAR},
|
|
chapter_name = #{chapterName,jdbcType=VARCHAR},
|
|
- create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
|
- update_time = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
|
|
|
+ create_time = #{createTime,jdbcType=INTEGER},
|
|
|
|
+ update_time = #{updateTime,jdbcType=INTEGER},
|
|
|
|
+ chapter_id = #{chapterId,jdbcType=BIGINT},
|
|
content = #{content,jdbcType=LONGVARCHAR}
|
|
content = #{content,jdbcType=LONGVARCHAR}
|
|
</insert>
|
|
</insert>
|
|
</mapper>
|
|
</mapper>
|