| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178 |
- <?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.middle.platform.manage.biz.mapper.IotUrlMapper">
- <resultMap id="BaseResultMap" type="com.middle.platform.manage.biz.domain.IotUrl">
- <!--@mbg.generated-->
- <!--@Table iot_url-->
- <id column="id" jdbcType="INTEGER" property="id" />
- <result column="product_id" jdbcType="INTEGER" property="productId" />
- <result column="url" jdbcType="VARCHAR" property="url" />
- <result column="type" jdbcType="TINYINT" property="type" />
- <result column="permission" jdbcType="TINYINT" property="permission" />
- <result column="remark" jdbcType="VARCHAR" property="remark" />
- <result column="create_by" jdbcType="INTEGER" property="createBy" />
- <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
- <result column="update_by" jdbcType="INTEGER" property="updateBy" />
- <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
- <result column="delete_time" jdbcType="TIMESTAMP" property="deleteTime" />
- <result column="del_flag" jdbcType="TINYINT" property="delFlag" />
- </resultMap>
- <sql id="Base_Column_List">
- <!--@mbg.generated-->
- id, product_id, url, `type`, permission, remark, create_by, create_time, update_by,
- update_time, delete_time, del_flag
- </sql>
- <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
- <!--@mbg.generated-->
- select
- <include refid="Base_Column_List" />
- from iot_url
- where id = #{id,jdbcType=INTEGER}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
- <!--@mbg.generated-->
- delete from iot_url
- where id = #{id,jdbcType=INTEGER}
- </delete>
- <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.middle.platform.manage.biz.domain.IotUrl" useGeneratedKeys="true">
- <!--@mbg.generated-->
- insert into iot_url (product_id, url, `type`,
- permission, remark, create_by,
- create_time, update_by, update_time,
- delete_time, del_flag)
- values (#{productId,jdbcType=INTEGER}, #{url,jdbcType=VARCHAR}, #{type,jdbcType=TINYINT},
- #{permission,jdbcType=TINYINT}, #{remark,jdbcType=VARCHAR}, #{createBy,jdbcType=INTEGER},
- #{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=INTEGER}, #{updateTime,jdbcType=TIMESTAMP},
- #{deleteTime,jdbcType=TIMESTAMP}, #{delFlag,jdbcType=TINYINT})
- </insert>
- <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.middle.platform.manage.biz.domain.IotUrl" useGeneratedKeys="true">
- <!--@mbg.generated-->
- insert into iot_url
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="productId != null">
- product_id,
- </if>
- <if test="url != null">
- url,
- </if>
- <if test="type != null">
- `type`,
- </if>
- <if test="permission != null">
- permission,
- </if>
- <if test="remark != null">
- remark,
- </if>
- <if test="createBy != null">
- create_by,
- </if>
- <if test="createTime != null">
- create_time,
- </if>
- <if test="updateBy != null">
- update_by,
- </if>
- <if test="updateTime != null">
- update_time,
- </if>
- <if test="deleteTime != null">
- delete_time,
- </if>
- <if test="delFlag != null">
- del_flag,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="productId != null">
- #{productId,jdbcType=INTEGER},
- </if>
- <if test="url != null">
- #{url,jdbcType=VARCHAR},
- </if>
- <if test="type != null">
- #{type,jdbcType=TINYINT},
- </if>
- <if test="permission != null">
- #{permission,jdbcType=TINYINT},
- </if>
- <if test="remark != null">
- #{remark,jdbcType=VARCHAR},
- </if>
- <if test="createBy != null">
- #{createBy,jdbcType=INTEGER},
- </if>
- <if test="createTime != null">
- #{createTime,jdbcType=TIMESTAMP},
- </if>
- <if test="updateBy != null">
- #{updateBy,jdbcType=INTEGER},
- </if>
- <if test="updateTime != null">
- #{updateTime,jdbcType=TIMESTAMP},
- </if>
- <if test="deleteTime != null">
- #{deleteTime,jdbcType=TIMESTAMP},
- </if>
- <if test="delFlag != null">
- #{delFlag,jdbcType=TINYINT},
- </if>
- </trim>
- </insert>
- <update id="updateByPrimaryKeySelective" parameterType="com.middle.platform.manage.biz.domain.IotUrl">
- <!--@mbg.generated-->
- update iot_url
- <set>
- <if test="productId != null">
- product_id = #{productId,jdbcType=INTEGER},
- </if>
- <if test="url != null">
- url = #{url,jdbcType=VARCHAR},
- </if>
- <if test="type != null">
- `type` = #{type,jdbcType=TINYINT},
- </if>
- <if test="permission != null">
- permission = #{permission,jdbcType=TINYINT},
- </if>
- <if test="remark != null">
- remark = #{remark,jdbcType=VARCHAR},
- </if>
- <if test="createBy != null">
- create_by = #{createBy,jdbcType=INTEGER},
- </if>
- <if test="createTime != null">
- create_time = #{createTime,jdbcType=TIMESTAMP},
- </if>
- <if test="updateBy != null">
- update_by = #{updateBy,jdbcType=INTEGER},
- </if>
- <if test="updateTime != null">
- update_time = #{updateTime,jdbcType=TIMESTAMP},
- </if>
- <if test="deleteTime != null">
- delete_time = #{deleteTime,jdbcType=TIMESTAMP},
- </if>
- <if test="delFlag != null">
- del_flag = #{delFlag,jdbcType=TINYINT},
- </if>
- </set>
- where id = #{id,jdbcType=INTEGER}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.middle.platform.manage.biz.domain.IotUrl">
- <!--@mbg.generated-->
- update iot_url
- set product_id = #{productId,jdbcType=INTEGER},
- url = #{url,jdbcType=VARCHAR},
- `type` = #{type,jdbcType=TINYINT},
- permission = #{permission,jdbcType=TINYINT},
- remark = #{remark,jdbcType=VARCHAR},
- create_by = #{createBy,jdbcType=INTEGER},
- create_time = #{createTime,jdbcType=TIMESTAMP},
- update_by = #{updateBy,jdbcType=INTEGER},
- update_time = #{updateTime,jdbcType=TIMESTAMP},
- delete_time = #{deleteTime,jdbcType=TIMESTAMP},
- del_flag = #{delFlag,jdbcType=TINYINT}
- where id = #{id,jdbcType=INTEGER}
- </update>
- </mapper>
|