<?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.gyee.frame.mapper.auto.EliminatingeqMapper">
  <resultMap id="BaseResultMap" type="com.gyee.frame.model.auto.Eliminatingeq">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    <id column="ID" jdbcType="NUMERIC" property="id" />
    <result column="BADNAME" jdbcType="NVARCHAR" property="badname" />
    <result column="MODELNUMBERS" jdbcType="NVARCHAR" property="modelnumbers" />
    <result column="NUMBER" jdbcType="NUMERIC" property="number" />
    <result column="BELONGS" jdbcType="NVARCHAR" property="belongs" />
    <result column="DESCRIPTION" jdbcType="NVARCHAR" property="description" />
    <result column="SITENUM" jdbcType="NVARCHAR" property="sitenum" />
    <result column="CORPNUM" jdbcType="NVARCHAR" property="corpnum" />
    <result column="BUGNUM" jdbcType="NVARCHAR" property="bugnum" />
    <result column="RECORDPERSONNEL" jdbcType="NVARCHAR" property="recordpersonnel" />
    <result column="MANUFACTURERS" jdbcType="NVARCHAR" property="manufacturers" />
    <result column="EQNUM" jdbcType="NVARCHAR" property="eqnum" />
    <result column="LOCATION" jdbcType="NVARCHAR" property="location" />
    <result column="NEWEQNUM" jdbcType="NVARCHAR" property="neweqnum" />
    <result column="REPLACETIME" jdbcType="TIMESTAMP" property="replacetime" />
    <result column="SPARENAME" jdbcType="NVARCHAR" property="sparename" />
  </resultMap>
  <sql id="Example_Where_Clause">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    <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="Update_By_Example_Where_Clause">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    <where>
      <foreach collection="example.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 - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    ID, BADNAME, MODELNUMBERS, NUMBER, BELONGS, DESCRIPTION, SITENUM, CORPNUM, BUGNUM, 
    RECORDPERSONNEL, MANUFACTURERS, EQNUM, LOCATION, NEWEQNUM, REPLACETIME, SPARENAME
  </sql>
  <select id="selectByExample" parameterType="com.gyee.frame.model.auto.EliminatingeqExample" resultMap="BaseResultMap">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    select
    <if test="distinct">
      distinct
    </if>
    <include refid="Base_Column_List" />
    from ELIMINATINGEQ
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
    <if test="orderByClause != null">
      order by ${orderByClause}
    </if>
  </select>
  <select id="selectByPrimaryKey" parameterType="java.math.BigDecimal" resultMap="BaseResultMap">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    select 
    <include refid="Base_Column_List" />
    from ELIMINATINGEQ
    where ID = #{id,jdbcType=NUMERIC}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.math.BigDecimal">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    delete from ELIMINATINGEQ
    where ID = #{id,jdbcType=NUMERIC}
  </delete>
  <delete id="deleteByExample" parameterType="com.gyee.frame.model.auto.EliminatingeqExample">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    delete from ELIMINATINGEQ
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </delete>
  <insert id="insert" parameterType="com.gyee.frame.model.auto.Eliminatingeq">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    insert into ELIMINATINGEQ (ID, BADNAME, MODELNUMBERS, 
      NUMBER, BELONGS, DESCRIPTION, 
      SITENUM, CORPNUM, BUGNUM, 
      RECORDPERSONNEL, MANUFACTURERS, EQNUM, 
      LOCATION, NEWEQNUM, REPLACETIME, 
      SPARENAME)
    values (#{id,jdbcType=NUMERIC}, #{badname,jdbcType=NVARCHAR}, #{modelnumbers,jdbcType=NVARCHAR}, 
      #{number,jdbcType=NUMERIC}, #{belongs,jdbcType=NVARCHAR}, #{description,jdbcType=NVARCHAR}, 
      #{sitenum,jdbcType=NVARCHAR}, #{corpnum,jdbcType=NVARCHAR}, #{bugnum,jdbcType=NVARCHAR}, 
      #{recordpersonnel,jdbcType=NVARCHAR}, #{manufacturers,jdbcType=NVARCHAR}, #{eqnum,jdbcType=NVARCHAR}, 
      #{location,jdbcType=NVARCHAR}, #{neweqnum,jdbcType=NVARCHAR}, #{replacetime,jdbcType=TIMESTAMP}, 
      #{sparename,jdbcType=NVARCHAR})
  </insert>
  <insert id="insertSelective" parameterType="com.gyee.frame.model.auto.Eliminatingeq">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    insert into ELIMINATINGEQ
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
        ID,
      </if>
      <if test="badname != null">
        BADNAME,
      </if>
      <if test="modelnumbers != null">
        MODELNUMBERS,
      </if>
      <if test="number != null">
        NUMBER,
      </if>
      <if test="belongs != null">
        BELONGS,
      </if>
      <if test="description != null">
        DESCRIPTION,
      </if>
      <if test="sitenum != null">
        SITENUM,
      </if>
      <if test="corpnum != null">
        CORPNUM,
      </if>
      <if test="bugnum != null">
        BUGNUM,
      </if>
      <if test="recordpersonnel != null">
        RECORDPERSONNEL,
      </if>
      <if test="manufacturers != null">
        MANUFACTURERS,
      </if>
      <if test="eqnum != null">
        EQNUM,
      </if>
      <if test="location != null">
        LOCATION,
      </if>
      <if test="neweqnum != null">
        NEWEQNUM,
      </if>
      <if test="replacetime != null">
        REPLACETIME,
      </if>
      <if test="sparename != null">
        SPARENAME,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="id != null">
        #{id,jdbcType=NUMERIC},
      </if>
      <if test="badname != null">
        #{badname,jdbcType=NVARCHAR},
      </if>
      <if test="modelnumbers != null">
        #{modelnumbers,jdbcType=NVARCHAR},
      </if>
      <if test="number != null">
        #{number,jdbcType=NUMERIC},
      </if>
      <if test="belongs != null">
        #{belongs,jdbcType=NVARCHAR},
      </if>
      <if test="description != null">
        #{description,jdbcType=NVARCHAR},
      </if>
      <if test="sitenum != null">
        #{sitenum,jdbcType=NVARCHAR},
      </if>
      <if test="corpnum != null">
        #{corpnum,jdbcType=NVARCHAR},
      </if>
      <if test="bugnum != null">
        #{bugnum,jdbcType=NVARCHAR},
      </if>
      <if test="recordpersonnel != null">
        #{recordpersonnel,jdbcType=NVARCHAR},
      </if>
      <if test="manufacturers != null">
        #{manufacturers,jdbcType=NVARCHAR},
      </if>
      <if test="eqnum != null">
        #{eqnum,jdbcType=NVARCHAR},
      </if>
      <if test="location != null">
        #{location,jdbcType=NVARCHAR},
      </if>
      <if test="neweqnum != null">
        #{neweqnum,jdbcType=NVARCHAR},
      </if>
      <if test="replacetime != null">
        #{replacetime,jdbcType=TIMESTAMP},
      </if>
      <if test="sparename != null">
        #{sparename,jdbcType=NVARCHAR},
      </if>
    </trim>
  </insert>
  <select id="countByExample" parameterType="com.gyee.frame.model.auto.EliminatingeqExample" resultType="java.lang.Long">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    select count(*) from ELIMINATINGEQ
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </select>
  <update id="updateByExampleSelective" parameterType="map">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update ELIMINATINGEQ
    <set>
      <if test="record.id != null">
        ID = #{record.id,jdbcType=NUMERIC},
      </if>
      <if test="record.badname != null">
        BADNAME = #{record.badname,jdbcType=NVARCHAR},
      </if>
      <if test="record.modelnumbers != null">
        MODELNUMBERS = #{record.modelnumbers,jdbcType=NVARCHAR},
      </if>
      <if test="record.number != null">
        NUMBER = #{record.number,jdbcType=NUMERIC},
      </if>
      <if test="record.belongs != null">
        BELONGS = #{record.belongs,jdbcType=NVARCHAR},
      </if>
      <if test="record.description != null">
        DESCRIPTION = #{record.description,jdbcType=NVARCHAR},
      </if>
      <if test="record.sitenum != null">
        SITENUM = #{record.sitenum,jdbcType=NVARCHAR},
      </if>
      <if test="record.corpnum != null">
        CORPNUM = #{record.corpnum,jdbcType=NVARCHAR},
      </if>
      <if test="record.bugnum != null">
        BUGNUM = #{record.bugnum,jdbcType=NVARCHAR},
      </if>
      <if test="record.recordpersonnel != null">
        RECORDPERSONNEL = #{record.recordpersonnel,jdbcType=NVARCHAR},
      </if>
      <if test="record.manufacturers != null">
        MANUFACTURERS = #{record.manufacturers,jdbcType=NVARCHAR},
      </if>
      <if test="record.eqnum != null">
        EQNUM = #{record.eqnum,jdbcType=NVARCHAR},
      </if>
      <if test="record.location != null">
        LOCATION = #{record.location,jdbcType=NVARCHAR},
      </if>
      <if test="record.neweqnum != null">
        NEWEQNUM = #{record.neweqnum,jdbcType=NVARCHAR},
      </if>
      <if test="record.replacetime != null">
        REPLACETIME = #{record.replacetime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.sparename != null">
        SPARENAME = #{record.sparename,jdbcType=NVARCHAR},
      </if>
    </set>
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByExample" parameterType="map">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update ELIMINATINGEQ
    set ID = #{record.id,jdbcType=NUMERIC},
      BADNAME = #{record.badname,jdbcType=NVARCHAR},
      MODELNUMBERS = #{record.modelnumbers,jdbcType=NVARCHAR},
      NUMBER = #{record.number,jdbcType=NUMERIC},
      BELONGS = #{record.belongs,jdbcType=NVARCHAR},
      DESCRIPTION = #{record.description,jdbcType=NVARCHAR},
      SITENUM = #{record.sitenum,jdbcType=NVARCHAR},
      CORPNUM = #{record.corpnum,jdbcType=NVARCHAR},
      BUGNUM = #{record.bugnum,jdbcType=NVARCHAR},
      RECORDPERSONNEL = #{record.recordpersonnel,jdbcType=NVARCHAR},
      MANUFACTURERS = #{record.manufacturers,jdbcType=NVARCHAR},
      EQNUM = #{record.eqnum,jdbcType=NVARCHAR},
      LOCATION = #{record.location,jdbcType=NVARCHAR},
      NEWEQNUM = #{record.neweqnum,jdbcType=NVARCHAR},
      REPLACETIME = #{record.replacetime,jdbcType=TIMESTAMP},
      SPARENAME = #{record.sparename,jdbcType=NVARCHAR}
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByPrimaryKeySelective" parameterType="com.gyee.frame.model.auto.Eliminatingeq">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update ELIMINATINGEQ
    <set>
      <if test="badname != null">
        BADNAME = #{badname,jdbcType=NVARCHAR},
      </if>
      <if test="modelnumbers != null">
        MODELNUMBERS = #{modelnumbers,jdbcType=NVARCHAR},
      </if>
      <if test="number != null">
        NUMBER = #{number,jdbcType=NUMERIC},
      </if>
      <if test="belongs != null">
        BELONGS = #{belongs,jdbcType=NVARCHAR},
      </if>
      <if test="description != null">
        DESCRIPTION = #{description,jdbcType=NVARCHAR},
      </if>
      <if test="sitenum != null">
        SITENUM = #{sitenum,jdbcType=NVARCHAR},
      </if>
      <if test="corpnum != null">
        CORPNUM = #{corpnum,jdbcType=NVARCHAR},
      </if>
      <if test="bugnum != null">
        BUGNUM = #{bugnum,jdbcType=NVARCHAR},
      </if>
      <if test="recordpersonnel != null">
        RECORDPERSONNEL = #{recordpersonnel,jdbcType=NVARCHAR},
      </if>
      <if test="manufacturers != null">
        MANUFACTURERS = #{manufacturers,jdbcType=NVARCHAR},
      </if>
      <if test="eqnum != null">
        EQNUM = #{eqnum,jdbcType=NVARCHAR},
      </if>
      <if test="location != null">
        LOCATION = #{location,jdbcType=NVARCHAR},
      </if>
      <if test="neweqnum != null">
        NEWEQNUM = #{neweqnum,jdbcType=NVARCHAR},
      </if>
      <if test="replacetime != null">
        REPLACETIME = #{replacetime,jdbcType=TIMESTAMP},
      </if>
      <if test="sparename != null">
        SPARENAME = #{sparename,jdbcType=NVARCHAR},
      </if>
    </set>
    where ID = #{id,jdbcType=NUMERIC}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.gyee.frame.model.auto.Eliminatingeq">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update ELIMINATINGEQ
    set BADNAME = #{badname,jdbcType=NVARCHAR},
      MODELNUMBERS = #{modelnumbers,jdbcType=NVARCHAR},
      NUMBER = #{number,jdbcType=NUMERIC},
      BELONGS = #{belongs,jdbcType=NVARCHAR},
      DESCRIPTION = #{description,jdbcType=NVARCHAR},
      SITENUM = #{sitenum,jdbcType=NVARCHAR},
      CORPNUM = #{corpnum,jdbcType=NVARCHAR},
      BUGNUM = #{bugnum,jdbcType=NVARCHAR},
      RECORDPERSONNEL = #{recordpersonnel,jdbcType=NVARCHAR},
      MANUFACTURERS = #{manufacturers,jdbcType=NVARCHAR},
      EQNUM = #{eqnum,jdbcType=NVARCHAR},
      LOCATION = #{location,jdbcType=NVARCHAR},
      NEWEQNUM = #{neweqnum,jdbcType=NVARCHAR},
      REPLACETIME = #{replacetime,jdbcType=TIMESTAMP},
      SPARENAME = #{sparename,jdbcType=NVARCHAR}
    where ID = #{id,jdbcType=NUMERIC}
  </update>
</mapper>