|
@@ -5,21 +5,21 @@
|
|
<!--
|
|
<!--
|
|
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:46:40 CST 2021.
|
|
|
|
|
|
+ This element was generated on Thu Aug 26 21:11:21 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="words" jdbcType="INTEGER" property="words" />
|
|
<result column="words" jdbcType="INTEGER" property="words" />
|
|
- <result column="is_pay" jdbcType="INTEGER" property="isPay" />
|
|
|
|
|
|
+ <result column="read_able" jdbcType="INTEGER" property="readAble" />
|
|
</resultMap>
|
|
</resultMap>
|
|
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.book.dao.cps.entity.UploadBook">
|
|
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.book.dao.cps.entity.UploadBook">
|
|
<!--
|
|
<!--
|
|
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:46:40 CST 2021.
|
|
|
|
|
|
+ This element was generated on Thu Aug 26 21:11:21 CST 2021.
|
|
-->
|
|
-->
|
|
<result column="content" jdbcType="LONGVARCHAR" property="content" />
|
|
<result column="content" jdbcType="LONGVARCHAR" property="content" />
|
|
</resultMap>
|
|
</resultMap>
|
|
@@ -27,7 +27,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:46:40 CST 2021.
|
|
|
|
|
|
+ This element was generated on Thu Aug 26 21:11:21 CST 2021.
|
|
-->
|
|
-->
|
|
<where>
|
|
<where>
|
|
<foreach collection="oredCriteria" item="criteria" separator="or">
|
|
<foreach collection="oredCriteria" item="criteria" separator="or">
|
|
@@ -61,7 +61,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:46:40 CST 2021.
|
|
|
|
|
|
+ This element was generated on Thu Aug 26 21:11:21 CST 2021.
|
|
-->
|
|
-->
|
|
<where>
|
|
<where>
|
|
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
|
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
|
@@ -95,15 +95,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:46:40 CST 2021.
|
|
|
|
|
|
+ This element was generated on Thu Aug 26 21:11:21 CST 2021.
|
|
-->
|
|
-->
|
|
- id, book_id, chapter_name, create_time, update_time, words, is_pay
|
|
|
|
|
|
+ id, book_id, chapter_name, create_time, update_time, words, read_able
|
|
</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:46:40 CST 2021.
|
|
|
|
|
|
+ This element was generated on Thu Aug 26 21:11:21 CST 2021.
|
|
-->
|
|
-->
|
|
content
|
|
content
|
|
</sql>
|
|
</sql>
|
|
@@ -111,7 +111,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:46:40 CST 2021.
|
|
|
|
|
|
+ This element was generated on Thu Aug 26 21:11:21 CST 2021.
|
|
-->
|
|
-->
|
|
select
|
|
select
|
|
<if test="distinct">
|
|
<if test="distinct">
|
|
@@ -140,7 +140,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:46:40 CST 2021.
|
|
|
|
|
|
+ This element was generated on Thu Aug 26 21:11:21 CST 2021.
|
|
-->
|
|
-->
|
|
select
|
|
select
|
|
<if test="distinct">
|
|
<if test="distinct">
|
|
@@ -167,7 +167,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:46:40 CST 2021.
|
|
|
|
|
|
+ This element was generated on Thu Aug 26 21:11:21 CST 2021.
|
|
-->
|
|
-->
|
|
select
|
|
select
|
|
<if test="example != null and example.distinct">
|
|
<if test="example != null and example.distinct">
|
|
@@ -205,7 +205,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:46:40 CST 2021.
|
|
|
|
|
|
+ This element was generated on Thu Aug 26 21:11:21 CST 2021.
|
|
-->
|
|
-->
|
|
select
|
|
select
|
|
<include refid="Base_Column_List" />
|
|
<include refid="Base_Column_List" />
|
|
@@ -219,7 +219,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:46:40 CST 2021.
|
|
|
|
|
|
+ This element was generated on Thu Aug 26 21:11:21 CST 2021.
|
|
-->
|
|
-->
|
|
select
|
|
select
|
|
<choose>
|
|
<choose>
|
|
@@ -242,7 +242,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:46:40 CST 2021.
|
|
|
|
|
|
+ This element was generated on Thu Aug 26 21:11:21 CST 2021.
|
|
-->
|
|
-->
|
|
delete from upload_book
|
|
delete from upload_book
|
|
where id = #{id,jdbcType=BIGINT}
|
|
where id = #{id,jdbcType=BIGINT}
|
|
@@ -252,7 +252,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:46:40 CST 2021.
|
|
|
|
|
|
+ This element was generated on Thu Aug 26 21:11:21 CST 2021.
|
|
-->
|
|
-->
|
|
delete from upload_book
|
|
delete from upload_book
|
|
<if test="_parameter != null">
|
|
<if test="_parameter != null">
|
|
@@ -263,20 +263,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:46:40 CST 2021.
|
|
|
|
|
|
+ This element was generated on Thu Aug 26 21:11:21 CST 2021.
|
|
-->
|
|
-->
|
|
insert into upload_book (id, book_id, chapter_name,
|
|
insert into upload_book (id, book_id, chapter_name,
|
|
create_time, update_time, words,
|
|
create_time, update_time, words,
|
|
- is_pay, content)
|
|
|
|
|
|
+ read_able, 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}, #{words,jdbcType=INTEGER},
|
|
|
|
- #{isPay,jdbcType=INTEGER}, #{content,jdbcType=LONGVARCHAR})
|
|
|
|
|
|
+ #{createTime,jdbcType=INTEGER}, #{updateTime,jdbcType=INTEGER}, #{words,jdbcType=INTEGER},
|
|
|
|
+ #{readAble,jdbcType=INTEGER}, #{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:46:40 CST 2021.
|
|
|
|
|
|
+ This element was generated on Thu Aug 26 21:11:21 CST 2021.
|
|
-->
|
|
-->
|
|
insert into upload_book
|
|
insert into upload_book
|
|
<choose>
|
|
<choose>
|
|
@@ -305,8 +305,8 @@
|
|
<if test="record.words != null">
|
|
<if test="record.words != null">
|
|
words,
|
|
words,
|
|
</if>
|
|
</if>
|
|
- <if test="record.isPay != null">
|
|
|
|
- is_pay,
|
|
|
|
|
|
+ <if test="record.readAble != null">
|
|
|
|
+ read_able,
|
|
</if>
|
|
</if>
|
|
<if test="record.content != null">
|
|
<if test="record.content != null">
|
|
content,
|
|
content,
|
|
@@ -334,16 +334,16 @@
|
|
#{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>
|
|
<if test="record.words != null">
|
|
<if test="record.words != null">
|
|
#{record.words,jdbcType=INTEGER},
|
|
#{record.words,jdbcType=INTEGER},
|
|
</if>
|
|
</if>
|
|
- <if test="record.isPay != null">
|
|
|
|
- #{record.isPay,jdbcType=INTEGER},
|
|
|
|
|
|
+ <if test="record.readAble != null">
|
|
|
|
+ #{record.readAble,jdbcType=INTEGER},
|
|
</if>
|
|
</if>
|
|
<if test="record.content != null">
|
|
<if test="record.content != null">
|
|
#{record.content,jdbcType=LONGVARCHAR},
|
|
#{record.content,jdbcType=LONGVARCHAR},
|
|
@@ -356,7 +356,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:46:40 CST 2021.
|
|
|
|
|
|
+ This element was generated on Thu Aug 26 21:11:21 CST 2021.
|
|
-->
|
|
-->
|
|
select count(*) from upload_book
|
|
select count(*) from upload_book
|
|
<if test="_parameter != null">
|
|
<if test="_parameter != null">
|
|
@@ -367,7 +367,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:46:40 CST 2021.
|
|
|
|
|
|
+ This element was generated on Thu Aug 26 21:11:21 CST 2021.
|
|
-->
|
|
-->
|
|
update upload_book
|
|
update upload_book
|
|
SET
|
|
SET
|
|
@@ -389,16 +389,16 @@
|
|
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>
|
|
<if test="record.words != null">
|
|
<if test="record.words != null">
|
|
words = #{record.words,jdbcType=INTEGER},
|
|
words = #{record.words,jdbcType=INTEGER},
|
|
</if>
|
|
</if>
|
|
- <if test="record.isPay != null">
|
|
|
|
- is_pay = #{record.isPay,jdbcType=INTEGER},
|
|
|
|
|
|
+ <if test="record.readAble != null">
|
|
|
|
+ read_able = #{record.readAble,jdbcType=INTEGER},
|
|
</if>
|
|
</if>
|
|
<if test="record.content != null">
|
|
<if test="record.content != null">
|
|
content = #{record.content,jdbcType=LONGVARCHAR},
|
|
content = #{record.content,jdbcType=LONGVARCHAR},
|
|
@@ -414,16 +414,16 @@
|
|
<!--
|
|
<!--
|
|
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:46:40 CST 2021.
|
|
|
|
|
|
+ This element was generated on Thu Aug 26 21:11:21 CST 2021.
|
|
-->
|
|
-->
|
|
update upload_book
|
|
update upload_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},
|
|
words = #{record.words,jdbcType=INTEGER},
|
|
words = #{record.words,jdbcType=INTEGER},
|
|
- is_pay = #{record.isPay,jdbcType=INTEGER},
|
|
|
|
|
|
+ read_able = #{record.readAble,jdbcType=INTEGER},
|
|
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" />
|
|
@@ -433,16 +433,16 @@
|
|
<!--
|
|
<!--
|
|
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:46:40 CST 2021.
|
|
|
|
|
|
+ This element was generated on Thu Aug 26 21:11:21 CST 2021.
|
|
-->
|
|
-->
|
|
update upload_book
|
|
update upload_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},
|
|
words = #{record.words,jdbcType=INTEGER},
|
|
words = #{record.words,jdbcType=INTEGER},
|
|
- is_pay = #{record.isPay,jdbcType=INTEGER}
|
|
|
|
|
|
+ read_able = #{record.readAble,jdbcType=INTEGER}
|
|
<if test="_parameter != null">
|
|
<if test="_parameter != null">
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
</if>
|
|
</if>
|
|
@@ -451,7 +451,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:46:40 CST 2021.
|
|
|
|
|
|
+ This element was generated on Thu Aug 26 21:11:21 CST 2021.
|
|
-->
|
|
-->
|
|
update upload_book
|
|
update upload_book
|
|
SET
|
|
SET
|
|
@@ -467,16 +467,16 @@
|
|
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>
|
|
<if test="record.words != null">
|
|
<if test="record.words != null">
|
|
words = #{record.words,jdbcType=INTEGER},
|
|
words = #{record.words,jdbcType=INTEGER},
|
|
</if>
|
|
</if>
|
|
- <if test="record.isPay != null">
|
|
|
|
- is_pay = #{record.isPay,jdbcType=INTEGER},
|
|
|
|
|
|
+ <if test="record.readAble != null">
|
|
|
|
+ read_able = #{record.readAble,jdbcType=INTEGER},
|
|
</if>
|
|
</if>
|
|
<if test="record.content != null">
|
|
<if test="record.content != null">
|
|
content = #{record.content,jdbcType=LONGVARCHAR},
|
|
content = #{record.content,jdbcType=LONGVARCHAR},
|
|
@@ -491,14 +491,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:46:40 CST 2021.
|
|
|
|
|
|
+ This element was generated on Thu Aug 26 21:11:21 CST 2021.
|
|
-->
|
|
-->
|
|
update upload_book
|
|
update upload_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},
|
|
words = #{words,jdbcType=INTEGER},
|
|
words = #{words,jdbcType=INTEGER},
|
|
- is_pay = #{isPay,jdbcType=INTEGER},
|
|
|
|
|
|
+ read_able = #{readAble,jdbcType=INTEGER},
|
|
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}
|
|
@@ -507,14 +507,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:46:40 CST 2021.
|
|
|
|
|
|
+ This element was generated on Thu Aug 26 21:11:21 CST 2021.
|
|
-->
|
|
-->
|
|
update upload_book
|
|
update upload_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},
|
|
words = #{words,jdbcType=INTEGER},
|
|
words = #{words,jdbcType=INTEGER},
|
|
- is_pay = #{isPay,jdbcType=INTEGER}
|
|
|
|
|
|
+ read_able = #{readAble,jdbcType=INTEGER}
|
|
where id = #{id,jdbcType=BIGINT}
|
|
where id = #{id,jdbcType=BIGINT}
|
|
and book_id = #{bookId,jdbcType=BIGINT}
|
|
and book_id = #{bookId,jdbcType=BIGINT}
|
|
</update>
|
|
</update>
|
|
@@ -522,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:46:40 CST 2021.
|
|
|
|
|
|
+ This element was generated on Thu Aug 26 21:11:21 CST 2021.
|
|
-->
|
|
-->
|
|
select
|
|
select
|
|
<include refid="Base_Column_List" />
|
|
<include refid="Base_Column_List" />
|
|
@@ -539,7 +539,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:46:40 CST 2021.
|
|
|
|
|
|
+ This element was generated on Thu Aug 26 21:11:21 CST 2021.
|
|
-->
|
|
-->
|
|
select
|
|
select
|
|
<include refid="Base_Column_List" />
|
|
<include refid="Base_Column_List" />
|
|
@@ -558,7 +558,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:46:40 CST 2021.
|
|
|
|
|
|
+ This element was generated on Thu Aug 26 21:11:21 CST 2021.
|
|
-->
|
|
-->
|
|
select
|
|
select
|
|
<choose>
|
|
<choose>
|
|
@@ -586,22 +586,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:46:40 CST 2021.
|
|
|
|
|
|
+ This element was generated on Thu Aug 26 21:11:21 CST 2021.
|
|
-->
|
|
-->
|
|
insert into upload_book
|
|
insert into upload_book
|
|
- (id, book_id, chapter_name, create_time, update_time, words, is_pay, content)
|
|
|
|
|
|
+ (id, book_id, chapter_name, create_time, update_time, words, read_able, 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.words,jdbcType=INTEGER},
|
|
|
|
- #{item.isPay,jdbcType=INTEGER}, #{item.content,jdbcType=LONGVARCHAR})
|
|
|
|
|
|
+ #{item.createTime,jdbcType=INTEGER}, #{item.updateTime,jdbcType=INTEGER}, #{item.words,jdbcType=INTEGER},
|
|
|
|
+ #{item.readAble,jdbcType=INTEGER}, #{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:46:40 CST 2021.
|
|
|
|
|
|
+ This element was generated on Thu Aug 26 21:11:21 CST 2021.
|
|
-->
|
|
-->
|
|
insert into upload_book (
|
|
insert into upload_book (
|
|
<foreach collection="selective" item="column" separator=",">
|
|
<foreach collection="selective" item="column" separator=",">
|
|
@@ -622,16 +622,16 @@
|
|
#{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>
|
|
<if test="'words'.toString() == column.value">
|
|
<if test="'words'.toString() == column.value">
|
|
#{item.words,jdbcType=INTEGER}
|
|
#{item.words,jdbcType=INTEGER}
|
|
</if>
|
|
</if>
|
|
- <if test="'is_pay'.toString() == column.value">
|
|
|
|
- #{item.isPay,jdbcType=INTEGER}
|
|
|
|
|
|
+ <if test="'read_able'.toString() == column.value">
|
|
|
|
+ #{item.readAble,jdbcType=INTEGER}
|
|
</if>
|
|
</if>
|
|
<if test="'content'.toString() == column.value">
|
|
<if test="'content'.toString() == column.value">
|
|
#{item.content,jdbcType=LONGVARCHAR}
|
|
#{item.content,jdbcType=LONGVARCHAR}
|
|
@@ -644,7 +644,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:46:40 CST 2021.
|
|
|
|
|
|
+ This element was generated on Thu Aug 26 21:11:21 CST 2021.
|
|
-->
|
|
-->
|
|
insert into upload_book
|
|
insert into upload_book
|
|
<choose>
|
|
<choose>
|
|
@@ -673,8 +673,8 @@
|
|
<if test="record.words != null">
|
|
<if test="record.words != null">
|
|
words,
|
|
words,
|
|
</if>
|
|
</if>
|
|
- <if test="record.isPay != null">
|
|
|
|
- is_pay,
|
|
|
|
|
|
+ <if test="record.readAble != null">
|
|
|
|
+ read_able,
|
|
</if>
|
|
</if>
|
|
<if test="record.content != null">
|
|
<if test="record.content != null">
|
|
content,
|
|
content,
|
|
@@ -702,16 +702,16 @@
|
|
#{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>
|
|
<if test="record.words != null">
|
|
<if test="record.words != null">
|
|
#{record.words,jdbcType=INTEGER},
|
|
#{record.words,jdbcType=INTEGER},
|
|
</if>
|
|
</if>
|
|
- <if test="record.isPay != null">
|
|
|
|
- #{record.isPay,jdbcType=INTEGER},
|
|
|
|
|
|
+ <if test="record.readAble != null">
|
|
|
|
+ #{record.readAble,jdbcType=INTEGER},
|
|
</if>
|
|
</if>
|
|
<if test="record.content != null">
|
|
<if test="record.content != null">
|
|
#{record.content,jdbcType=LONGVARCHAR},
|
|
#{record.content,jdbcType=LONGVARCHAR},
|
|
@@ -738,16 +738,16 @@
|
|
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>
|
|
<if test="record.words != null">
|
|
<if test="record.words != null">
|
|
words = #{record.words,jdbcType=INTEGER},
|
|
words = #{record.words,jdbcType=INTEGER},
|
|
</if>
|
|
</if>
|
|
- <if test="record.isPay != null">
|
|
|
|
- is_pay = #{record.isPay,jdbcType=INTEGER},
|
|
|
|
|
|
+ <if test="record.readAble != null">
|
|
|
|
+ read_able = #{record.readAble,jdbcType=INTEGER},
|
|
</if>
|
|
</if>
|
|
<if test="record.content != null">
|
|
<if test="record.content != null">
|
|
content = #{record.content,jdbcType=LONGVARCHAR},
|
|
content = #{record.content,jdbcType=LONGVARCHAR},
|
|
@@ -760,43 +760,43 @@
|
|
<!--
|
|
<!--
|
|
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:46:40 CST 2021.
|
|
|
|
|
|
+ This element was generated on Thu Aug 26 21:11:21 CST 2021.
|
|
-->
|
|
-->
|
|
insert into upload_book
|
|
insert into upload_book
|
|
- (id, book_id, chapter_name, create_time, update_time, words, is_pay)
|
|
|
|
|
|
+ (id, book_id, chapter_name, create_time, update_time, words, read_able)
|
|
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}, #{words,jdbcType=INTEGER},
|
|
|
|
- #{isPay,jdbcType=INTEGER})
|
|
|
|
|
|
+ #{createTime,jdbcType=INTEGER}, #{updateTime,jdbcType=INTEGER}, #{words,jdbcType=INTEGER},
|
|
|
|
+ #{readAble,jdbcType=INTEGER})
|
|
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},
|
|
words = #{words,jdbcType=INTEGER},
|
|
words = #{words,jdbcType=INTEGER},
|
|
- is_pay = #{isPay,jdbcType=INTEGER}
|
|
|
|
|
|
+ read_able = #{readAble,jdbcType=INTEGER}
|
|
</insert>
|
|
</insert>
|
|
<insert id="upsertWithBLOBs" parameterType="com.book.dao.cps.entity.UploadBook">
|
|
<insert id="upsertWithBLOBs" parameterType="com.book.dao.cps.entity.UploadBook">
|
|
<!--
|
|
<!--
|
|
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:46:40 CST 2021.
|
|
|
|
|
|
+ This element was generated on Thu Aug 26 21:11:21 CST 2021.
|
|
-->
|
|
-->
|
|
insert into upload_book
|
|
insert into upload_book
|
|
- (id, book_id, chapter_name, create_time, update_time, words, is_pay, content)
|
|
|
|
|
|
+ (id, book_id, chapter_name, create_time, update_time, words, read_able, 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}, #{words,jdbcType=INTEGER},
|
|
|
|
- #{isPay,jdbcType=INTEGER}, #{content,jdbcType=LONGVARCHAR})
|
|
|
|
|
|
+ #{createTime,jdbcType=INTEGER}, #{updateTime,jdbcType=INTEGER}, #{words,jdbcType=INTEGER},
|
|
|
|
+ #{readAble,jdbcType=INTEGER}, #{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},
|
|
words = #{words,jdbcType=INTEGER},
|
|
words = #{words,jdbcType=INTEGER},
|
|
- is_pay = #{isPay,jdbcType=INTEGER},
|
|
|
|
|
|
+ read_able = #{readAble,jdbcType=INTEGER},
|
|
content = #{content,jdbcType=LONGVARCHAR}
|
|
content = #{content,jdbcType=LONGVARCHAR}
|
|
</insert>
|
|
</insert>
|
|
</mapper>
|
|
</mapper>
|