mirror of
https://gitee.com/bookshelfplus/bookshelfplus
synced 2025-10-01 21:45:15 +08:00
149 lines
5.3 KiB
XML
149 lines
5.3 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.CosPresignedUrlGenerateLogDOMapper">
|
|
<resultMap id="BaseResultMap" type="plus.bookshelf.Dao.DO.CosPresignedUrlGenerateLogDO">
|
|
<!--
|
|
WARNING - @mbg.generated
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
-->
|
|
<id column="id" jdbcType="INTEGER" property="id" />
|
|
<result column="user_id" jdbcType="INTEGER" property="userId" />
|
|
<result column="time" jdbcType="TIMESTAMP" property="time" />
|
|
<result column="expire_minute" jdbcType="INTEGER" property="expireMinute" />
|
|
<result column="method" jdbcType="VARCHAR" property="method" />
|
|
<result column="file_path" jdbcType="VARCHAR" property="filePath" />
|
|
<result column="url_guid" jdbcType="VARCHAR" property="urlGuid" />
|
|
</resultMap>
|
|
<sql id="Base_Column_List">
|
|
<!--
|
|
WARNING - @mbg.generated
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
-->
|
|
id, user_id, `time`, expire_minute, `method`, file_path, url_guid
|
|
</sql>
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
|
<!--
|
|
WARNING - @mbg.generated
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
-->
|
|
select
|
|
<include refid="Base_Column_List" />
|
|
from cos_presigned_url_generate_log
|
|
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.
|
|
-->
|
|
delete from cos_presigned_url_generate_log
|
|
where id = #{id,jdbcType=INTEGER}
|
|
</delete>
|
|
<insert id="insert" parameterType="plus.bookshelf.Dao.DO.CosPresignedUrlGenerateLogDO">
|
|
<!--
|
|
WARNING - @mbg.generated
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
-->
|
|
insert into cos_presigned_url_generate_log (id, user_id, `time`,
|
|
expire_minute, `method`, file_path,
|
|
url_guid)
|
|
values (#{id,jdbcType=INTEGER}, #{userId,jdbcType=INTEGER}, #{time,jdbcType=TIMESTAMP},
|
|
#{expireMinute,jdbcType=INTEGER}, #{method,jdbcType=VARCHAR}, #{filePath,jdbcType=VARCHAR},
|
|
#{urlGuid,jdbcType=VARCHAR})
|
|
</insert>
|
|
<insert id="insertSelective" parameterType="plus.bookshelf.Dao.DO.CosPresignedUrlGenerateLogDO">
|
|
<!--
|
|
WARNING - @mbg.generated
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
-->
|
|
insert into cos_presigned_url_generate_log
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<if test="id != null">
|
|
id,
|
|
</if>
|
|
<if test="userId != null">
|
|
user_id,
|
|
</if>
|
|
<if test="time != null">
|
|
`time`,
|
|
</if>
|
|
<if test="expireMinute != null">
|
|
expire_minute,
|
|
</if>
|
|
<if test="method != null">
|
|
`method`,
|
|
</if>
|
|
<if test="filePath != null">
|
|
file_path,
|
|
</if>
|
|
<if test="urlGuid != null">
|
|
url_guid,
|
|
</if>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="id != null">
|
|
#{id,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="userId != null">
|
|
#{userId,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="time != null">
|
|
#{time,jdbcType=TIMESTAMP},
|
|
</if>
|
|
<if test="expireMinute != null">
|
|
#{expireMinute,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="method != null">
|
|
#{method,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="filePath != null">
|
|
#{filePath,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="urlGuid != null">
|
|
#{urlGuid,jdbcType=VARCHAR},
|
|
</if>
|
|
</trim>
|
|
</insert>
|
|
<update id="updateByPrimaryKeySelective" parameterType="plus.bookshelf.Dao.DO.CosPresignedUrlGenerateLogDO">
|
|
<!--
|
|
WARNING - @mbg.generated
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
-->
|
|
update cos_presigned_url_generate_log
|
|
<set>
|
|
<if test="userId != null">
|
|
user_id = #{userId,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="time != null">
|
|
`time` = #{time,jdbcType=TIMESTAMP},
|
|
</if>
|
|
<if test="expireMinute != null">
|
|
expire_minute = #{expireMinute,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="method != null">
|
|
`method` = #{method,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="filePath != null">
|
|
file_path = #{filePath,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="urlGuid != null">
|
|
url_guid = #{urlGuid,jdbcType=VARCHAR},
|
|
</if>
|
|
</set>
|
|
where id = #{id,jdbcType=INTEGER}
|
|
</update>
|
|
<update id="updateByPrimaryKey" parameterType="plus.bookshelf.Dao.DO.CosPresignedUrlGenerateLogDO">
|
|
<!--
|
|
WARNING - @mbg.generated
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
-->
|
|
update cos_presigned_url_generate_log
|
|
set user_id = #{userId,jdbcType=INTEGER},
|
|
`time` = #{time,jdbcType=TIMESTAMP},
|
|
expire_minute = #{expireMinute,jdbcType=INTEGER},
|
|
`method` = #{method,jdbcType=VARCHAR},
|
|
file_path = #{filePath,jdbcType=VARCHAR},
|
|
url_guid = #{urlGuid,jdbcType=VARCHAR}
|
|
where id = #{id,jdbcType=INTEGER}
|
|
</update>
|
|
</mapper> |