AreaUspEfTsPeriodDataMapper.xml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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.AreaUspEfTsPeriodDataMapper">
  6. <resultMap type="AreaUspEfTsPeriodData" id="AreaUspEfTsPeriodDataResult">
  7. <result property="areaNo" column="area_no"/>
  8. <result property="modelNo" column="model_no"/>
  9. <result property="timeScale" column="time_scale"/>
  10. <result property="dataTime" column="data_time"/>
  11. <result property="windSpeed" column="wind_speed"/>
  12. <result property="modCoeff" column="mod_coeff"/>
  13. <result property="energy" column="energy"/>
  14. <result property="modEnergy" column="mod_energy"/>
  15. <result property="dataFlag" column="data_flag"/>
  16. </resultMap>
  17. <sql id="selectAreaUspEfTsPeriodDataVo">
  18. select area_no, model_no, time_scale, data_time, wind_speed, mod_coeff, energy, mod_energy, data_flag from area_usp_ef_ts_period_data
  19. </sql>
  20. <select id="selectAreaUspEfTsPeriodDataList" parameterType="AreaUspEfTsPeriodData"
  21. resultMap="AreaUspEfTsPeriodDataResult">
  22. <include refid="selectAreaUspEfTsPeriodDataVo"/>
  23. <where>
  24. <if test="windSpeed != null ">and wind_speed = #{windSpeed}</if>
  25. <if test="modCoeff != null ">and mod_coeff = #{modCoeff}</if>
  26. <if test="energy != null ">and energy = #{energy}</if>
  27. <if test="modEnergy != null ">and mod_energy = #{modEnergy}</if>
  28. <if test="dataFlag != null ">and data_flag = #{dataFlag}</if>
  29. </where>
  30. </select>
  31. <select id="selectAreaUspEfTsPeriodDataById" parameterType="Long" resultMap="AreaUspEfTsPeriodDataResult">
  32. <include refid="selectAreaUspEfTsPeriodDataVo"/>
  33. where area_no = #{areaNo}
  34. </select>
  35. </mapper>