mirror of
https://gitee.com/bookshelfplus/bookshelfplus
synced 2025-09-19 00:10:39 +08:00
创建预授权URL后端日志记录
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<?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.FileOperationDOMapper">
|
||||
<resultMap id="BaseResultMap" type="plus.bookshelf.Dao.DO.FileOperationDO">
|
||||
<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.
|
||||
@@ -9,7 +9,7 @@
|
||||
<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="VARCHAR" property="expireMinute" />
|
||||
<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" />
|
||||
@@ -28,7 +28,7 @@
|
||||
-->
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from file_operation_log
|
||||
from cos_presigned_url_generate_log
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
||||
@@ -36,27 +36,27 @@
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
-->
|
||||
delete from file_operation_log
|
||||
delete from cos_presigned_url_generate_log
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</delete>
|
||||
<insert id="insert" parameterType="plus.bookshelf.Dao.DO.FileOperationDO">
|
||||
<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 file_operation_log (id, user_id, `time`,
|
||||
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=VARCHAR}, #{method,jdbcType=VARCHAR}, #{filePath,jdbcType=VARCHAR},
|
||||
#{expireMinute,jdbcType=INTEGER}, #{method,jdbcType=VARCHAR}, #{filePath,jdbcType=VARCHAR},
|
||||
#{urlGuid,jdbcType=VARCHAR})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="plus.bookshelf.Dao.DO.FileOperationDO">
|
||||
<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 file_operation_log
|
||||
insert into cos_presigned_url_generate_log
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
id,
|
||||
@@ -91,7 +91,7 @@
|
||||
#{time,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="expireMinute != null">
|
||||
#{expireMinute,jdbcType=VARCHAR},
|
||||
#{expireMinute,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="method != null">
|
||||
#{method,jdbcType=VARCHAR},
|
||||
@@ -104,12 +104,12 @@
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="plus.bookshelf.Dao.DO.FileOperationDO">
|
||||
<update id="updateByPrimaryKeySelective" parameterType="plus.bookshelf.Dao.DO.CosPresignedUrlGenerateLogDO">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
-->
|
||||
update file_operation_log
|
||||
update cos_presigned_url_generate_log
|
||||
<set>
|
||||
<if test="userId != null">
|
||||
user_id = #{userId,jdbcType=INTEGER},
|
||||
@@ -118,7 +118,7 @@
|
||||
`time` = #{time,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="expireMinute != null">
|
||||
expire_minute = #{expireMinute,jdbcType=VARCHAR},
|
||||
expire_minute = #{expireMinute,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="method != null">
|
||||
`method` = #{method,jdbcType=VARCHAR},
|
||||
@@ -132,15 +132,15 @@
|
||||
</set>
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="plus.bookshelf.Dao.DO.FileOperationDO">
|
||||
<update id="updateByPrimaryKey" parameterType="plus.bookshelf.Dao.DO.CosPresignedUrlGenerateLogDO">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
-->
|
||||
update file_operation_log
|
||||
update cos_presigned_url_generate_log
|
||||
set user_id = #{userId,jdbcType=INTEGER},
|
||||
`time` = #{time,jdbcType=TIMESTAMP},
|
||||
expire_minute = #{expireMinute,jdbcType=VARCHAR},
|
||||
expire_minute = #{expireMinute,jdbcType=INTEGER},
|
||||
`method` = #{method,jdbcType=VARCHAR},
|
||||
file_path = #{filePath,jdbcType=VARCHAR},
|
||||
url_guid = #{urlGuid,jdbcType=VARCHAR}
|
@@ -97,7 +97,7 @@
|
||||
<!--<table tableName="user_book_favorites_relation" domainObjectName="UserFavoritesDO" enableCountByExample="false"-->
|
||||
<!-- enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false"-->
|
||||
<!-- selectByExampleQueryId="false"></table>-->
|
||||
<!--<table tableName="file_operation_log" domainObjectName="FileOperationDO" enableCountByExample="false"-->
|
||||
<!--<table tableName="cos_presigned_url_generate_log" domainObjectName="CosPresignedUrlGenerateLogDO" enableCountByExample="false"-->
|
||||
<!-- enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false"-->
|
||||
<!-- selectByExampleQueryId="false"></table>-->
|
||||
</context>
|
||||
|
Reference in New Issue
Block a user