mirror of
https://gitee.com/bookshelfplus/bookshelfplus
synced 2025-09-22 01:30:40 +08:00
删除独立的作者、出版社、缩略图表;修正部分字段;实现部分Service以及Controller;项目框架基本建立
This commit is contained in:
@@ -5,21 +5,23 @@
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Sat Mar 12 18:53:08 SGT 2022.
|
||||
This element was generated on Sat Mar 12 21:38:13 SGT 2022.
|
||||
-->
|
||||
<id column="id" jdbcType="TINYINT" property="id" />
|
||||
<id column="book_name" jdbcType="VARCHAR" property="bookName" />
|
||||
<id column="id" jdbcType="INTEGER" property="id" />
|
||||
<result column="book_name" jdbcType="VARCHAR" property="bookName" />
|
||||
<result column="category_id" jdbcType="INTEGER" property="categoryId" />
|
||||
<result column="publishing_house_id" jdbcType="INTEGER" property="publishingHouseId" />
|
||||
<result column="publishing_house" jdbcType="VARCHAR" property="publishingHouse" />
|
||||
<result column="language" jdbcType="VARCHAR" property="language" />
|
||||
<result column="copyright" jdbcType="VARCHAR" property="copyright" />
|
||||
<result column="is_delete" jdbcType="BIT" property="isDelete" />
|
||||
<result column="thumbnail" jdbcType="VARCHAR" property="thumbnail" />
|
||||
<result column="author" jdbcType="VARCHAR" property="author" />
|
||||
</resultMap>
|
||||
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="plus.bookshelf.Dao.DO.BookDO">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Sat Mar 12 18:53:08 SGT 2022.
|
||||
This element was generated on Sat Mar 12 21:38:13 SGT 2022.
|
||||
-->
|
||||
<result column="description" jdbcType="LONGVARCHAR" property="description" />
|
||||
</resultMap>
|
||||
@@ -27,60 +29,61 @@
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Sat Mar 12 18:53:08 SGT 2022.
|
||||
This element was generated on Sat Mar 12 21:38:13 SGT 2022.
|
||||
-->
|
||||
id, book_name, category_id, publishing_house_id, language, copyright, is_delete
|
||||
id, book_name, category_id, publishing_house, `language`, copyright, is_delete, thumbnail,
|
||||
author
|
||||
</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 Mar 12 18:53:08 SGT 2022.
|
||||
This element was generated on Sat Mar 12 21:38:13 SGT 2022.
|
||||
-->
|
||||
description
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" parameterType="plus.bookshelf.Dao.DO.BookDOKey" resultMap="ResultMapWithBLOBs">
|
||||
<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 Mar 12 18:53:08 SGT 2022.
|
||||
This element was generated on Sat Mar 12 21:38:13 SGT 2022.
|
||||
-->
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
,
|
||||
<include refid="Blob_Column_List" />
|
||||
from book_info
|
||||
where id = #{id,jdbcType=TINYINT}
|
||||
and book_name = #{bookName,jdbcType=VARCHAR}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="plus.bookshelf.Dao.DO.BookDOKey">
|
||||
<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 Mar 12 18:53:08 SGT 2022.
|
||||
This element was generated on Sat Mar 12 21:38:13 SGT 2022.
|
||||
-->
|
||||
delete from book_info
|
||||
where id = #{id,jdbcType=TINYINT}
|
||||
and book_name = #{bookName,jdbcType=VARCHAR}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</delete>
|
||||
<insert id="insert" parameterType="plus.bookshelf.Dao.DO.BookDO">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Sat Mar 12 18:53:08 SGT 2022.
|
||||
This element was generated on Sat Mar 12 21:38:13 SGT 2022.
|
||||
-->
|
||||
insert into book_info (id, book_name, category_id,
|
||||
publishing_house_id, language, copyright,
|
||||
is_delete, description)
|
||||
values (#{id,jdbcType=TINYINT}, #{bookName,jdbcType=VARCHAR}, #{categoryId,jdbcType=INTEGER},
|
||||
#{publishingHouseId,jdbcType=INTEGER}, #{language,jdbcType=VARCHAR}, #{copyright,jdbcType=VARCHAR},
|
||||
#{isDelete,jdbcType=BIT}, #{description,jdbcType=LONGVARCHAR})
|
||||
publishing_house, `language`, copyright,
|
||||
is_delete, thumbnail, author,
|
||||
description)
|
||||
values (#{id,jdbcType=INTEGER}, #{bookName,jdbcType=VARCHAR}, #{categoryId,jdbcType=INTEGER},
|
||||
#{publishingHouse,jdbcType=VARCHAR}, #{language,jdbcType=VARCHAR}, #{copyright,jdbcType=VARCHAR},
|
||||
#{isDelete,jdbcType=BIT}, #{thumbnail,jdbcType=VARCHAR}, #{author,jdbcType=VARCHAR},
|
||||
#{description,jdbcType=LONGVARCHAR})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="plus.bookshelf.Dao.DO.BookDO">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Sat Mar 12 18:53:08 SGT 2022.
|
||||
This element was generated on Sat Mar 12 21:38:13 SGT 2022.
|
||||
-->
|
||||
insert into book_info
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
@@ -93,11 +96,11 @@
|
||||
<if test="categoryId != null">
|
||||
category_id,
|
||||
</if>
|
||||
<if test="publishingHouseId != null">
|
||||
publishing_house_id,
|
||||
<if test="publishingHouse != null">
|
||||
publishing_house,
|
||||
</if>
|
||||
<if test="language != null">
|
||||
language,
|
||||
`language`,
|
||||
</if>
|
||||
<if test="copyright != null">
|
||||
copyright,
|
||||
@@ -105,13 +108,19 @@
|
||||
<if test="isDelete != null">
|
||||
is_delete,
|
||||
</if>
|
||||
<if test="thumbnail != null">
|
||||
thumbnail,
|
||||
</if>
|
||||
<if test="author != null">
|
||||
author,
|
||||
</if>
|
||||
<if test="description != null">
|
||||
description,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
#{id,jdbcType=TINYINT},
|
||||
#{id,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="bookName != null">
|
||||
#{bookName,jdbcType=VARCHAR},
|
||||
@@ -119,8 +128,8 @@
|
||||
<if test="categoryId != null">
|
||||
#{categoryId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="publishingHouseId != null">
|
||||
#{publishingHouseId,jdbcType=INTEGER},
|
||||
<if test="publishingHouse != null">
|
||||
#{publishingHouse,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="language != null">
|
||||
#{language,jdbcType=VARCHAR},
|
||||
@@ -131,6 +140,12 @@
|
||||
<if test="isDelete != null">
|
||||
#{isDelete,jdbcType=BIT},
|
||||
</if>
|
||||
<if test="thumbnail != null">
|
||||
#{thumbnail,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="author != null">
|
||||
#{author,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="description != null">
|
||||
#{description,jdbcType=LONGVARCHAR},
|
||||
</if>
|
||||
@@ -140,18 +155,21 @@
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Sat Mar 12 18:53:08 SGT 2022.
|
||||
This element was generated on Sat Mar 12 21:38:13 SGT 2022.
|
||||
-->
|
||||
update book_info
|
||||
<set>
|
||||
<if test="bookName != null">
|
||||
book_name = #{bookName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="categoryId != null">
|
||||
category_id = #{categoryId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="publishingHouseId != null">
|
||||
publishing_house_id = #{publishingHouseId,jdbcType=INTEGER},
|
||||
<if test="publishingHouse != null">
|
||||
publishing_house = #{publishingHouse,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="language != null">
|
||||
language = #{language,jdbcType=VARCHAR},
|
||||
`language` = #{language,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="copyright != null">
|
||||
copyright = #{copyright,jdbcType=VARCHAR},
|
||||
@@ -159,42 +177,51 @@
|
||||
<if test="isDelete != null">
|
||||
is_delete = #{isDelete,jdbcType=BIT},
|
||||
</if>
|
||||
<if test="thumbnail != null">
|
||||
thumbnail = #{thumbnail,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="author != null">
|
||||
author = #{author,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="description != null">
|
||||
description = #{description,jdbcType=LONGVARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=TINYINT}
|
||||
and book_name = #{bookName,jdbcType=VARCHAR}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
<update id="updateByPrimaryKeyWithBLOBs" parameterType="plus.bookshelf.Dao.DO.BookDO">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Sat Mar 12 18:53:08 SGT 2022.
|
||||
This element was generated on Sat Mar 12 21:38:13 SGT 2022.
|
||||
-->
|
||||
update book_info
|
||||
set category_id = #{categoryId,jdbcType=INTEGER},
|
||||
publishing_house_id = #{publishingHouseId,jdbcType=INTEGER},
|
||||
language = #{language,jdbcType=VARCHAR},
|
||||
set book_name = #{bookName,jdbcType=VARCHAR},
|
||||
category_id = #{categoryId,jdbcType=INTEGER},
|
||||
publishing_house = #{publishingHouse,jdbcType=VARCHAR},
|
||||
`language` = #{language,jdbcType=VARCHAR},
|
||||
copyright = #{copyright,jdbcType=VARCHAR},
|
||||
is_delete = #{isDelete,jdbcType=BIT},
|
||||
thumbnail = #{thumbnail,jdbcType=VARCHAR},
|
||||
author = #{author,jdbcType=VARCHAR},
|
||||
description = #{description,jdbcType=LONGVARCHAR}
|
||||
where id = #{id,jdbcType=TINYINT}
|
||||
and book_name = #{bookName,jdbcType=VARCHAR}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="plus.bookshelf.Dao.DO.BookDO">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Sat Mar 12 18:53:08 SGT 2022.
|
||||
This element was generated on Sat Mar 12 21:38:13 SGT 2022.
|
||||
-->
|
||||
update book_info
|
||||
set category_id = #{categoryId,jdbcType=INTEGER},
|
||||
publishing_house_id = #{publishingHouseId,jdbcType=INTEGER},
|
||||
language = #{language,jdbcType=VARCHAR},
|
||||
set book_name = #{bookName,jdbcType=VARCHAR},
|
||||
category_id = #{categoryId,jdbcType=INTEGER},
|
||||
publishing_house = #{publishingHouse,jdbcType=VARCHAR},
|
||||
`language` = #{language,jdbcType=VARCHAR},
|
||||
copyright = #{copyright,jdbcType=VARCHAR},
|
||||
is_delete = #{isDelete,jdbcType=BIT}
|
||||
where id = #{id,jdbcType=TINYINT}
|
||||
and book_name = #{bookName,jdbcType=VARCHAR}
|
||||
is_delete = #{isDelete,jdbcType=BIT},
|
||||
thumbnail = #{thumbnail,jdbcType=VARCHAR},
|
||||
author = #{author,jdbcType=VARCHAR}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
</mapper>
|
Reference in New Issue
Block a user