WfUspEfPeriodDataMapper.xml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE mapper
  3. PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  4. "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  5. <mapper namespace="com.ruoyi.predict.mapper.WfUspEfPeriodDataMapper">
  6. <resultMap type="WfUspEfPeriodData" id="WfUspEfPeriodDataResult">
  7. <result property="windplantNo" column="windplant_no"/>
  8. <result property="modelNo" column="model_no"/>
  9. <result property="dataTime" column="data_time"/>
  10. <result property="windSpeed" column="wind_speed"/>
  11. <result property="modCoeff" column="mod_coeff"/>
  12. <result property="energy" column="energy"/>
  13. <result property="modEnergy" column="mod_energy"/>
  14. <result property="dataFlag" column="data_flag"/>
  15. </resultMap>
  16. <sql id="selectWfUspEfPeriodDataVo">
  17. select windplant_no, model_no, data_time, wind_speed, mod_coeff, energy, mod_energy, data_flag from wf_usp_ef_period_data
  18. </sql>
  19. <select id="selectWfUspEfPeriodDataList" parameterType="WfUspEfPeriodData" resultMap="WfUspEfPeriodDataResult">
  20. <include refid="selectWfUspEfPeriodDataVo"/>
  21. <where>
  22. <if test="windSpeed != null ">and wind_speed = #{windSpeed}</if>
  23. <if test="modCoeff != null ">and mod_coeff = #{modCoeff}</if>
  24. <if test="energy != null ">and energy = #{energy}</if>
  25. <if test="modEnergy != null ">and mod_energy = #{modEnergy}</if>
  26. <if test="dataFlag != null ">and data_flag = #{dataFlag}</if>
  27. </where>
  28. </select>
  29. <select id="selectWfUspEfPeriodDataById" parameterType="Long" resultMap="WfUspEfPeriodDataResult">
  30. <include refid="selectWfUspEfPeriodDataVo"/>
  31. where windplant_no = #{windplantNo}
  32. </select>
  33. </mapper>