<?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.lightinit.hsdataplatform.mapper.QueueserverMapper" >
  <resultMap id="BaseResultMap" type="com.lightinit.hsdataplatform.entity.Queueserver" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    <id column="serverid" property="serverid" jdbcType="BIGINT" />
    <result column="servername" property="servername" jdbcType="VARCHAR" />
    <result column="servercode" property="servercode" jdbcType="VARCHAR" />
    <result column="serverip" property="serverip" jdbcType="VARCHAR" />
    <result column="port" property="port" jdbcType="INTEGER" />
    <result column="broker" property="broker" jdbcType="VARCHAR" />
    <result column="userproperties" property="userproperties" jdbcType="VARCHAR" />
    <result column="addtime" property="addtime" jdbcType="TIMESTAMP" />
  </resultMap>
  <sql id="Base_Column_List" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    serverid, servername, servercode, serverip, port, broker, userproperties, addtime
  </sql>
  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    select 
    <include refid="Base_Column_List" />
    from queueserver
    where serverid = #{serverid,jdbcType=BIGINT}
  </select>
  <select id="selectServer" resultMap="BaseResultMap">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    select
    <include refid="Base_Column_List" />
    from queueserver
    <if test="whereClause != null">
      where ${whereClause}
    </if>
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Long" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    delete from queueserver
    where serverid = #{serverid,jdbcType=BIGINT}
  </delete>
  <insert id="insert" parameterType="com.lightinit.hsdataplatform.entity.Queueserver" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    insert into queueserver (serverid, servername, servercode,
    serverip, port, broker,
    userproperties, addtime)
    values (#{serverid,jdbcType=BIGINT}, #{servername,jdbcType=VARCHAR}, #{servercode,jdbcType=VARCHAR},
    #{serverip,jdbcType=VARCHAR}, #{port,jdbcType=INTEGER}, #{broker,jdbcType=VARCHAR},
    #{userproperties,jdbcType=VARCHAR}, #{addtime,jdbcType=TIMESTAMP})
  </insert>
  <insert id="insertSelective" parameterType="com.lightinit.hsdataplatform.entity.Queueserver" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    insert into queueserver
    <trim prefix="(" suffix=")" suffixOverrides="," >
      <if test="serverid != null" >
        serverid,
      </if>
      <if test="servername != null" >
        servername,
      </if>
      <if test="servercode != null" >
        servercode,
      </if>
      <if test="serverip != null" >
        serverip,
      </if>
      <if test="port != null" >
        port,
      </if>
      <if test="broker != null" >
        broker,
      </if>
      <if test="userproperties != null" >
        userproperties,
      </if>
      <if test="addtime != null" >
        addtime,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides="," >
      <if test="serverid != null" >
        #{serverid,jdbcType=BIGINT},
      </if>
      <if test="servername != null" >
        #{servername,jdbcType=VARCHAR},
      </if>
      <if test="servercode != null" >
        #{servercode,jdbcType=VARCHAR},
      </if>
      <if test="serverip != null" >
        #{serverip,jdbcType=VARCHAR},
      </if>
      <if test="port != null" >
        #{port,jdbcType=INTEGER},
      </if>
      <if test="broker != null" >
        #{broker,jdbcType=VARCHAR},
      </if>
      <if test="userproperties != null" >
        #{userproperties,jdbcType=VARCHAR},
      </if>
      <if test="addtime != null" >
        #{addtime,jdbcType=TIMESTAMP},
      </if>
    </trim>
  </insert>
  <update id="updateByPrimaryKeySelective" parameterType="com.lightinit.hsdataplatform.entity.Queueserver" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update queueserver
    <set >
      <if test="servername != null" >
        servername = #{servername,jdbcType=VARCHAR},
      </if>
      <if test="servercode != null" >
        servercode = #{servercode,jdbcType=VARCHAR},
      </if>
      <if test="serverip != null" >
        serverip = #{serverip,jdbcType=VARCHAR},
      </if>
      <if test="port != null" >
        port = #{port,jdbcType=INTEGER},
      </if>
      <if test="broker != null" >
        broker = #{broker,jdbcType=VARCHAR},
      </if>
      <if test="userproperties != null" >
        userproperties = #{userproperties,jdbcType=VARCHAR},
      </if>
      <if test="addtime != null" >
        addtime = #{addtime,jdbcType=TIMESTAMP},
      </if>
    </set>
    where serverid = #{serverid,jdbcType=BIGINT}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.lightinit.hsdataplatform.entity.Queueserver" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update queueserver
    set servername = #{servername,jdbcType=VARCHAR},
    servercode = #{servercode,jdbcType=VARCHAR},
    serverip = #{serverip,jdbcType=VARCHAR},
    port = #{port,jdbcType=INTEGER},
    broker = #{broker,jdbcType=VARCHAR},
    userproperties = #{userproperties,jdbcType=VARCHAR},
    addtime = #{addtime,jdbcType=TIMESTAMP}
    where serverid = #{serverid,jdbcType=BIGINT}
  </update>
</mapper>