123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351 |
- <?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.WfpfdataMapper">
- <resultMap id="BaseResultMap" type="com.gyee.frame.model.auto.Wfpfdata">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- -->
- <id column="WINDPLANT_NO" jdbcType="DECIMAL" property="windplantNo" />
- <id column="MODEL_NO" jdbcType="DECIMAL" property="modelNo" />
- <id column="DATA_TIME" jdbcType="TIMESTAMP" property="dataTime" />
- <result column="NRMSE" jdbcType="FLOAT" property="nrmse" />
- <result column="NMAE" jdbcType="FLOAT" property="nmae" />
- <result column="BIAS" jdbcType="FLOAT" property="bias" />
- <result column="CORRELATION_COEFF" jdbcType="FLOAT" property="correlationCoeff" />
- <result column="ACCURACY_RATE" jdbcType="FLOAT" property="accuracyRate" />
- <result column="DATA_COUNT" jdbcType="DECIMAL" property="dataCount" />
- <result column="DATA_FLAG" jdbcType="DECIMAL" property="dataFlag" />
- </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.
- -->
- WINDPLANT_NO, MODEL_NO, DATA_TIME, NRMSE, NMAE, BIAS, CORRELATION_COEFF, ACCURACY_RATE,
- DATA_COUNT, DATA_FLAG
- </sql>
- <select id="selectByExample" parameterType="com.gyee.frame.model.auto.WfpfdataExample" 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 WF_DA_PF_DAY_DATA
- <if test="_parameter != null">
- <include refid="Example_Where_Clause" />
- </if>
- <if test="orderByClause != null">
- order by ${orderByClause}
- </if>
- </select>
- <select id="selectByPrimaryKey" parameterType="map" resultMap="BaseResultMap">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- -->
- select
- <include refid="Base_Column_List" />
- from WF_DA_PF_DAY_DATA
- where WINDPLANT_NO = #{windplantNo,jdbcType=DECIMAL}
- and MODEL_NO = #{modelNo,jdbcType=DECIMAL}
- and DATA_TIME = #{dataTime,jdbcType=TIMESTAMP}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="map">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- -->
- delete from WF_DA_PF_DAY_DATA
- where WINDPLANT_NO = #{windplantNo,jdbcType=DECIMAL}
- and MODEL_NO = #{modelNo,jdbcType=DECIMAL}
- and DATA_TIME = #{dataTime,jdbcType=TIMESTAMP}
- </delete>
- <delete id="deleteByExample" parameterType="com.gyee.frame.model.auto.WfpfdataExample">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- -->
- delete from WF_DA_PF_DAY_DATA
- <if test="_parameter != null">
- <include refid="Example_Where_Clause" />
- </if>
- </delete>
- <insert id="insert" parameterType="com.gyee.frame.model.auto.Wfpfdata">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- -->
- insert into WF_DA_PF_DAY_DATA (WINDPLANT_NO, MODEL_NO, DATA_TIME,
- NRMSE, NMAE, BIAS, CORRELATION_COEFF,
- ACCURACY_RATE, DATA_COUNT, DATA_FLAG
- )
- values (#{windplantNo,jdbcType=DECIMAL}, #{modelNo,jdbcType=DECIMAL}, #{dataTime,jdbcType=TIMESTAMP},
- #{nrmse,jdbcType=FLOAT}, #{nmae,jdbcType=FLOAT}, #{bias,jdbcType=FLOAT}, #{correlationCoeff,jdbcType=FLOAT},
- #{accuracyRate,jdbcType=FLOAT}, #{dataCount,jdbcType=DECIMAL}, #{dataFlag,jdbcType=DECIMAL}
- )
- </insert>
- <insert id="insertSelective" parameterType="com.gyee.frame.model.auto.Wfpfdata">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- -->
- insert into WF_DA_PF_DAY_DATA
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="windplantNo != null">
- WINDPLANT_NO,
- </if>
- <if test="modelNo != null">
- MODEL_NO,
- </if>
- <if test="dataTime != null">
- DATA_TIME,
- </if>
- <if test="nrmse != null">
- NRMSE,
- </if>
- <if test="nmae != null">
- NMAE,
- </if>
- <if test="bias != null">
- BIAS,
- </if>
- <if test="correlationCoeff != null">
- CORRELATION_COEFF,
- </if>
- <if test="accuracyRate != null">
- ACCURACY_RATE,
- </if>
- <if test="dataCount != null">
- DATA_COUNT,
- </if>
- <if test="dataFlag != null">
- DATA_FLAG,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="windplantNo != null">
- #{windplantNo,jdbcType=DECIMAL},
- </if>
- <if test="modelNo != null">
- #{modelNo,jdbcType=DECIMAL},
- </if>
- <if test="dataTime != null">
- #{dataTime,jdbcType=TIMESTAMP},
- </if>
- <if test="nrmse != null">
- #{nrmse,jdbcType=FLOAT},
- </if>
- <if test="nmae != null">
- #{nmae,jdbcType=FLOAT},
- </if>
- <if test="bias != null">
- #{bias,jdbcType=FLOAT},
- </if>
- <if test="correlationCoeff != null">
- #{correlationCoeff,jdbcType=FLOAT},
- </if>
- <if test="accuracyRate != null">
- #{accuracyRate,jdbcType=FLOAT},
- </if>
- <if test="dataCount != null">
- #{dataCount,jdbcType=DECIMAL},
- </if>
- <if test="dataFlag != null">
- #{dataFlag,jdbcType=DECIMAL},
- </if>
- </trim>
- </insert>
- <select id="countByExample" parameterType="com.gyee.frame.model.auto.WfpfdataExample" resultType="java.lang.Long">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- -->
- select count(*) from WF_DA_PF_DAY_DATA
- <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 WF_DA_PF_DAY_DATA
- <set>
- <if test="record.windplantNo != null">
- WINDPLANT_NO = #{record.windplantNo,jdbcType=DECIMAL},
- </if>
- <if test="record.modelNo != null">
- MODEL_NO = #{record.modelNo,jdbcType=DECIMAL},
- </if>
- <if test="record.dataTime != null">
- DATA_TIME = #{record.dataTime,jdbcType=TIMESTAMP},
- </if>
- <if test="record.nrmse != null">
- NRMSE = #{record.nrmse,jdbcType=FLOAT},
- </if>
- <if test="record.nmae != null">
- NMAE = #{record.nmae,jdbcType=FLOAT},
- </if>
- <if test="record.bias != null">
- BIAS = #{record.bias,jdbcType=FLOAT},
- </if>
- <if test="record.correlationCoeff != null">
- CORRELATION_COEFF = #{record.correlationCoeff,jdbcType=FLOAT},
- </if>
- <if test="record.accuracyRate != null">
- ACCURACY_RATE = #{record.accuracyRate,jdbcType=FLOAT},
- </if>
- <if test="record.dataCount != null">
- DATA_COUNT = #{record.dataCount,jdbcType=DECIMAL},
- </if>
- <if test="record.dataFlag != null">
- DATA_FLAG = #{record.dataFlag,jdbcType=DECIMAL},
- </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 WF_DA_PF_DAY_DATA
- set WINDPLANT_NO = #{record.windplantNo,jdbcType=DECIMAL},
- MODEL_NO = #{record.modelNo,jdbcType=DECIMAL},
- DATA_TIME = #{record.dataTime,jdbcType=TIMESTAMP},
- NRMSE = #{record.nrmse,jdbcType=FLOAT},
- NMAE = #{record.nmae,jdbcType=FLOAT},
- BIAS = #{record.bias,jdbcType=FLOAT},
- CORRELATION_COEFF = #{record.correlationCoeff,jdbcType=FLOAT},
- ACCURACY_RATE = #{record.accuracyRate,jdbcType=FLOAT},
- DATA_COUNT = #{record.dataCount,jdbcType=DECIMAL},
- DATA_FLAG = #{record.dataFlag,jdbcType=DECIMAL}
- <if test="_parameter != null">
- <include refid="Update_By_Example_Where_Clause" />
- </if>
- </update>
- <update id="updateByPrimaryKeySelective" parameterType="com.gyee.frame.model.auto.Wfpfdata">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- -->
- update WF_DA_PF_DAY_DATA
- <set>
- <if test="nrmse != null">
- NRMSE = #{nrmse,jdbcType=FLOAT},
- </if>
- <if test="nmae != null">
- NMAE = #{nmae,jdbcType=FLOAT},
- </if>
- <if test="bias != null">
- BIAS = #{bias,jdbcType=FLOAT},
- </if>
- <if test="correlationCoeff != null">
- CORRELATION_COEFF = #{correlationCoeff,jdbcType=FLOAT},
- </if>
- <if test="accuracyRate != null">
- ACCURACY_RATE = #{accuracyRate,jdbcType=FLOAT},
- </if>
- <if test="dataCount != null">
- DATA_COUNT = #{dataCount,jdbcType=DECIMAL},
- </if>
- <if test="dataFlag != null">
- DATA_FLAG = #{dataFlag,jdbcType=DECIMAL},
- </if>
- </set>
- where WINDPLANT_NO = #{windplantNo,jdbcType=DECIMAL}
- and MODEL_NO = #{modelNo,jdbcType=DECIMAL}
- and DATA_TIME = #{dataTime,jdbcType=TIMESTAMP}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.gyee.frame.model.auto.Wfpfdata">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- -->
- update WF_DA_PF_DAY_DATA
- set NRMSE = #{nrmse,jdbcType=FLOAT},
- NMAE = #{nmae,jdbcType=FLOAT},
- BIAS = #{bias,jdbcType=FLOAT},
- CORRELATION_COEFF = #{correlationCoeff,jdbcType=FLOAT},
- ACCURACY_RATE = #{accuracyRate,jdbcType=FLOAT},
- DATA_COUNT = #{dataCount,jdbcType=DECIMAL},
- DATA_FLAG = #{dataFlag,jdbcType=DECIMAL}
- where WINDPLANT_NO = #{windplantNo,jdbcType=DECIMAL}
- and MODEL_NO = #{modelNo,jdbcType=DECIMAL}
- and DATA_TIME = #{dataTime,jdbcType=TIMESTAMP}
- </update>
- </mapper>
|