1
0
mirror of https://gitee.com/bookshelfplus/bookshelfplus synced 2025-09-21 01:10:39 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee
Files
bookshelfplus/bookshelfplus/src/main/resources/mapping/FileObjectDOMapper.xml

157 lines
5.9 KiB
XML

<?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>