| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- <?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="com.fs.watch.mapper.WatchAudioMsgLogMapper">
- <resultMap id="BaseResultMap" type="com.fs.watch.domain.WatchAudioMsgLog">
- <result property="id" column="id" jdbcType="OTHER" typeHandler="com.fs.watch.handler.UUIDTypeHandler"/>
- <result property="deviceId" column="device_id" jdbcType="VARCHAR"/>
- <result property="fileUrl" column="file_url" jdbcType="VARCHAR"/>
- <result property="type" column="type" jdbcType="INTEGER"/>
- <result property="status" column="status" jdbcType="INTEGER"/>
- <result property="msg" column="msg" jdbcType="VARCHAR"/>
- <result property="createTime" column="create_time" jdbcType="VARCHAR"/>
- </resultMap>
- <sql id="Base_Column_List">
- id, device_id, file_url, `type`,`status`, msg, create_time
- </sql>
- <!-- 单条插入 -->
- <insert id="insert" parameterType="com.fs.watch.domain.WatchAudioMsgLog" useGeneratedKeys="false">
- INSERT INTO watch.watch_audio_msg_log
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="data.id != null">
- id,
- </if>
- <if test="data.deviceId != null">
- device_id,
- </if>
- <if test="data.fileUrl != null">
- file_url,
- </if>
- <if test="data.type != null">
- `type`,
- </if>
- <if test="data.status != null">
- `status`,
- </if>
- <if test="data.msg != null">
- msg,
- </if>
- <if test="data.createTime != null">
- create_time,
- </if>
- </trim>
- <trim prefix="VALUES (" suffix=")" suffixOverrides=",">
- <if test="data.id != null">
- #{data.id, typeHandler=com.fs.watch.handler.UUIDTypeHandler},
- </if>
- <if test="data.deviceId != null">
- #{data.deviceId},
- </if>
- <if test="data.fileUrl != null">
- #{data.fileUrl},
- </if>
- <if test="data.type != null">
- #{data.type},
- </if>
- <if test="data.status != null">
- #{data.status},
- </if>
- <if test="data.msg != null">
- #{data.msg},
- </if>
- <if test="data.createTime != null">
- #{data.createTime},
- </if>
- </trim>
- </insert>
- </mapper>
|