|
@@ -0,0 +1,303 @@
|
|
|
+<?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.ProjectplanPGMapper">
|
|
|
+ <resultMap id="BaseResultMap" type="com.gyee.frame.model.auto.ProjectplanPG">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ -->
|
|
|
+ <id column="id" jdbcType="VARCHAR" property="id" />
|
|
|
+ <result column="projectid" jdbcType="VARCHAR" property="projectid" />
|
|
|
+ <result column="generatingcapacity" jdbcType="VARCHAR" property="generatingcapacity" />
|
|
|
+ <result column="outagehours" jdbcType="NUMERIC" property="outagehours" />
|
|
|
+ <result column="year" jdbcType="VARCHAR" property="year" />
|
|
|
+ <result column="month" jdbcType="VARCHAR" property="month" />
|
|
|
+ <result column="windpower" jdbcType="VARCHAR" property="windpower" />
|
|
|
+ </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, projectid, generatingcapacity, outagehours, year, month, windpower
|
|
|
+ </sql>
|
|
|
+ <select id="selectByExample" parameterType="com.gyee.frame.model.auto.ProjectplanPGExample" 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 projectplan
|
|
|
+ <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 projectplan
|
|
|
+ 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 projectplan
|
|
|
+ where id = #{id,jdbcType=VARCHAR}
|
|
|
+ </delete>
|
|
|
+ <delete id="deleteByExample" parameterType="com.gyee.frame.model.auto.ProjectplanPGExample">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ -->
|
|
|
+ delete from projectplan
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </delete>
|
|
|
+ <insert id="insert" parameterType="com.gyee.frame.model.auto.ProjectplanPG">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ -->
|
|
|
+ insert into projectplan (id, projectid, generatingcapacity,
|
|
|
+ outagehours, year, month,
|
|
|
+ windpower)
|
|
|
+ values (#{id,jdbcType=VARCHAR}, #{projectid,jdbcType=VARCHAR}, #{generatingcapacity,jdbcType=VARCHAR},
|
|
|
+ #{outagehours,jdbcType=NUMERIC}, #{year,jdbcType=VARCHAR}, #{month,jdbcType=VARCHAR},
|
|
|
+ #{windpower,jdbcType=VARCHAR})
|
|
|
+ </insert>
|
|
|
+ <insert id="insertSelective" parameterType="com.gyee.frame.model.auto.ProjectplanPG">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ -->
|
|
|
+ insert into projectplan
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="id != null">
|
|
|
+ id,
|
|
|
+ </if>
|
|
|
+ <if test="projectid != null">
|
|
|
+ projectid,
|
|
|
+ </if>
|
|
|
+ <if test="generatingcapacity != null">
|
|
|
+ generatingcapacity,
|
|
|
+ </if>
|
|
|
+ <if test="outagehours != null">
|
|
|
+ outagehours,
|
|
|
+ </if>
|
|
|
+ <if test="year != null">
|
|
|
+ year,
|
|
|
+ </if>
|
|
|
+ <if test="month != null">
|
|
|
+ month,
|
|
|
+ </if>
|
|
|
+ <if test="windpower != null">
|
|
|
+ windpower,
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="id != null">
|
|
|
+ #{id,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="projectid != null">
|
|
|
+ #{projectid,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="generatingcapacity != null">
|
|
|
+ #{generatingcapacity,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="outagehours != null">
|
|
|
+ #{outagehours,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="year != null">
|
|
|
+ #{year,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="month != null">
|
|
|
+ #{month,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="windpower != null">
|
|
|
+ #{windpower,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ </insert>
|
|
|
+ <select id="countByExample" parameterType="com.gyee.frame.model.auto.ProjectplanPGExample" resultType="java.lang.Long">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ -->
|
|
|
+ select count(*) from projectplan
|
|
|
+ <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 projectplan
|
|
|
+ <set>
|
|
|
+ <if test="record.id != null">
|
|
|
+ id = #{record.id,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.projectid != null">
|
|
|
+ projectid = #{record.projectid,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.generatingcapacity != null">
|
|
|
+ generatingcapacity = #{record.generatingcapacity,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.outagehours != null">
|
|
|
+ outagehours = #{record.outagehours,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="record.year != null">
|
|
|
+ year = #{record.year,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.month != null">
|
|
|
+ month = #{record.month,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.windpower != null">
|
|
|
+ windpower = #{record.windpower,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 projectplan
|
|
|
+ set id = #{record.id,jdbcType=VARCHAR},
|
|
|
+ projectid = #{record.projectid,jdbcType=VARCHAR},
|
|
|
+ generatingcapacity = #{record.generatingcapacity,jdbcType=VARCHAR},
|
|
|
+ outagehours = #{record.outagehours,jdbcType=NUMERIC},
|
|
|
+ year = #{record.year,jdbcType=VARCHAR},
|
|
|
+ month = #{record.month,jdbcType=VARCHAR},
|
|
|
+ windpower = #{record.windpower,jdbcType=VARCHAR}
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Update_By_Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </update>
|
|
|
+ <update id="updateByPrimaryKeySelective" parameterType="com.gyee.frame.model.auto.ProjectplanPG">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ -->
|
|
|
+ update projectplan
|
|
|
+ <set>
|
|
|
+ <if test="projectid != null">
|
|
|
+ projectid = #{projectid,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="generatingcapacity != null">
|
|
|
+ generatingcapacity = #{generatingcapacity,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="outagehours != null">
|
|
|
+ outagehours = #{outagehours,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="year != null">
|
|
|
+ year = #{year,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="month != null">
|
|
|
+ month = #{month,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="windpower != null">
|
|
|
+ windpower = #{windpower,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ where id = #{id,jdbcType=VARCHAR}
|
|
|
+ </update>
|
|
|
+ <update id="updateByPrimaryKey" parameterType="com.gyee.frame.model.auto.ProjectplanPG">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ -->
|
|
|
+ update projectplan
|
|
|
+ set projectid = #{projectid,jdbcType=VARCHAR},
|
|
|
+ generatingcapacity = #{generatingcapacity,jdbcType=VARCHAR},
|
|
|
+ outagehours = #{outagehours,jdbcType=NUMERIC},
|
|
|
+ year = #{year,jdbcType=VARCHAR},
|
|
|
+ month = #{month,jdbcType=VARCHAR},
|
|
|
+ windpower = #{windpower,jdbcType=VARCHAR}
|
|
|
+ where id = #{id,jdbcType=VARCHAR}
|
|
|
+ </update>
|
|
|
+</mapper>
|