<?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.fuxi.ws.data.dao.WInterfaceoutMapper">
  <resultMap id="BaseResultMap" type="com.fuxi.ws.data.entity.WInterfaceout">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Sat Nov 21 16:43:00 CST 2015.
    -->
    <id column="SubSystem" jdbcType="VARCHAR" property="subsystem" />
    <result column="SubSystemName" jdbcType="NVARCHAR" property="subsystemname" />
    <result column="InterfaceSup" jdbcType="VARCHAR" property="interfacesup" />
    <result column="version" jdbcType="VARCHAR" property="version" />
    <result column="UrlSup" jdbcType="VARCHAR" property="urlsup" />
    <result column="NickSup" jdbcType="VARCHAR" property="nicksup" />
    <result column="KeySup" jdbcType="VARCHAR" property="keysup" />
    <result column="Password" jdbcType="VARCHAR" property="password" />
    <result column="Active" jdbcType="TINYINT" property="active" />
    <result column="UseSku" jdbcType="TINYINT" property="usesku" />
  </resultMap>
  <sql id="Example_Where_Clause">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Sat Nov 21 16:43:00 CST 2015.
    -->
    <where>
      <foreach collection="oredCriteria" item="criteria" separator="or">
        <if test="criteria.valid">
          <trim prefix="(" prefixOverrides="and" suffix=")">
            <foreach collection="criteria.criteria" item="criterion">
              <choose>
                <when test="criterion.noValue">
                  and ${criterion.condition}
                </when>
                <when test="criterion.singleValue">
                  and ${criterion.condition} #{criterion.value}
                </when>
                <when test="criterion.betweenValue">
                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
                </when>
                <when test="criterion.listValue">
                  and ${criterion.condition}
                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
                    #{listItem}
                  </foreach>
                </when>
              </choose>
            </foreach>
          </trim>
        </if>
      </foreach>
    </where>
  </sql>
  <sql id="Base_Column_List">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Sat Nov 21 16:43:00 CST 2015.
    -->
    SubSystem, SubSystemName, InterfaceSup, version, UrlSup, NickSup, KeySup, Password, 
    Active, UseSku
  </sql>
  <select id="selectByExample" parameterType="com.fuxi.ws.data.entity.WInterfaceoutExample" resultMap="BaseResultMap">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Sat Nov 21 16:43:00 CST 2015.
    -->
    select
    <if test="distinct">
      distinct
    </if>
    'false' as QUERYID,
    <include refid="Base_Column_List" />
    from W_InterfaceOut
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
    <if test="orderByClause != null">
      order by ${orderByClause}
    </if>
  </select>
  <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Sat Nov 21 16:43:00 CST 2015.
    -->
    select 
    <include refid="Base_Column_List" />
    from W_InterfaceOut
    where SubSystem = #{subsystem,jdbcType=VARCHAR}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Sat Nov 21 16:43:00 CST 2015.
    -->
    delete from W_InterfaceOut
    where SubSystem = #{subsystem,jdbcType=VARCHAR}
  </delete>
  <insert id="insert" parameterType="com.fuxi.ws.data.entity.WInterfaceout">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Sat Nov 21 16:43:00 CST 2015.
    -->
    insert into W_InterfaceOut (SubSystem, SubSystemName, InterfaceSup, 
      version, UrlSup, NickSup, 
      KeySup, Password, Active, 
      UseSku)
    values (#{subsystem,jdbcType=VARCHAR}, #{subsystemname,jdbcType=NVARCHAR}, #{interfacesup,jdbcType=VARCHAR}, 
      #{version,jdbcType=VARCHAR}, #{urlsup,jdbcType=VARCHAR}, #{nicksup,jdbcType=VARCHAR}, 
      #{keysup,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR}, #{active,jdbcType=TINYINT}, 
      #{usesku,jdbcType=TINYINT})
  </insert>
  <insert id="insertSelective" parameterType="com.fuxi.ws.data.entity.WInterfaceout">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Sat Nov 21 16:43:00 CST 2015.
    -->
    insert into W_InterfaceOut
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="subsystem != null">
        SubSystem,
      </if>
      <if test="subsystemname != null">
        SubSystemName,
      </if>
      <if test="interfacesup != null">
        InterfaceSup,
      </if>
      <if test="version != null">
        version,
      </if>
      <if test="urlsup != null">
        UrlSup,
      </if>
      <if test="nicksup != null">
        NickSup,
      </if>
      <if test="keysup != null">
        KeySup,
      </if>
      <if test="password != null">
        Password,
      </if>
      <if test="active != null">
        Active,
      </if>
      <if test="usesku != null">
        UseSku,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="subsystem != null">
        #{subsystem,jdbcType=VARCHAR},
      </if>
      <if test="subsystemname != null">
        #{subsystemname,jdbcType=NVARCHAR},
      </if>
      <if test="interfacesup != null">
        #{interfacesup,jdbcType=VARCHAR},
      </if>
      <if test="version != null">
        #{version,jdbcType=VARCHAR},
      </if>
      <if test="urlsup != null">
        #{urlsup,jdbcType=VARCHAR},
      </if>
      <if test="nicksup != null">
        #{nicksup,jdbcType=VARCHAR},
      </if>
      <if test="keysup != null">
        #{keysup,jdbcType=VARCHAR},
      </if>
      <if test="password != null">
        #{password,jdbcType=VARCHAR},
      </if>
      <if test="active != null">
        #{active,jdbcType=TINYINT},
      </if>
      <if test="usesku != null">
        #{usesku,jdbcType=TINYINT},
      </if>
    </trim>
  </insert>
  <select id="countByExample" parameterType="com.fuxi.ws.data.entity.WInterfaceoutExample" resultType="java.lang.Integer">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Sat Nov 21 16:43:00 CST 2015.
    -->
    select count(*) from W_InterfaceOut
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </select>
  <update id="updateByPrimaryKeySelective" parameterType="com.fuxi.ws.data.entity.WInterfaceout">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Sat Nov 21 16:43:00 CST 2015.
    -->
    update W_InterfaceOut
    <set>
      <if test="subsystemname != null">
        SubSystemName = #{subsystemname,jdbcType=NVARCHAR},
      </if>
      <if test="interfacesup != null">
        InterfaceSup = #{interfacesup,jdbcType=VARCHAR},
      </if>
      <if test="version != null">
        version = #{version,jdbcType=VARCHAR},
      </if>
      <if test="urlsup != null">
        UrlSup = #{urlsup,jdbcType=VARCHAR},
      </if>
      <if test="nicksup != null">
        NickSup = #{nicksup,jdbcType=VARCHAR},
      </if>
      <if test="keysup != null">
        KeySup = #{keysup,jdbcType=VARCHAR},
      </if>
      <if test="password != null">
        Password = #{password,jdbcType=VARCHAR},
      </if>
      <if test="active != null">
        Active = #{active,jdbcType=TINYINT},
      </if>
      <if test="usesku != null">
        UseSku = #{usesku,jdbcType=TINYINT},
      </if>
    </set>
    where SubSystem = #{subsystem,jdbcType=VARCHAR}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.fuxi.ws.data.entity.WInterfaceout">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Sat Nov 21 16:43:00 CST 2015.
    -->
    update W_InterfaceOut
    set SubSystemName = #{subsystemname,jdbcType=NVARCHAR},
      InterfaceSup = #{interfacesup,jdbcType=VARCHAR},
      version = #{version,jdbcType=VARCHAR},
      UrlSup = #{urlsup,jdbcType=VARCHAR},
      NickSup = #{nicksup,jdbcType=VARCHAR},
      KeySup = #{keysup,jdbcType=VARCHAR},
      Password = #{password,jdbcType=VARCHAR},
      Active = #{active,jdbcType=TINYINT},
      UseSku = #{usesku,jdbcType=TINYINT}
    where SubSystem = #{subsystem,jdbcType=VARCHAR}
  </update>
</mapper>