12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- <?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.ruoyi.predict.mapper.WfUspTsEfPeriodDataMapper">
- <resultMap type="WfUspTsEfPeriodData" id="WfUspTsEfPeriodDataResult">
- <result property="windplantNo" column="windplant_no"/>
- <result property="modelNo" column="model_no"/>
- <result property="timeScale" column="time_scale"/>
- <result property="dataTime" column="data_time"/>
- <result property="windSpeed" column="wind_speed"/>
- <result property="modCoeff" column="mod_coeff"/>
- <result property="energy" column="energy"/>
- <result property="modEnergy" column="mod_energy"/>
- <result property="dataFlag" column="data_flag"/>
- </resultMap>
- <sql id="selectWfUspTsEfPeriodDataVo">
- select windplant_no, model_no, time_scale, data_time, wind_speed, mod_coeff, energy, mod_energy, data_flag from wf_usp_ts_ef_period_data
- </sql>
- <select id="selectWfUspTsEfPeriodDataList" parameterType="WfUspTsEfPeriodData"
- resultMap="WfUspTsEfPeriodDataResult">
- <include refid="selectWfUspTsEfPeriodDataVo"/>
- <where>
- <if test="windplantNo != null ">and windplant_no = #{windplantNo}</if>
- <if test="modelNo != null ">and model_no = #{modelNo}</if>
- <if test="timeScale != null ">and time_scale = #{timeScale}</if>
- <if test="windSpeed != null ">and wind_speed = #{windSpeed}</if>
- <if test="modCoeff != null ">and mod_coeff = #{modCoeff}</if>
- <if test="energy != null ">and energy = #{energy}</if>
- <if test="modEnergy != null ">and mod_energy = #{modEnergy}</if>
- <if test="dataFlag != null ">and data_flag = #{dataFlag}</if>
- <if test="params.beginDataTime != null and params.beginDataTime != '' and params.endDataTime != null and params.endDataTime != ''">
- and data_time between to_date(#{params.beginDataTime},'yyyy-MM-dd HH24:MI:SS') and
- to_date(#{params.endDataTime},'yyyy-MM-dd HH24:MI:SS')
- </if>
- <if test="dataTime != null ">and data_time = #{dataTime}</if>
- </where>
- order by data_time asc
- </select>
- <select id="selectWfUspTsEfPeriodDataById" parameterType="Long" resultMap="WfUspTsEfPeriodDataResult">
- <include refid="selectWfUspTsEfPeriodDataVo"/>
- where windplant_no = #{windplantNo}
- </select>
- <select id="selectWfUspTsEfPeriodData" parameterType="WfUspTsEfPeriodData"
- resultMap="WfUspTsEfPeriodDataResult">
- <include refid="selectWfUspTsEfPeriodDataVo"/>
- where windplant_no = #{windplantNo} and model_no = #{modelNo} and time_scale = #{timeScale} and data_time > #{dataTime}
- </select>
- </mapper>
|