|
@@ -0,0 +1,551 @@
|
|
|
+<?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.CompanysPGMapper">
|
|
|
+ <resultMap id="BaseResultMap" type="com.gyee.frame.model.auto.CompanysPG">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ -->
|
|
|
+ <id column="id" jdbcType="VARCHAR" property="id" />
|
|
|
+ <result column="name" jdbcType="VARCHAR" property="name" />
|
|
|
+ <result column="aname" jdbcType="VARCHAR" property="aname" />
|
|
|
+ <result column="windcapacity" jdbcType="NUMERIC" property="windcapacity" />
|
|
|
+ <result column="windcapacityunit" jdbcType="VARCHAR" property="windcapacityunit" />
|
|
|
+ <result column="windquantity" jdbcType="INTEGER" property="windquantity" />
|
|
|
+ <result column="capacity" jdbcType="NUMERIC" property="capacity" />
|
|
|
+ <result column="capacityunit" jdbcType="VARCHAR" property="capacityunit" />
|
|
|
+ <result column="quantityjz" jdbcType="INTEGER" property="quantityjz" />
|
|
|
+ <result column="quantityzc" jdbcType="INTEGER" property="quantityzc" />
|
|
|
+ <result column="jrwindcapacity" jdbcType="NUMERIC" property="jrwindcapacity" />
|
|
|
+ <result column="jrwindcapacityunit" jdbcType="VARCHAR" property="jrwindcapacityunit" />
|
|
|
+ <result column="jrwindquantity" jdbcType="INTEGER" property="jrwindquantity" />
|
|
|
+ <result column="jrcapacity" jdbcType="NUMERIC" property="jrcapacity" />
|
|
|
+ <result column="jrcapacityunit" jdbcType="VARCHAR" property="jrcapacityunit" />
|
|
|
+ <result column="jrquantityjz" jdbcType="INTEGER" property="jrquantityjz" />
|
|
|
+ <result column="jrquantityzc" jdbcType="INTEGER" property="jrquantityzc" />
|
|
|
+ <result column="ordernum" jdbcType="INTEGER" property="ordernum" />
|
|
|
+ <result column="windnumber" jdbcType="INTEGER" property="windnumber" />
|
|
|
+ <result column="number" jdbcType="INTEGER" property="number" />
|
|
|
+ <result column="jrwindnumber" jdbcType="INTEGER" property="jrwindnumber" />
|
|
|
+ <result column="jrnumber" jdbcType="INTEGER" property="jrnumber" />
|
|
|
+ </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, name, aname, windcapacity, windcapacityunit, windquantity, capacity, capacityunit,
|
|
|
+ quantityjz, quantityzc, jrwindcapacity, jrwindcapacityunit, jrwindquantity, jrcapacity,
|
|
|
+ jrcapacityunit, jrquantityjz, jrquantityzc, ordernum, windnumber, number, jrwindnumber,
|
|
|
+ jrnumber
|
|
|
+ </sql>
|
|
|
+ <select id="selectByExample" parameterType="com.gyee.frame.model.auto.CompanysPGExample" 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 companys
|
|
|
+ <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 companys
|
|
|
+ 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 companys
|
|
|
+ where id = #{id,jdbcType=VARCHAR}
|
|
|
+ </delete>
|
|
|
+ <delete id="deleteByExample" parameterType="com.gyee.frame.model.auto.CompanysPGExample">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ -->
|
|
|
+ delete from companys
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </delete>
|
|
|
+ <insert id="insert" parameterType="com.gyee.frame.model.auto.CompanysPG">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ -->
|
|
|
+ insert into companys (id, name, aname,
|
|
|
+ windcapacity, windcapacityunit, windquantity,
|
|
|
+ capacity, capacityunit, quantityjz,
|
|
|
+ quantityzc, jrwindcapacity, jrwindcapacityunit,
|
|
|
+ jrwindquantity, jrcapacity, jrcapacityunit,
|
|
|
+ jrquantityjz, jrquantityzc, ordernum,
|
|
|
+ windnumber, number, jrwindnumber,
|
|
|
+ jrnumber)
|
|
|
+ values (#{id,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{aname,jdbcType=VARCHAR},
|
|
|
+ #{windcapacity,jdbcType=NUMERIC}, #{windcapacityunit,jdbcType=VARCHAR}, #{windquantity,jdbcType=INTEGER},
|
|
|
+ #{capacity,jdbcType=NUMERIC}, #{capacityunit,jdbcType=VARCHAR}, #{quantityjz,jdbcType=INTEGER},
|
|
|
+ #{quantityzc,jdbcType=INTEGER}, #{jrwindcapacity,jdbcType=NUMERIC}, #{jrwindcapacityunit,jdbcType=VARCHAR},
|
|
|
+ #{jrwindquantity,jdbcType=INTEGER}, #{jrcapacity,jdbcType=NUMERIC}, #{jrcapacityunit,jdbcType=VARCHAR},
|
|
|
+ #{jrquantityjz,jdbcType=INTEGER}, #{jrquantityzc,jdbcType=INTEGER}, #{ordernum,jdbcType=INTEGER},
|
|
|
+ #{windnumber,jdbcType=INTEGER}, #{number,jdbcType=INTEGER}, #{jrwindnumber,jdbcType=INTEGER},
|
|
|
+ #{jrnumber,jdbcType=INTEGER})
|
|
|
+ </insert>
|
|
|
+ <insert id="insertSelective" parameterType="com.gyee.frame.model.auto.CompanysPG">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ -->
|
|
|
+ insert into companys
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="id != null">
|
|
|
+ id,
|
|
|
+ </if>
|
|
|
+ <if test="name != null">
|
|
|
+ name,
|
|
|
+ </if>
|
|
|
+ <if test="aname != null">
|
|
|
+ aname,
|
|
|
+ </if>
|
|
|
+ <if test="windcapacity != null">
|
|
|
+ windcapacity,
|
|
|
+ </if>
|
|
|
+ <if test="windcapacityunit != null">
|
|
|
+ windcapacityunit,
|
|
|
+ </if>
|
|
|
+ <if test="windquantity != null">
|
|
|
+ windquantity,
|
|
|
+ </if>
|
|
|
+ <if test="capacity != null">
|
|
|
+ capacity,
|
|
|
+ </if>
|
|
|
+ <if test="capacityunit != null">
|
|
|
+ capacityunit,
|
|
|
+ </if>
|
|
|
+ <if test="quantityjz != null">
|
|
|
+ quantityjz,
|
|
|
+ </if>
|
|
|
+ <if test="quantityzc != null">
|
|
|
+ quantityzc,
|
|
|
+ </if>
|
|
|
+ <if test="jrwindcapacity != null">
|
|
|
+ jrwindcapacity,
|
|
|
+ </if>
|
|
|
+ <if test="jrwindcapacityunit != null">
|
|
|
+ jrwindcapacityunit,
|
|
|
+ </if>
|
|
|
+ <if test="jrwindquantity != null">
|
|
|
+ jrwindquantity,
|
|
|
+ </if>
|
|
|
+ <if test="jrcapacity != null">
|
|
|
+ jrcapacity,
|
|
|
+ </if>
|
|
|
+ <if test="jrcapacityunit != null">
|
|
|
+ jrcapacityunit,
|
|
|
+ </if>
|
|
|
+ <if test="jrquantityjz != null">
|
|
|
+ jrquantityjz,
|
|
|
+ </if>
|
|
|
+ <if test="jrquantityzc != null">
|
|
|
+ jrquantityzc,
|
|
|
+ </if>
|
|
|
+ <if test="ordernum != null">
|
|
|
+ ordernum,
|
|
|
+ </if>
|
|
|
+ <if test="windnumber != null">
|
|
|
+ windnumber,
|
|
|
+ </if>
|
|
|
+ <if test="number != null">
|
|
|
+ number,
|
|
|
+ </if>
|
|
|
+ <if test="jrwindnumber != null">
|
|
|
+ jrwindnumber,
|
|
|
+ </if>
|
|
|
+ <if test="jrnumber != null">
|
|
|
+ jrnumber,
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="id != null">
|
|
|
+ #{id,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="name != null">
|
|
|
+ #{name,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="aname != null">
|
|
|
+ #{aname,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="windcapacity != null">
|
|
|
+ #{windcapacity,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="windcapacityunit != null">
|
|
|
+ #{windcapacityunit,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="windquantity != null">
|
|
|
+ #{windquantity,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="capacity != null">
|
|
|
+ #{capacity,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="capacityunit != null">
|
|
|
+ #{capacityunit,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="quantityjz != null">
|
|
|
+ #{quantityjz,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="quantityzc != null">
|
|
|
+ #{quantityzc,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="jrwindcapacity != null">
|
|
|
+ #{jrwindcapacity,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="jrwindcapacityunit != null">
|
|
|
+ #{jrwindcapacityunit,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="jrwindquantity != null">
|
|
|
+ #{jrwindquantity,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="jrcapacity != null">
|
|
|
+ #{jrcapacity,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="jrcapacityunit != null">
|
|
|
+ #{jrcapacityunit,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="jrquantityjz != null">
|
|
|
+ #{jrquantityjz,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="jrquantityzc != null">
|
|
|
+ #{jrquantityzc,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="ordernum != null">
|
|
|
+ #{ordernum,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="windnumber != null">
|
|
|
+ #{windnumber,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="number != null">
|
|
|
+ #{number,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="jrwindnumber != null">
|
|
|
+ #{jrwindnumber,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="jrnumber != null">
|
|
|
+ #{jrnumber,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ </insert>
|
|
|
+ <select id="countByExample" parameterType="com.gyee.frame.model.auto.CompanysPGExample" resultType="java.lang.Long">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ -->
|
|
|
+ select count(*) from companys
|
|
|
+ <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 companys
|
|
|
+ <set>
|
|
|
+ <if test="record.id != null">
|
|
|
+ id = #{record.id,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.name != null">
|
|
|
+ name = #{record.name,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.aname != null">
|
|
|
+ aname = #{record.aname,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.windcapacity != null">
|
|
|
+ windcapacity = #{record.windcapacity,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="record.windcapacityunit != null">
|
|
|
+ windcapacityunit = #{record.windcapacityunit,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.windquantity != null">
|
|
|
+ windquantity = #{record.windquantity,jdbcType=INTEGER},
|
|
|
+ </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.quantityjz != null">
|
|
|
+ quantityjz = #{record.quantityjz,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="record.quantityzc != null">
|
|
|
+ quantityzc = #{record.quantityzc,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="record.jrwindcapacity != null">
|
|
|
+ jrwindcapacity = #{record.jrwindcapacity,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="record.jrwindcapacityunit != null">
|
|
|
+ jrwindcapacityunit = #{record.jrwindcapacityunit,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.jrwindquantity != null">
|
|
|
+ jrwindquantity = #{record.jrwindquantity,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="record.jrcapacity != null">
|
|
|
+ jrcapacity = #{record.jrcapacity,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="record.jrcapacityunit != null">
|
|
|
+ jrcapacityunit = #{record.jrcapacityunit,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.jrquantityjz != null">
|
|
|
+ jrquantityjz = #{record.jrquantityjz,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="record.jrquantityzc != null">
|
|
|
+ jrquantityzc = #{record.jrquantityzc,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="record.ordernum != null">
|
|
|
+ ordernum = #{record.ordernum,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="record.windnumber != null">
|
|
|
+ windnumber = #{record.windnumber,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="record.number != null">
|
|
|
+ number = #{record.number,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="record.jrwindnumber != null">
|
|
|
+ jrwindnumber = #{record.jrwindnumber,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="record.jrnumber != null">
|
|
|
+ jrnumber = #{record.jrnumber,jdbcType=INTEGER},
|
|
|
+ </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 companys
|
|
|
+ set id = #{record.id,jdbcType=VARCHAR},
|
|
|
+ name = #{record.name,jdbcType=VARCHAR},
|
|
|
+ aname = #{record.aname,jdbcType=VARCHAR},
|
|
|
+ windcapacity = #{record.windcapacity,jdbcType=NUMERIC},
|
|
|
+ windcapacityunit = #{record.windcapacityunit,jdbcType=VARCHAR},
|
|
|
+ windquantity = #{record.windquantity,jdbcType=INTEGER},
|
|
|
+ capacity = #{record.capacity,jdbcType=NUMERIC},
|
|
|
+ capacityunit = #{record.capacityunit,jdbcType=VARCHAR},
|
|
|
+ quantityjz = #{record.quantityjz,jdbcType=INTEGER},
|
|
|
+ quantityzc = #{record.quantityzc,jdbcType=INTEGER},
|
|
|
+ jrwindcapacity = #{record.jrwindcapacity,jdbcType=NUMERIC},
|
|
|
+ jrwindcapacityunit = #{record.jrwindcapacityunit,jdbcType=VARCHAR},
|
|
|
+ jrwindquantity = #{record.jrwindquantity,jdbcType=INTEGER},
|
|
|
+ jrcapacity = #{record.jrcapacity,jdbcType=NUMERIC},
|
|
|
+ jrcapacityunit = #{record.jrcapacityunit,jdbcType=VARCHAR},
|
|
|
+ jrquantityjz = #{record.jrquantityjz,jdbcType=INTEGER},
|
|
|
+ jrquantityzc = #{record.jrquantityzc,jdbcType=INTEGER},
|
|
|
+ ordernum = #{record.ordernum,jdbcType=INTEGER},
|
|
|
+ windnumber = #{record.windnumber,jdbcType=INTEGER},
|
|
|
+ number = #{record.number,jdbcType=INTEGER},
|
|
|
+ jrwindnumber = #{record.jrwindnumber,jdbcType=INTEGER},
|
|
|
+ jrnumber = #{record.jrnumber,jdbcType=INTEGER}
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Update_By_Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </update>
|
|
|
+ <update id="updateByPrimaryKeySelective" parameterType="com.gyee.frame.model.auto.CompanysPG">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ -->
|
|
|
+ update companys
|
|
|
+ <set>
|
|
|
+ <if test="name != null">
|
|
|
+ name = #{name,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="aname != null">
|
|
|
+ aname = #{aname,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="windcapacity != null">
|
|
|
+ windcapacity = #{windcapacity,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="windcapacityunit != null">
|
|
|
+ windcapacityunit = #{windcapacityunit,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="windquantity != null">
|
|
|
+ windquantity = #{windquantity,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="capacity != null">
|
|
|
+ capacity = #{capacity,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="capacityunit != null">
|
|
|
+ capacityunit = #{capacityunit,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="quantityjz != null">
|
|
|
+ quantityjz = #{quantityjz,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="quantityzc != null">
|
|
|
+ quantityzc = #{quantityzc,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="jrwindcapacity != null">
|
|
|
+ jrwindcapacity = #{jrwindcapacity,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="jrwindcapacityunit != null">
|
|
|
+ jrwindcapacityunit = #{jrwindcapacityunit,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="jrwindquantity != null">
|
|
|
+ jrwindquantity = #{jrwindquantity,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="jrcapacity != null">
|
|
|
+ jrcapacity = #{jrcapacity,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="jrcapacityunit != null">
|
|
|
+ jrcapacityunit = #{jrcapacityunit,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="jrquantityjz != null">
|
|
|
+ jrquantityjz = #{jrquantityjz,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="jrquantityzc != null">
|
|
|
+ jrquantityzc = #{jrquantityzc,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="ordernum != null">
|
|
|
+ ordernum = #{ordernum,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="windnumber != null">
|
|
|
+ windnumber = #{windnumber,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="number != null">
|
|
|
+ number = #{number,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="jrwindnumber != null">
|
|
|
+ jrwindnumber = #{jrwindnumber,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="jrnumber != null">
|
|
|
+ jrnumber = #{jrnumber,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ where id = #{id,jdbcType=VARCHAR}
|
|
|
+ </update>
|
|
|
+ <update id="updateByPrimaryKey" parameterType="com.gyee.frame.model.auto.CompanysPG">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ -->
|
|
|
+ update companys
|
|
|
+ set name = #{name,jdbcType=VARCHAR},
|
|
|
+ aname = #{aname,jdbcType=VARCHAR},
|
|
|
+ windcapacity = #{windcapacity,jdbcType=NUMERIC},
|
|
|
+ windcapacityunit = #{windcapacityunit,jdbcType=VARCHAR},
|
|
|
+ windquantity = #{windquantity,jdbcType=INTEGER},
|
|
|
+ capacity = #{capacity,jdbcType=NUMERIC},
|
|
|
+ capacityunit = #{capacityunit,jdbcType=VARCHAR},
|
|
|
+ quantityjz = #{quantityjz,jdbcType=INTEGER},
|
|
|
+ quantityzc = #{quantityzc,jdbcType=INTEGER},
|
|
|
+ jrwindcapacity = #{jrwindcapacity,jdbcType=NUMERIC},
|
|
|
+ jrwindcapacityunit = #{jrwindcapacityunit,jdbcType=VARCHAR},
|
|
|
+ jrwindquantity = #{jrwindquantity,jdbcType=INTEGER},
|
|
|
+ jrcapacity = #{jrcapacity,jdbcType=NUMERIC},
|
|
|
+ jrcapacityunit = #{jrcapacityunit,jdbcType=VARCHAR},
|
|
|
+ jrquantityjz = #{jrquantityjz,jdbcType=INTEGER},
|
|
|
+ jrquantityzc = #{jrquantityzc,jdbcType=INTEGER},
|
|
|
+ ordernum = #{ordernum,jdbcType=INTEGER},
|
|
|
+ windnumber = #{windnumber,jdbcType=INTEGER},
|
|
|
+ number = #{number,jdbcType=INTEGER},
|
|
|
+ jrwindnumber = #{jrwindnumber,jdbcType=INTEGER},
|
|
|
+ jrnumber = #{jrnumber,jdbcType=INTEGER}
|
|
|
+ where id = #{id,jdbcType=VARCHAR}
|
|
|
+ </update>
|
|
|
+
|
|
|
+
|
|
|
+ <select id="getCompanysPG" resultType="com.gyee.frame.model.auto.CompanysPG">
|
|
|
+ select
|
|
|
+
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ from companys order by id
|
|
|
+
|
|
|
+ </select>
|
|
|
+
|
|
|
+</mapper>
|