|
@@ -0,0 +1,525 @@
|
|
|
+<?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.WindpowerstationPGMapper">
|
|
|
+ <resultMap id="BaseResultMap" type="com.gyee.frame.model.auto.WindpowerstationPG">
|
|
|
+ <!--
|
|
|
+ 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="NUMERIC" property="capacity" />
|
|
|
+ <result column="capacityunit" jdbcType="VARCHAR" property="capacityunit" />
|
|
|
+ <result column="quantity" jdbcType="NUMERIC" property="quantity" />
|
|
|
+ <result column="aname" jdbcType="VARCHAR" property="aname" />
|
|
|
+ <result column="longitude" jdbcType="NUMERIC" property="longitude" />
|
|
|
+ <result column="latitude" jdbcType="NUMERIC" 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="NUMERIC" property="ordernum" />
|
|
|
+ <result column="altitude" jdbcType="NUMERIC" property="altitude" />
|
|
|
+ <result column="height" jdbcType="NUMERIC" property="height" />
|
|
|
+ <result column="regionid" jdbcType="VARCHAR" property="regionid" />
|
|
|
+ </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,
|
|
|
+ altitude, height, regionid
|
|
|
+ </sql>
|
|
|
+ <select id="selectByExample" parameterType="com.gyee.frame.model.auto.WindpowerstationPGExample" 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.WindpowerstationPGExample">
|
|
|
+ <!--
|
|
|
+ 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.WindpowerstationPG">
|
|
|
+ <!--
|
|
|
+ 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,
|
|
|
+ altitude, height, regionid
|
|
|
+ )
|
|
|
+ values (#{id,jdbcType=VARCHAR}, #{code,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR},
|
|
|
+ #{address,jdbcType=VARCHAR}, #{telephone,jdbcType=VARCHAR}, #{capacity,jdbcType=NUMERIC},
|
|
|
+ #{capacityunit,jdbcType=VARCHAR}, #{quantity,jdbcType=NUMERIC}, #{aname,jdbcType=VARCHAR},
|
|
|
+ #{longitude,jdbcType=NUMERIC}, #{latitude,jdbcType=NUMERIC}, #{photo,jdbcType=VARCHAR},
|
|
|
+ #{companyid,jdbcType=VARCHAR}, #{systemmanufact,jdbcType=VARCHAR}, #{headfarm,jdbcType=VARCHAR},
|
|
|
+ #{headfarmphone,jdbcType=VARCHAR}, #{model,jdbcType=VARCHAR}, #{ordernum,jdbcType=NUMERIC},
|
|
|
+ #{altitude,jdbcType=NUMERIC}, #{height,jdbcType=NUMERIC}, #{regionid,jdbcType=VARCHAR}
|
|
|
+ )
|
|
|
+ </insert>
|
|
|
+ <insert id="insertSelective" parameterType="com.gyee.frame.model.auto.WindpowerstationPG">
|
|
|
+ <!--
|
|
|
+ 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="altitude != null">
|
|
|
+ altitude,
|
|
|
+ </if>
|
|
|
+ <if test="height != null">
|
|
|
+ height,
|
|
|
+ </if>
|
|
|
+ <if test="regionid != null">
|
|
|
+ regionid,
|
|
|
+ </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=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="capacityunit != null">
|
|
|
+ #{capacityunit,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="quantity != null">
|
|
|
+ #{quantity,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="aname != null">
|
|
|
+ #{aname,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="longitude != null">
|
|
|
+ #{longitude,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="latitude != null">
|
|
|
+ #{latitude,jdbcType=NUMERIC},
|
|
|
+ </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=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="altitude != null">
|
|
|
+ #{altitude,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="height != null">
|
|
|
+ #{height,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="regionid != null">
|
|
|
+ #{regionid,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ </insert>
|
|
|
+ <select id="countByExample" parameterType="com.gyee.frame.model.auto.WindpowerstationPGExample" 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=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="record.capacityunit != null">
|
|
|
+ capacityunit = #{record.capacityunit,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.quantity != null">
|
|
|
+ quantity = #{record.quantity,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="record.aname != null">
|
|
|
+ aname = #{record.aname,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.longitude != null">
|
|
|
+ longitude = #{record.longitude,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="record.latitude != null">
|
|
|
+ latitude = #{record.latitude,jdbcType=NUMERIC},
|
|
|
+ </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=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="record.altitude != null">
|
|
|
+ altitude = #{record.altitude,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="record.height != null">
|
|
|
+ height = #{record.height,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="record.regionid != null">
|
|
|
+ regionid = #{record.regionid,jdbcType=VARCHAR},
|
|
|
+ </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=NUMERIC},
|
|
|
+ capacityunit = #{record.capacityunit,jdbcType=VARCHAR},
|
|
|
+ quantity = #{record.quantity,jdbcType=NUMERIC},
|
|
|
+ aname = #{record.aname,jdbcType=VARCHAR},
|
|
|
+ longitude = #{record.longitude,jdbcType=NUMERIC},
|
|
|
+ latitude = #{record.latitude,jdbcType=NUMERIC},
|
|
|
+ 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=NUMERIC},
|
|
|
+ altitude = #{record.altitude,jdbcType=NUMERIC},
|
|
|
+ height = #{record.height,jdbcType=NUMERIC},
|
|
|
+ regionid = #{record.regionid,jdbcType=VARCHAR}
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Update_By_Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </update>
|
|
|
+ <update id="updateByPrimaryKeySelective" parameterType="com.gyee.frame.model.auto.WindpowerstationPG">
|
|
|
+ <!--
|
|
|
+ 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=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="capacityunit != null">
|
|
|
+ capacityunit = #{capacityunit,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="quantity != null">
|
|
|
+ quantity = #{quantity,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="aname != null">
|
|
|
+ aname = #{aname,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="longitude != null">
|
|
|
+ longitude = #{longitude,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="latitude != null">
|
|
|
+ latitude = #{latitude,jdbcType=NUMERIC},
|
|
|
+ </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=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="altitude != null">
|
|
|
+ altitude = #{altitude,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="height != null">
|
|
|
+ height = #{height,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="regionid != null">
|
|
|
+ regionid = #{regionid,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ where id = #{id,jdbcType=VARCHAR}
|
|
|
+ </update>
|
|
|
+ <update id="updateByPrimaryKey" parameterType="com.gyee.frame.model.auto.WindpowerstationPG">
|
|
|
+ <!--
|
|
|
+ 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=NUMERIC},
|
|
|
+ capacityunit = #{capacityunit,jdbcType=VARCHAR},
|
|
|
+ quantity = #{quantity,jdbcType=NUMERIC},
|
|
|
+ aname = #{aname,jdbcType=VARCHAR},
|
|
|
+ longitude = #{longitude,jdbcType=NUMERIC},
|
|
|
+ latitude = #{latitude,jdbcType=NUMERIC},
|
|
|
+ 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=NUMERIC},
|
|
|
+ altitude = #{altitude,jdbcType=NUMERIC},
|
|
|
+ height = #{height,jdbcType=NUMERIC},
|
|
|
+ regionid = #{regionid,jdbcType=VARCHAR}
|
|
|
+ where id = #{id,jdbcType=VARCHAR}
|
|
|
+ </update>
|
|
|
+</mapper>
|