123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152 |
- <?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.bz.smart_city.dao.assistant.InstallLogMapper">
- <resultMap id="BaseResultMap" type="com.bz.smart_city.entity.assistant.InstallLog">
- <!--@mbg.generated-->
- <id column="id" property="id" />
- <result column="device_id" property="deviceId" />
- <result column="action" property="action" />
- <result column="action_desc" property="actionDesc" />
- <result column="action_time" property="actionTime" />
- <result column="action_user" property="actionUser" />
- <result column="status" property="status" />
- <result column="date_create" property="dateCreate" />
- <result column="date_update" property="dateUpdate" />
- <result column="create_by" property="createBy" />
- <result column="update_by" property="updateBy" />
- <result column="remark" property="remark" />
- </resultMap>
- <sql id="Base_Column_List">
- <!--@mbg.generated-->
- id, device_id, `action`, action_desc, action_time, action_user, `status`, date_create,
- date_update, create_by, update_by, remark
- </sql>
- <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
- <!--@mbg.generated-->
- select
- <include refid="Base_Column_List" />
- from sc_install_log
- where id = #{id}
- </select>
- <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.bz.smart_city.entity.assistant.InstallLog" useGeneratedKeys="true">
- <!--@mbg.generated-->
- insert into sc_install_log (device_id, `action`, action_desc, action_time, action_user, `status`,
- date_create, date_update, create_by, update_by, remark)
- values (#{deviceId}, #{action}, #{actionDesc}, #{actionTime}, #{actionUser}, #{status},
- #{dateCreate}, #{dateUpdate}, #{createBy}, #{updateBy}, #{remark})
- </insert>
- <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.bz.smart_city.entity.assistant.InstallLog" useGeneratedKeys="true">
- <!--@mbg.generated-->
- insert into sc_install_log
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="deviceId != null">
- device_id,
- </if>
- <if test="action != null">
- `action`,
- </if>
- <if test="actionDesc != null">
- action_desc,
- </if>
- <if test="actionTime != null">
- action_time,
- </if>
- <if test="actionUser != null">
- action_user,
- </if>
- <if test="status != null">
- `status`,
- </if>
- <if test="dateCreate != null">
- date_create,
- </if>
- <if test="dateUpdate != null">
- date_update,
- </if>
- <if test="createBy != null">
- create_by,
- </if>
- <if test="updateBy != null">
- update_by,
- </if>
- <if test="remark != null">
- remark,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="deviceId != null">
- #{deviceId},
- </if>
- <if test="action != null">
- #{action},
- </if>
- <if test="actionDesc != null">
- #{actionDesc},
- </if>
- <if test="actionTime != null">
- #{actionTime},
- </if>
- <if test="actionUser != null">
- #{actionUser},
- </if>
- <if test="status != null">
- #{status},
- </if>
- <if test="dateCreate != null">
- #{dateCreate},
- </if>
- <if test="dateUpdate != null">
- #{dateUpdate},
- </if>
- <if test="createBy != null">
- #{createBy},
- </if>
- <if test="updateBy != null">
- #{updateBy},
- </if>
- <if test="remark != null">
- #{remark},
- </if>
- </trim>
- </insert>
- <update id="updateByPrimaryKeySelective" parameterType="com.bz.smart_city.entity.assistant.InstallLog">
- <!--@mbg.generated-->
- update sc_install_log
- <set>
- <if test="deviceId != null">
- device_id = #{deviceId},
- </if>
- <if test="action != null">
- `action` = #{action},
- </if>
- <if test="actionDesc != null">
- action_desc = #{actionDesc},
- </if>
- <if test="actionTime != null">
- action_time = #{actionTime},
- </if>
- <if test="actionUser != null">
- action_user = #{actionUser},
- </if>
- <if test="status != null">
- `status` = #{status},
- </if>
- <if test="dateCreate != null">
- date_create = #{dateCreate},
- </if>
- <if test="dateUpdate != null">
- date_update = #{dateUpdate},
- </if>
- <if test="createBy != null">
- create_by = #{createBy},
- </if>
- <if test="updateBy != null">
- update_by = #{updateBy},
- </if>
- <if test="remark != null">
- remark = #{remark},
- </if>
- </set>
- where id = #{id}
- </update>
- </mapper>
|