Files
zfile/src/main/resources/mapper/DownloadLogMapper.xml
2023-05-27 16:25:53 +08:00

25 lines
1.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="im.zhaojun.zfile.module.log.mapper.DownloadLogMapper">
<resultMap id="BaseResultMap" type="im.zhaojun.zfile.module.log.model.entity.DownloadLog">
<!--@mbg.generated-->
<!--@Table `download_log`-->
<id column="id" jdbcType="INTEGER" property="id" />
<result column="path" jdbcType="LONGVARCHAR" property="path" />
<result column="short_key" jdbcType="VARCHAR" property="shortKey"/>
<result column="storage_key" jdbcType="VARCHAR" property="storageKey" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="ip" jdbcType="VARCHAR" property="ip" />
<result column="user_agent" jdbcType="VARCHAR" property="userAgent" />
<result column="referer" jdbcType="VARCHAR" property="referer" />
<result column="download_type" jdbcType="VARCHAR" property="downloadType" />
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
`id`, `path`, `storage_key`, `create_time`, `ip`, `user_agent`, `referer`, `short_key`, `download_type`
</sql>
<delete id="deleteByStorageKey">
delete from download_log where storage_key = #{storageKey}
</delete>
</mapper>