mirror of
https://gitee.com/bookshelfplus/bookshelfplus
synced 2025-10-09 01:05:14 +08:00
自动生成数据库映射文件
This commit is contained in:
98
bookshelfplus/src/main/resources/mapping/AuthorDOMapper.xml
Normal file
98
bookshelfplus/src/main/resources/mapping/AuthorDOMapper.xml
Normal file
@@ -0,0 +1,98 @@
|
||||
<?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="plus.bookshelf.Dao.Mapper.AuthorDOMapper">
|
||||
<resultMap id="BaseResultMap" type="plus.bookshelf.Dao.DO.AuthorDO">
|
||||
<!--
|
||||
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.
|
||||
-->
|
||||
<id column="id" jdbcType="INTEGER" property="id" />
|
||||
<result column="name" jdbcType="VARCHAR" property="name" />
|
||||
</resultMap>
|
||||
<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 Mar 12 18:53:08 SGT 2022.
|
||||
-->
|
||||
id, name
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
||||
<!--
|
||||
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.
|
||||
-->
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from book_author_info
|
||||
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 Mar 12 18:53:08 SGT 2022.
|
||||
-->
|
||||
delete from book_author_info
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</delete>
|
||||
<insert id="insert" parameterType="plus.bookshelf.Dao.DO.AuthorDO">
|
||||
<!--
|
||||
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.
|
||||
-->
|
||||
insert into book_author_info (id, name)
|
||||
values (#{id,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="plus.bookshelf.Dao.DO.AuthorDO">
|
||||
<!--
|
||||
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.
|
||||
-->
|
||||
insert into book_author_info
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="name != null">
|
||||
name,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
#{id,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="name != null">
|
||||
#{name,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="plus.bookshelf.Dao.DO.AuthorDO">
|
||||
<!--
|
||||
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.
|
||||
-->
|
||||
update book_author_info
|
||||
<set>
|
||||
<if test="name != null">
|
||||
name = #{name,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="plus.bookshelf.Dao.DO.AuthorDO">
|
||||
<!--
|
||||
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.
|
||||
-->
|
||||
update book_author_info
|
||||
set name = #{name,jdbcType=VARCHAR}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
</mapper>
|
200
bookshelfplus/src/main/resources/mapping/BookDOMapper.xml
Normal file
200
bookshelfplus/src/main/resources/mapping/BookDOMapper.xml
Normal file
@@ -0,0 +1,200 @@
|
||||
<?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="plus.bookshelf.Dao.Mapper.BookDOMapper">
|
||||
<resultMap id="BaseResultMap" 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.
|
||||
-->
|
||||
<id column="id" jdbcType="TINYINT" property="id" />
|
||||
<id 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="language" jdbcType="VARCHAR" property="language" />
|
||||
<result column="copyright" jdbcType="VARCHAR" property="copyright" />
|
||||
<result column="is_delete" jdbcType="BIT" property="isDelete" />
|
||||
</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.
|
||||
-->
|
||||
<result column="description" jdbcType="LONGVARCHAR" property="description" />
|
||||
</resultMap>
|
||||
<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 Mar 12 18:53:08 SGT 2022.
|
||||
-->
|
||||
id, book_name, category_id, publishing_house_id, language, copyright, is_delete
|
||||
</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.
|
||||
-->
|
||||
description
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" parameterType="plus.bookshelf.Dao.DO.BookDOKey" 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.
|
||||
-->
|
||||
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}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="plus.bookshelf.Dao.DO.BookDOKey">
|
||||
<!--
|
||||
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.
|
||||
-->
|
||||
delete from book_info
|
||||
where id = #{id,jdbcType=TINYINT}
|
||||
and book_name = #{bookName,jdbcType=VARCHAR}
|
||||
</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.
|
||||
-->
|
||||
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})
|
||||
</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.
|
||||
-->
|
||||
insert into book_info
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="bookName != null">
|
||||
book_name,
|
||||
</if>
|
||||
<if test="categoryId != null">
|
||||
category_id,
|
||||
</if>
|
||||
<if test="publishingHouseId != null">
|
||||
publishing_house_id,
|
||||
</if>
|
||||
<if test="language != null">
|
||||
language,
|
||||
</if>
|
||||
<if test="copyright != null">
|
||||
copyright,
|
||||
</if>
|
||||
<if test="isDelete != null">
|
||||
is_delete,
|
||||
</if>
|
||||
<if test="description != null">
|
||||
description,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
#{id,jdbcType=TINYINT},
|
||||
</if>
|
||||
<if test="bookName != null">
|
||||
#{bookName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="categoryId != null">
|
||||
#{categoryId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="publishingHouseId != null">
|
||||
#{publishingHouseId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="language != null">
|
||||
#{language,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="copyright != null">
|
||||
#{copyright,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="isDelete != null">
|
||||
#{isDelete,jdbcType=BIT},
|
||||
</if>
|
||||
<if test="description != null">
|
||||
#{description,jdbcType=LONGVARCHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" 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.
|
||||
-->
|
||||
update book_info
|
||||
<set>
|
||||
<if test="categoryId != null">
|
||||
category_id = #{categoryId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="publishingHouseId != null">
|
||||
publishing_house_id = #{publishingHouseId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="language != null">
|
||||
language = #{language,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="copyright != null">
|
||||
copyright = #{copyright,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="isDelete != null">
|
||||
is_delete = #{isDelete,jdbcType=BIT},
|
||||
</if>
|
||||
<if test="description != null">
|
||||
description = #{description,jdbcType=LONGVARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=TINYINT}
|
||||
and book_name = #{bookName,jdbcType=VARCHAR}
|
||||
</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.
|
||||
-->
|
||||
update book_info
|
||||
set category_id = #{categoryId,jdbcType=INTEGER},
|
||||
publishing_house_id = #{publishingHouseId,jdbcType=INTEGER},
|
||||
language = #{language,jdbcType=VARCHAR},
|
||||
copyright = #{copyright,jdbcType=VARCHAR},
|
||||
is_delete = #{isDelete,jdbcType=BIT},
|
||||
description = #{description,jdbcType=LONGVARCHAR}
|
||||
where id = #{id,jdbcType=TINYINT}
|
||||
and book_name = #{bookName,jdbcType=VARCHAR}
|
||||
</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.
|
||||
-->
|
||||
update book_info
|
||||
set category_id = #{categoryId,jdbcType=INTEGER},
|
||||
publishing_house_id = #{publishingHouseId,jdbcType=INTEGER},
|
||||
language = #{language,jdbcType=VARCHAR},
|
||||
copyright = #{copyright,jdbcType=VARCHAR},
|
||||
is_delete = #{isDelete,jdbcType=BIT}
|
||||
where id = #{id,jdbcType=TINYINT}
|
||||
and book_name = #{bookName,jdbcType=VARCHAR}
|
||||
</update>
|
||||
</mapper>
|
188
bookshelfplus/src/main/resources/mapping/CategoryDOMapper.xml
Normal file
188
bookshelfplus/src/main/resources/mapping/CategoryDOMapper.xml
Normal file
@@ -0,0 +1,188 @@
|
||||
<?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="plus.bookshelf.Dao.Mapper.CategoryDOMapper">
|
||||
<resultMap id="BaseResultMap" type="plus.bookshelf.Dao.DO.CategoryDO">
|
||||
<!--
|
||||
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.
|
||||
-->
|
||||
<id column="id" jdbcType="INTEGER" property="id" />
|
||||
<result column="name" jdbcType="VARCHAR" property="name" />
|
||||
<result column="isShow" jdbcType="BIT" property="isshow" />
|
||||
<result column="order" jdbcType="INTEGER" property="order" />
|
||||
<result column="level" jdbcType="INTEGER" property="level" />
|
||||
<result column="parentId" jdbcType="INTEGER" property="parentid" />
|
||||
</resultMap>
|
||||
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="plus.bookshelf.Dao.DO.CategoryDO">
|
||||
<!--
|
||||
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.
|
||||
-->
|
||||
<result column="description" jdbcType="LONGVARCHAR" property="description" />
|
||||
</resultMap>
|
||||
<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 Mar 12 18:53:08 SGT 2022.
|
||||
-->
|
||||
id, name, isShow, order, level, parentId
|
||||
</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.
|
||||
-->
|
||||
description
|
||||
</sql>
|
||||
<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.
|
||||
-->
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
,
|
||||
<include refid="Blob_Column_List" />
|
||||
from category_info
|
||||
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 Mar 12 18:53:08 SGT 2022.
|
||||
-->
|
||||
delete from category_info
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</delete>
|
||||
<insert id="insert" parameterType="plus.bookshelf.Dao.DO.CategoryDO">
|
||||
<!--
|
||||
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.
|
||||
-->
|
||||
insert into category_info (id, name, isShow,
|
||||
order, level, parentId,
|
||||
description)
|
||||
values (#{id,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, #{isshow,jdbcType=BIT},
|
||||
#{order,jdbcType=INTEGER}, #{level,jdbcType=INTEGER}, #{parentid,jdbcType=INTEGER},
|
||||
#{description,jdbcType=LONGVARCHAR})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="plus.bookshelf.Dao.DO.CategoryDO">
|
||||
<!--
|
||||
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.
|
||||
-->
|
||||
insert into category_info
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="name != null">
|
||||
name,
|
||||
</if>
|
||||
<if test="isshow != null">
|
||||
isShow,
|
||||
</if>
|
||||
<if test="order != null">
|
||||
order,
|
||||
</if>
|
||||
<if test="level != null">
|
||||
level,
|
||||
</if>
|
||||
<if test="parentid != null">
|
||||
parentId,
|
||||
</if>
|
||||
<if test="description != null">
|
||||
description,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
#{id,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="name != null">
|
||||
#{name,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="isshow != null">
|
||||
#{isshow,jdbcType=BIT},
|
||||
</if>
|
||||
<if test="order != null">
|
||||
#{order,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="level != null">
|
||||
#{level,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="parentid != null">
|
||||
#{parentid,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="description != null">
|
||||
#{description,jdbcType=LONGVARCHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="plus.bookshelf.Dao.DO.CategoryDO">
|
||||
<!--
|
||||
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.
|
||||
-->
|
||||
update category_info
|
||||
<set>
|
||||
<if test="name != null">
|
||||
name = #{name,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="isshow != null">
|
||||
isShow = #{isshow,jdbcType=BIT},
|
||||
</if>
|
||||
<if test="order != null">
|
||||
order = #{order,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="level != null">
|
||||
level = #{level,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="parentid != null">
|
||||
parentId = #{parentid,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="description != null">
|
||||
description = #{description,jdbcType=LONGVARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
<update id="updateByPrimaryKeyWithBLOBs" parameterType="plus.bookshelf.Dao.DO.CategoryDO">
|
||||
<!--
|
||||
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.
|
||||
-->
|
||||
update category_info
|
||||
set name = #{name,jdbcType=VARCHAR},
|
||||
isShow = #{isshow,jdbcType=BIT},
|
||||
order = #{order,jdbcType=INTEGER},
|
||||
level = #{level,jdbcType=INTEGER},
|
||||
parentId = #{parentid,jdbcType=INTEGER},
|
||||
description = #{description,jdbcType=LONGVARCHAR}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="plus.bookshelf.Dao.DO.CategoryDO">
|
||||
<!--
|
||||
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.
|
||||
-->
|
||||
update category_info
|
||||
set name = #{name,jdbcType=VARCHAR},
|
||||
isShow = #{isshow,jdbcType=BIT},
|
||||
order = #{order,jdbcType=INTEGER},
|
||||
level = #{level,jdbcType=INTEGER},
|
||||
parentId = #{parentid,jdbcType=INTEGER}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
</mapper>
|
264
bookshelfplus/src/main/resources/mapping/FileDOMapper.xml
Normal file
264
bookshelfplus/src/main/resources/mapping/FileDOMapper.xml
Normal file
@@ -0,0 +1,264 @@
|
||||
<?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="plus.bookshelf.Dao.Mapper.FileDOMapper">
|
||||
<resultMap id="BaseResultMap" type="plus.bookshelf.Dao.DO.FileDO">
|
||||
<!--
|
||||
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.
|
||||
-->
|
||||
<id column="id" jdbcType="INTEGER" property="id" />
|
||||
<id column="book_id" jdbcType="INTEGER" property="bookId" />
|
||||
<result column="file_display_name" jdbcType="VARCHAR" property="fileDisplayName" />
|
||||
<result column="file_name" jdbcType="VARCHAR" property="fileName" />
|
||||
<result column="file_format" jdbcType="VARCHAR" property="fileFormat" />
|
||||
<result column="number_of_pages" jdbcType="INTEGER" property="numberOfPages" />
|
||||
<result column="watermark" jdbcType="BIT" property="watermark" />
|
||||
<result column="advertising" jdbcType="BIT" property="advertising" />
|
||||
<result column="book_origin" jdbcType="TINYINT" property="bookOrigin" />
|
||||
<result column="thumbnail" jdbcType="VARCHAR" property="thumbnail" />
|
||||
<result column="file_create_at" jdbcType="TIMESTAMP" property="fileCreateAt" />
|
||||
<result column="file_modified_at" jdbcType="TIMESTAMP" property="fileModifiedAt" />
|
||||
<result column="file_size" jdbcType="INTEGER" property="fileSize" />
|
||||
<result column="hash_md5" jdbcType="VARCHAR" property="hashMd5" />
|
||||
<result column="hash_sha1" jdbcType="VARCHAR" property="hashSha1" />
|
||||
<result column="hash_sha256" jdbcType="VARCHAR" property="hashSha256" />
|
||||
</resultMap>
|
||||
<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 Mar 12 18:53:08 SGT 2022.
|
||||
-->
|
||||
id, book_id, file_display_name, file_name, file_format, number_of_pages, watermark,
|
||||
advertising, book_origin, thumbnail, file_create_at, file_modified_at, file_size,
|
||||
hash_md5, hash_sha1, hash_sha256
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" parameterType="plus.bookshelf.Dao.DO.FileDOKey" resultMap="BaseResultMap">
|
||||
<!--
|
||||
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.
|
||||
-->
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from file_info
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
and book_id = #{bookId,jdbcType=INTEGER}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="plus.bookshelf.Dao.DO.FileDOKey">
|
||||
<!--
|
||||
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.
|
||||
-->
|
||||
delete from file_info
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
and book_id = #{bookId,jdbcType=INTEGER}
|
||||
</delete>
|
||||
<insert id="insert" parameterType="plus.bookshelf.Dao.DO.FileDO">
|
||||
<!--
|
||||
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.
|
||||
-->
|
||||
insert into file_info (id, book_id, file_display_name,
|
||||
file_name, file_format, number_of_pages,
|
||||
watermark, advertising, book_origin,
|
||||
thumbnail, file_create_at, file_modified_at,
|
||||
file_size, hash_md5, hash_sha1,
|
||||
hash_sha256)
|
||||
values (#{id,jdbcType=INTEGER}, #{bookId,jdbcType=INTEGER}, #{fileDisplayName,jdbcType=VARCHAR},
|
||||
#{fileName,jdbcType=VARCHAR}, #{fileFormat,jdbcType=VARCHAR}, #{numberOfPages,jdbcType=INTEGER},
|
||||
#{watermark,jdbcType=BIT}, #{advertising,jdbcType=BIT}, #{bookOrigin,jdbcType=TINYINT},
|
||||
#{thumbnail,jdbcType=VARCHAR}, #{fileCreateAt,jdbcType=TIMESTAMP}, #{fileModifiedAt,jdbcType=TIMESTAMP},
|
||||
#{fileSize,jdbcType=INTEGER}, #{hashMd5,jdbcType=VARCHAR}, #{hashSha1,jdbcType=VARCHAR},
|
||||
#{hashSha256,jdbcType=VARCHAR})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="plus.bookshelf.Dao.DO.FileDO">
|
||||
<!--
|
||||
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.
|
||||
-->
|
||||
insert into file_info
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="bookId != null">
|
||||
book_id,
|
||||
</if>
|
||||
<if test="fileDisplayName != null">
|
||||
file_display_name,
|
||||
</if>
|
||||
<if test="fileName != null">
|
||||
file_name,
|
||||
</if>
|
||||
<if test="fileFormat != null">
|
||||
file_format,
|
||||
</if>
|
||||
<if test="numberOfPages != null">
|
||||
number_of_pages,
|
||||
</if>
|
||||
<if test="watermark != null">
|
||||
watermark,
|
||||
</if>
|
||||
<if test="advertising != null">
|
||||
advertising,
|
||||
</if>
|
||||
<if test="bookOrigin != null">
|
||||
book_origin,
|
||||
</if>
|
||||
<if test="thumbnail != null">
|
||||
thumbnail,
|
||||
</if>
|
||||
<if test="fileCreateAt != null">
|
||||
file_create_at,
|
||||
</if>
|
||||
<if test="fileModifiedAt != null">
|
||||
file_modified_at,
|
||||
</if>
|
||||
<if test="fileSize != null">
|
||||
file_size,
|
||||
</if>
|
||||
<if test="hashMd5 != null">
|
||||
hash_md5,
|
||||
</if>
|
||||
<if test="hashSha1 != null">
|
||||
hash_sha1,
|
||||
</if>
|
||||
<if test="hashSha256 != null">
|
||||
hash_sha256,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
#{id,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="bookId != null">
|
||||
#{bookId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="fileDisplayName != null">
|
||||
#{fileDisplayName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fileName != null">
|
||||
#{fileName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fileFormat != null">
|
||||
#{fileFormat,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="numberOfPages != null">
|
||||
#{numberOfPages,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="watermark != null">
|
||||
#{watermark,jdbcType=BIT},
|
||||
</if>
|
||||
<if test="advertising != null">
|
||||
#{advertising,jdbcType=BIT},
|
||||
</if>
|
||||
<if test="bookOrigin != null">
|
||||
#{bookOrigin,jdbcType=TINYINT},
|
||||
</if>
|
||||
<if test="thumbnail != null">
|
||||
#{thumbnail,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fileCreateAt != null">
|
||||
#{fileCreateAt,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="fileModifiedAt != null">
|
||||
#{fileModifiedAt,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="fileSize != null">
|
||||
#{fileSize,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="hashMd5 != null">
|
||||
#{hashMd5,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="hashSha1 != null">
|
||||
#{hashSha1,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="hashSha256 != null">
|
||||
#{hashSha256,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="plus.bookshelf.Dao.DO.FileDO">
|
||||
<!--
|
||||
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.
|
||||
-->
|
||||
update file_info
|
||||
<set>
|
||||
<if test="fileDisplayName != null">
|
||||
file_display_name = #{fileDisplayName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fileName != null">
|
||||
file_name = #{fileName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fileFormat != null">
|
||||
file_format = #{fileFormat,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="numberOfPages != null">
|
||||
number_of_pages = #{numberOfPages,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="watermark != null">
|
||||
watermark = #{watermark,jdbcType=BIT},
|
||||
</if>
|
||||
<if test="advertising != null">
|
||||
advertising = #{advertising,jdbcType=BIT},
|
||||
</if>
|
||||
<if test="bookOrigin != null">
|
||||
book_origin = #{bookOrigin,jdbcType=TINYINT},
|
||||
</if>
|
||||
<if test="thumbnail != null">
|
||||
thumbnail = #{thumbnail,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fileCreateAt != null">
|
||||
file_create_at = #{fileCreateAt,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="fileModifiedAt != null">
|
||||
file_modified_at = #{fileModifiedAt,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="fileSize != null">
|
||||
file_size = #{fileSize,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="hashMd5 != null">
|
||||
hash_md5 = #{hashMd5,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="hashSha1 != null">
|
||||
hash_sha1 = #{hashSha1,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="hashSha256 != null">
|
||||
hash_sha256 = #{hashSha256,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
and book_id = #{bookId,jdbcType=INTEGER}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="plus.bookshelf.Dao.DO.FileDO">
|
||||
<!--
|
||||
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.
|
||||
-->
|
||||
update file_info
|
||||
set file_display_name = #{fileDisplayName,jdbcType=VARCHAR},
|
||||
file_name = #{fileName,jdbcType=VARCHAR},
|
||||
file_format = #{fileFormat,jdbcType=VARCHAR},
|
||||
number_of_pages = #{numberOfPages,jdbcType=INTEGER},
|
||||
watermark = #{watermark,jdbcType=BIT},
|
||||
advertising = #{advertising,jdbcType=BIT},
|
||||
book_origin = #{bookOrigin,jdbcType=TINYINT},
|
||||
thumbnail = #{thumbnail,jdbcType=VARCHAR},
|
||||
file_create_at = #{fileCreateAt,jdbcType=TIMESTAMP},
|
||||
file_modified_at = #{fileModifiedAt,jdbcType=TIMESTAMP},
|
||||
file_size = #{fileSize,jdbcType=INTEGER},
|
||||
hash_md5 = #{hashMd5,jdbcType=VARCHAR},
|
||||
hash_sha1 = #{hashSha1,jdbcType=VARCHAR},
|
||||
hash_sha256 = #{hashSha256,jdbcType=VARCHAR}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
and book_id = #{bookId,jdbcType=INTEGER}
|
||||
</update>
|
||||
</mapper>
|
157
bookshelfplus/src/main/resources/mapping/FileObjectDOMapper.xml
Normal file
157
bookshelfplus/src/main/resources/mapping/FileObjectDOMapper.xml
Normal file
@@ -0,0 +1,157 @@
|
||||
<?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="plus.bookshelf.Dao.Mapper.FileObjectDOMapper">
|
||||
<resultMap id="BaseResultMap" type="plus.bookshelf.Dao.DO.FileObjectDO">
|
||||
<!--
|
||||
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.
|
||||
-->
|
||||
<id column="id" jdbcType="INTEGER" property="id" />
|
||||
<result column="fileId" jdbcType="INTEGER" property="fileid" />
|
||||
<result column="storage_medium_type" jdbcType="TINYINT" property="storageMediumType" />
|
||||
<result column="file_path" jdbcType="VARCHAR" property="filePath" />
|
||||
<result column="file_pwd" jdbcType="VARCHAR" property="filePwd" />
|
||||
<result column="file_share_code" jdbcType="VARCHAR" property="fileShareCode" />
|
||||
<result column="additional_fields" jdbcType="CHAR" property="additionalFields" />
|
||||
</resultMap>
|
||||
<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 Mar 12 18:53:08 SGT 2022.
|
||||
-->
|
||||
id, fileId, storage_medium_type, file_path, file_pwd, file_share_code, additional_fields
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
||||
<!--
|
||||
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.
|
||||
-->
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from file_object_info
|
||||
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 Mar 12 18:53:08 SGT 2022.
|
||||
-->
|
||||
delete from file_object_info
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</delete>
|
||||
<insert id="insert" parameterType="plus.bookshelf.Dao.DO.FileObjectDO">
|
||||
<!--
|
||||
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.
|
||||
-->
|
||||
insert into file_object_info (id, fileId, storage_medium_type,
|
||||
file_path, file_pwd, file_share_code,
|
||||
additional_fields)
|
||||
values (#{id,jdbcType=INTEGER}, #{fileid,jdbcType=INTEGER}, #{storageMediumType,jdbcType=TINYINT},
|
||||
#{filePath,jdbcType=VARCHAR}, #{filePwd,jdbcType=VARCHAR}, #{fileShareCode,jdbcType=VARCHAR},
|
||||
#{additionalFields,jdbcType=CHAR})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="plus.bookshelf.Dao.DO.FileObjectDO">
|
||||
<!--
|
||||
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.
|
||||
-->
|
||||
insert into file_object_info
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="fileid != null">
|
||||
fileId,
|
||||
</if>
|
||||
<if test="storageMediumType != null">
|
||||
storage_medium_type,
|
||||
</if>
|
||||
<if test="filePath != null">
|
||||
file_path,
|
||||
</if>
|
||||
<if test="filePwd != null">
|
||||
file_pwd,
|
||||
</if>
|
||||
<if test="fileShareCode != null">
|
||||
file_share_code,
|
||||
</if>
|
||||
<if test="additionalFields != null">
|
||||
additional_fields,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
#{id,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="fileid != null">
|
||||
#{fileid,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="storageMediumType != null">
|
||||
#{storageMediumType,jdbcType=TINYINT},
|
||||
</if>
|
||||
<if test="filePath != null">
|
||||
#{filePath,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="filePwd != null">
|
||||
#{filePwd,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fileShareCode != null">
|
||||
#{fileShareCode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="additionalFields != null">
|
||||
#{additionalFields,jdbcType=CHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="plus.bookshelf.Dao.DO.FileObjectDO">
|
||||
<!--
|
||||
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.
|
||||
-->
|
||||
update file_object_info
|
||||
<set>
|
||||
<if test="fileid != null">
|
||||
fileId = #{fileid,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="storageMediumType != null">
|
||||
storage_medium_type = #{storageMediumType,jdbcType=TINYINT},
|
||||
</if>
|
||||
<if test="filePath != null">
|
||||
file_path = #{filePath,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="filePwd != null">
|
||||
file_pwd = #{filePwd,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fileShareCode != null">
|
||||
file_share_code = #{fileShareCode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="additionalFields != null">
|
||||
additional_fields = #{additionalFields,jdbcType=CHAR},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="plus.bookshelf.Dao.DO.FileObjectDO">
|
||||
<!--
|
||||
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.
|
||||
-->
|
||||
update file_object_info
|
||||
set fileId = #{fileid,jdbcType=INTEGER},
|
||||
storage_medium_type = #{storageMediumType,jdbcType=TINYINT},
|
||||
file_path = #{filePath,jdbcType=VARCHAR},
|
||||
file_pwd = #{filePwd,jdbcType=VARCHAR},
|
||||
file_share_code = #{fileShareCode,jdbcType=VARCHAR},
|
||||
additional_fields = #{additionalFields,jdbcType=CHAR}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
</mapper>
|
@@ -0,0 +1,98 @@
|
||||
<?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="plus.bookshelf.Dao.Mapper.PublishingHouseDOMapper">
|
||||
<resultMap id="BaseResultMap" type="plus.bookshelf.Dao.DO.PublishingHouseDO">
|
||||
<!--
|
||||
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.
|
||||
-->
|
||||
<id column="id" jdbcType="INTEGER" property="id" />
|
||||
<result column="name" jdbcType="VARCHAR" property="name" />
|
||||
</resultMap>
|
||||
<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 Mar 12 18:53:08 SGT 2022.
|
||||
-->
|
||||
id, name
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
||||
<!--
|
||||
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.
|
||||
-->
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from book_publishing_house_info
|
||||
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 Mar 12 18:53:08 SGT 2022.
|
||||
-->
|
||||
delete from book_publishing_house_info
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</delete>
|
||||
<insert id="insert" parameterType="plus.bookshelf.Dao.DO.PublishingHouseDO">
|
||||
<!--
|
||||
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.
|
||||
-->
|
||||
insert into book_publishing_house_info (id, name)
|
||||
values (#{id,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="plus.bookshelf.Dao.DO.PublishingHouseDO">
|
||||
<!--
|
||||
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.
|
||||
-->
|
||||
insert into book_publishing_house_info
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="name != null">
|
||||
name,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
#{id,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="name != null">
|
||||
#{name,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="plus.bookshelf.Dao.DO.PublishingHouseDO">
|
||||
<!--
|
||||
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.
|
||||
-->
|
||||
update book_publishing_house_info
|
||||
<set>
|
||||
<if test="name != null">
|
||||
name = #{name,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="plus.bookshelf.Dao.DO.PublishingHouseDO">
|
||||
<!--
|
||||
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.
|
||||
-->
|
||||
update book_publishing_house_info
|
||||
set name = #{name,jdbcType=VARCHAR}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
</mapper>
|
@@ -0,0 +1,98 @@
|
||||
<?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="plus.bookshelf.Dao.Mapper.ThumbnailDOMapper">
|
||||
<resultMap id="BaseResultMap" type="plus.bookshelf.Dao.DO.ThumbnailDO">
|
||||
<!--
|
||||
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.
|
||||
-->
|
||||
<id column="id" jdbcType="INTEGER" property="id" />
|
||||
<result column="path" jdbcType="VARCHAR" property="path" />
|
||||
</resultMap>
|
||||
<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 Mar 12 18:53:08 SGT 2022.
|
||||
-->
|
||||
id, path
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
||||
<!--
|
||||
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.
|
||||
-->
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from book_thumbnail_info
|
||||
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 Mar 12 18:53:08 SGT 2022.
|
||||
-->
|
||||
delete from book_thumbnail_info
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</delete>
|
||||
<insert id="insert" parameterType="plus.bookshelf.Dao.DO.ThumbnailDO">
|
||||
<!--
|
||||
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.
|
||||
-->
|
||||
insert into book_thumbnail_info (id, path)
|
||||
values (#{id,jdbcType=INTEGER}, #{path,jdbcType=VARCHAR})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="plus.bookshelf.Dao.DO.ThumbnailDO">
|
||||
<!--
|
||||
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.
|
||||
-->
|
||||
insert into book_thumbnail_info
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="path != null">
|
||||
path,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
#{id,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="path != null">
|
||||
#{path,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="plus.bookshelf.Dao.DO.ThumbnailDO">
|
||||
<!--
|
||||
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.
|
||||
-->
|
||||
update book_thumbnail_info
|
||||
<set>
|
||||
<if test="path != null">
|
||||
path = #{path,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="plus.bookshelf.Dao.DO.ThumbnailDO">
|
||||
<!--
|
||||
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.
|
||||
-->
|
||||
update book_thumbnail_info
|
||||
set path = #{path,jdbcType=VARCHAR}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
</mapper>
|
@@ -41,11 +41,26 @@
|
||||
<!--selectByExampleQueryId="false"-->
|
||||
|
||||
<!-- 生成对应表及其类名 -->
|
||||
<table tableName="book_author_info" domainObjectName="AuthorDO" enableCountByExample="false"
|
||||
enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false"
|
||||
selectByExampleQueryId="false"></table>
|
||||
<table tableName="book_publishing_house_info" domainObjectName="PublishingHouseDO" enableCountByExample="false"
|
||||
enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false"
|
||||
selectByExampleQueryId="false"></table>
|
||||
<!--<table tableName="book_author_info" domainObjectName="AuthorDO" enableCountByExample="false"-->
|
||||
<!-- enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false"-->
|
||||
<!-- selectByExampleQueryId="false"></table>-->
|
||||
<!--<table tableName="book_info" domainObjectName="BookDO" enableCountByExample="false"-->
|
||||
<!-- enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false"-->
|
||||
<!-- selectByExampleQueryId="false"></table>-->
|
||||
<!--<table tableName="book_publishing_house_info" domainObjectName="PublishingHouseDO" enableCountByExample="false"-->
|
||||
<!-- enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false"-->
|
||||
<!-- selectByExampleQueryId="false"></table>-->
|
||||
<!--<table tableName="book_thumbnail_info" domainObjectName="ThumbnailDO" enableCountByExample="false"-->
|
||||
<!-- enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false"-->
|
||||
<!-- selectByExampleQueryId="false"></table>-->
|
||||
<!--<table tableName="category_info" domainObjectName="CategoryDO" enableCountByExample="false"-->
|
||||
<!-- enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false"-->
|
||||
<!-- selectByExampleQueryId="false"></table>-->
|
||||
<!--<table tableName="file_info" domainObjectName="FileDO" enableCountByExample="false"-->
|
||||
<!-- enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false"-->
|
||||
<!-- selectByExampleQueryId="false"></table>-->
|
||||
<!--<table tableName="file_object_info" domainObjectName="FileObjectDO" enableCountByExample="false"-->
|
||||
<!-- enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false"-->
|
||||
<!-- selectByExampleQueryId="false"></table>-->
|
||||
</context>
|
||||
</generatorConfiguration>
|
Reference in New Issue
Block a user