<?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.WindpowerstationMapper">
  <resultMap id="BaseResultMap" type="com.gyee.frame.model.auto.Windpowerstation">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    <id column="id" jdbcType="VARCHAR" property="id" />
    <result column="code" jdbcType="VARCHAR" property="code" />
    <result column="name" jdbcType="VARCHAR" property="name" />
    <result column="address" jdbcType="VARCHAR" property="address" />
    <result column="telephone" jdbcType="VARCHAR" property="telephone" />
    <result column="capacity" jdbcType="DOUBLE" property="capacity" />
    <result column="capacityUnit" jdbcType="VARCHAR" property="capacityunit" />
    <result column="quantity" jdbcType="INTEGER" property="quantity" />
    <result column="aname" jdbcType="VARCHAR" property="aname" />
    <result column="longitude" jdbcType="DOUBLE" property="longitude" />
    <result column="latitude" jdbcType="DOUBLE" property="latitude" />
    <result column="photo" jdbcType="VARCHAR" property="photo" />
    <result column="companyId" jdbcType="VARCHAR" property="companyid" />
    <result column="systemManufact" jdbcType="VARCHAR" property="systemmanufact" />
    <result column="headFarm" jdbcType="VARCHAR" property="headfarm" />
    <result column="headFarmPhone" jdbcType="VARCHAR" property="headfarmphone" />
    <result column="model" jdbcType="VARCHAR" property="model" />
    <result column="ordernum" jdbcType="INTEGER" property="ordernum" />
    <result column="height" jdbcType="DOUBLE" property="height" />
  </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, code, name, address, telephone, capacity, capacityUnit, quantity, aname, longitude, 
    latitude, photo, companyId, systemManufact, headFarm, headFarmPhone, model, ordernum, 
    height
  </sql>
  <select id="selectByExample" parameterType="com.gyee.frame.model.auto.WindpowerstationExample" 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 windpowerstation
    <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 - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    select 
    <include refid="Base_Column_List" />
    from windpowerstation
    where id = #{id,jdbcType=VARCHAR}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    delete from windpowerstation
    where id = #{id,jdbcType=VARCHAR}
  </delete>
  <delete id="deleteByExample" parameterType="com.gyee.frame.model.auto.WindpowerstationExample">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    delete from windpowerstation
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </delete>
  <insert id="insert" parameterType="com.gyee.frame.model.auto.Windpowerstation">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    insert into windpowerstation (id, code, name, 
      address, telephone, capacity, 
      capacityUnit, quantity, aname, 
      longitude, latitude, photo, 
      companyId, systemManufact, headFarm, 
      headFarmPhone, model, ordernum, 
      height)
    values (#{id,jdbcType=VARCHAR}, #{code,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, 
      #{address,jdbcType=VARCHAR}, #{telephone,jdbcType=VARCHAR}, #{capacity,jdbcType=DOUBLE}, 
      #{capacityunit,jdbcType=VARCHAR}, #{quantity,jdbcType=INTEGER}, #{aname,jdbcType=VARCHAR}, 
      #{longitude,jdbcType=DOUBLE}, #{latitude,jdbcType=DOUBLE}, #{photo,jdbcType=VARCHAR}, 
      #{companyid,jdbcType=VARCHAR}, #{systemmanufact,jdbcType=VARCHAR}, #{headfarm,jdbcType=VARCHAR}, 
      #{headfarmphone,jdbcType=VARCHAR}, #{model,jdbcType=VARCHAR}, #{ordernum,jdbcType=INTEGER}, 
      #{height,jdbcType=DOUBLE})
  </insert>
  <insert id="insertSelective" parameterType="com.gyee.frame.model.auto.Windpowerstation">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    insert into windpowerstation
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
        id,
      </if>
      <if test="code != null">
        code,
      </if>
      <if test="name != null">
        name,
      </if>
      <if test="address != null">
        address,
      </if>
      <if test="telephone != null">
        telephone,
      </if>
      <if test="capacity != null">
        capacity,
      </if>
      <if test="capacityunit != null">
        capacityUnit,
      </if>
      <if test="quantity != null">
        quantity,
      </if>
      <if test="aname != null">
        aname,
      </if>
      <if test="longitude != null">
        longitude,
      </if>
      <if test="latitude != null">
        latitude,
      </if>
      <if test="photo != null">
        photo,
      </if>
      <if test="companyid != null">
        companyId,
      </if>
      <if test="systemmanufact != null">
        systemManufact,
      </if>
      <if test="headfarm != null">
        headFarm,
      </if>
      <if test="headfarmphone != null">
        headFarmPhone,
      </if>
      <if test="model != null">
        model,
      </if>
      <if test="ordernum != null">
        ordernum,
      </if>
      <if test="height != null">
        height,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="id != null">
        #{id,jdbcType=VARCHAR},
      </if>
      <if test="code != null">
        #{code,jdbcType=VARCHAR},
      </if>
      <if test="name != null">
        #{name,jdbcType=VARCHAR},
      </if>
      <if test="address != null">
        #{address,jdbcType=VARCHAR},
      </if>
      <if test="telephone != null">
        #{telephone,jdbcType=VARCHAR},
      </if>
      <if test="capacity != null">
        #{capacity,jdbcType=DOUBLE},
      </if>
      <if test="capacityunit != null">
        #{capacityunit,jdbcType=VARCHAR},
      </if>
      <if test="quantity != null">
        #{quantity,jdbcType=INTEGER},
      </if>
      <if test="aname != null">
        #{aname,jdbcType=VARCHAR},
      </if>
      <if test="longitude != null">
        #{longitude,jdbcType=DOUBLE},
      </if>
      <if test="latitude != null">
        #{latitude,jdbcType=DOUBLE},
      </if>
      <if test="photo != null">
        #{photo,jdbcType=VARCHAR},
      </if>
      <if test="companyid != null">
        #{companyid,jdbcType=VARCHAR},
      </if>
      <if test="systemmanufact != null">
        #{systemmanufact,jdbcType=VARCHAR},
      </if>
      <if test="headfarm != null">
        #{headfarm,jdbcType=VARCHAR},
      </if>
      <if test="headfarmphone != null">
        #{headfarmphone,jdbcType=VARCHAR},
      </if>
      <if test="model != null">
        #{model,jdbcType=VARCHAR},
      </if>
      <if test="ordernum != null">
        #{ordernum,jdbcType=INTEGER},
      </if>
      <if test="height != null">
        #{height,jdbcType=DOUBLE},
      </if>
    </trim>
  </insert>
  <select id="countByExample" parameterType="com.gyee.frame.model.auto.WindpowerstationExample" resultType="java.lang.Long">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    select count(*) from windpowerstation
    <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 windpowerstation
    <set>
      <if test="record.id != null">
        id = #{record.id,jdbcType=VARCHAR},
      </if>
      <if test="record.code != null">
        code = #{record.code,jdbcType=VARCHAR},
      </if>
      <if test="record.name != null">
        name = #{record.name,jdbcType=VARCHAR},
      </if>
      <if test="record.address != null">
        address = #{record.address,jdbcType=VARCHAR},
      </if>
      <if test="record.telephone != null">
        telephone = #{record.telephone,jdbcType=VARCHAR},
      </if>
      <if test="record.capacity != null">
        capacity = #{record.capacity,jdbcType=DOUBLE},
      </if>
      <if test="record.capacityunit != null">
        capacityUnit = #{record.capacityunit,jdbcType=VARCHAR},
      </if>
      <if test="record.quantity != null">
        quantity = #{record.quantity,jdbcType=INTEGER},
      </if>
      <if test="record.aname != null">
        aname = #{record.aname,jdbcType=VARCHAR},
      </if>
      <if test="record.longitude != null">
        longitude = #{record.longitude,jdbcType=DOUBLE},
      </if>
      <if test="record.latitude != null">
        latitude = #{record.latitude,jdbcType=DOUBLE},
      </if>
      <if test="record.photo != null">
        photo = #{record.photo,jdbcType=VARCHAR},
      </if>
      <if test="record.companyid != null">
        companyId = #{record.companyid,jdbcType=VARCHAR},
      </if>
      <if test="record.systemmanufact != null">
        systemManufact = #{record.systemmanufact,jdbcType=VARCHAR},
      </if>
      <if test="record.headfarm != null">
        headFarm = #{record.headfarm,jdbcType=VARCHAR},
      </if>
      <if test="record.headfarmphone != null">
        headFarmPhone = #{record.headfarmphone,jdbcType=VARCHAR},
      </if>
      <if test="record.model != null">
        model = #{record.model,jdbcType=VARCHAR},
      </if>
      <if test="record.ordernum != null">
        ordernum = #{record.ordernum,jdbcType=INTEGER},
      </if>
      <if test="record.height != null">
        height = #{record.height,jdbcType=DOUBLE},
      </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 windpowerstation
    set id = #{record.id,jdbcType=VARCHAR},
      code = #{record.code,jdbcType=VARCHAR},
      name = #{record.name,jdbcType=VARCHAR},
      address = #{record.address,jdbcType=VARCHAR},
      telephone = #{record.telephone,jdbcType=VARCHAR},
      capacity = #{record.capacity,jdbcType=DOUBLE},
      capacityUnit = #{record.capacityunit,jdbcType=VARCHAR},
      quantity = #{record.quantity,jdbcType=INTEGER},
      aname = #{record.aname,jdbcType=VARCHAR},
      longitude = #{record.longitude,jdbcType=DOUBLE},
      latitude = #{record.latitude,jdbcType=DOUBLE},
      photo = #{record.photo,jdbcType=VARCHAR},
      companyId = #{record.companyid,jdbcType=VARCHAR},
      systemManufact = #{record.systemmanufact,jdbcType=VARCHAR},
      headFarm = #{record.headfarm,jdbcType=VARCHAR},
      headFarmPhone = #{record.headfarmphone,jdbcType=VARCHAR},
      model = #{record.model,jdbcType=VARCHAR},
      ordernum = #{record.ordernum,jdbcType=INTEGER},
      height = #{record.height,jdbcType=DOUBLE}
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByPrimaryKeySelective" parameterType="com.gyee.frame.model.auto.Windpowerstation">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update windpowerstation
    <set>
      <if test="code != null">
        code = #{code,jdbcType=VARCHAR},
      </if>
      <if test="name != null">
        name = #{name,jdbcType=VARCHAR},
      </if>
      <if test="address != null">
        address = #{address,jdbcType=VARCHAR},
      </if>
      <if test="telephone != null">
        telephone = #{telephone,jdbcType=VARCHAR},
      </if>
      <if test="capacity != null">
        capacity = #{capacity,jdbcType=DOUBLE},
      </if>
      <if test="capacityunit != null">
        capacityUnit = #{capacityunit,jdbcType=VARCHAR},
      </if>
      <if test="quantity != null">
        quantity = #{quantity,jdbcType=INTEGER},
      </if>
      <if test="aname != null">
        aname = #{aname,jdbcType=VARCHAR},
      </if>
      <if test="longitude != null">
        longitude = #{longitude,jdbcType=DOUBLE},
      </if>
      <if test="latitude != null">
        latitude = #{latitude,jdbcType=DOUBLE},
      </if>
      <if test="photo != null">
        photo = #{photo,jdbcType=VARCHAR},
      </if>
      <if test="companyid != null">
        companyId = #{companyid,jdbcType=VARCHAR},
      </if>
      <if test="systemmanufact != null">
        systemManufact = #{systemmanufact,jdbcType=VARCHAR},
      </if>
      <if test="headfarm != null">
        headFarm = #{headfarm,jdbcType=VARCHAR},
      </if>
      <if test="headfarmphone != null">
        headFarmPhone = #{headfarmphone,jdbcType=VARCHAR},
      </if>
      <if test="model != null">
        model = #{model,jdbcType=VARCHAR},
      </if>
      <if test="ordernum != null">
        ordernum = #{ordernum,jdbcType=INTEGER},
      </if>
      <if test="height != null">
        height = #{height,jdbcType=DOUBLE},
      </if>
    </set>
    where id = #{id,jdbcType=VARCHAR}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.gyee.frame.model.auto.Windpowerstation">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update windpowerstation
    set code = #{code,jdbcType=VARCHAR},
      name = #{name,jdbcType=VARCHAR},
      address = #{address,jdbcType=VARCHAR},
      telephone = #{telephone,jdbcType=VARCHAR},
      capacity = #{capacity,jdbcType=DOUBLE},
      capacityUnit = #{capacityunit,jdbcType=VARCHAR},
      quantity = #{quantity,jdbcType=INTEGER},
      aname = #{aname,jdbcType=VARCHAR},
      longitude = #{longitude,jdbcType=DOUBLE},
      latitude = #{latitude,jdbcType=DOUBLE},
      photo = #{photo,jdbcType=VARCHAR},
      companyId = #{companyid,jdbcType=VARCHAR},
      systemManufact = #{systemmanufact,jdbcType=VARCHAR},
      headFarm = #{headfarm,jdbcType=VARCHAR},
      headFarmPhone = #{headfarmphone,jdbcType=VARCHAR},
      model = #{model,jdbcType=VARCHAR},
      ordernum = #{ordernum,jdbcType=INTEGER},
      height = #{height,jdbcType=DOUBLE}
    where id = #{id,jdbcType=VARCHAR}
  </update>
</mapper>