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

125 lines
4.4 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.VisitorFingerprintLogDOMapper">
<resultMap id="BaseResultMap" type="plus.bookshelf.Dao.DO.VisitorFingerprintLogDO">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<id column="id" jdbcType="INTEGER" property="id" />
<result column="visitor_id" jdbcType="VARCHAR" property="visitorId" />
<result column="user_id" jdbcType="INTEGER" property="userId" />
<result column="create_at" jdbcType="TIMESTAMP" property="createAt" />
<result column="action" jdbcType="VARCHAR" property="action" />
</resultMap>
<sql id="Base_Column_List">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
id, visitor_id, user_id, create_at, `action`
</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 visitor_fingerprint_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 visitor_fingerprint_log
where id = #{id,jdbcType=INTEGER}
</delete>
<insert id="insert" parameterType="plus.bookshelf.Dao.DO.VisitorFingerprintLogDO">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into visitor_fingerprint_log (id, visitor_id, user_id,
create_at, `action`)
values (#{id,jdbcType=INTEGER}, #{visitorId,jdbcType=VARCHAR}, #{userId,jdbcType=INTEGER},
#{createAt,jdbcType=TIMESTAMP}, #{action,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="plus.bookshelf.Dao.DO.VisitorFingerprintLogDO">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into visitor_fingerprint_log
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="visitorId != null">
visitor_id,
</if>
<if test="userId != null">
user_id,
</if>
<if test="createAt != null">
create_at,
</if>
<if test="action != null">
`action`,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=INTEGER},
</if>
<if test="visitorId != null">
#{visitorId,jdbcType=VARCHAR},
</if>
<if test="userId != null">
#{userId,jdbcType=INTEGER},
</if>
<if test="createAt != null">
#{createAt,jdbcType=TIMESTAMP},
</if>
<if test="action != null">
#{action,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="plus.bookshelf.Dao.DO.VisitorFingerprintLogDO">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update visitor_fingerprint_log
<set>
<if test="visitorId != null">
visitor_id = #{visitorId,jdbcType=VARCHAR},
</if>
<if test="userId != null">
user_id = #{userId,jdbcType=INTEGER},
</if>
<if test="createAt != null">
create_at = #{createAt,jdbcType=TIMESTAMP},
</if>
<if test="action != null">
`action` = #{action,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="plus.bookshelf.Dao.DO.VisitorFingerprintLogDO">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update visitor_fingerprint_log
set visitor_id = #{visitorId,jdbcType=VARCHAR},
user_id = #{userId,jdbcType=INTEGER},
create_at = #{createAt,jdbcType=TIMESTAMP},
`action` = #{action,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>