AreaDaPfPeriodDataMapper.xml 1.4 KB

123456789101112131415161718192021222324252627282930313233
  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.AreaDaPfPeriodDataMapper">
  6. <resultMap type="AreaDaPfPeriodData" id="AreaDaPfPeriodDataResult">
  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="value" column="value"/>
  12. <result property="dataFlag" column="data_flag"/>
  13. </resultMap>
  14. <sql id="selectAreaDaPfPeriodDataVo">
  15. select area_no, model_no, time_scale, data_time, value, data_flag from area_da_pf_period_data
  16. </sql>
  17. <select id="selectAreaDaPfPeriodDataList" parameterType="AreaDaPfPeriodData" resultMap="AreaDaPfPeriodDataResult">
  18. <include refid="selectAreaDaPfPeriodDataVo"/>
  19. <where>
  20. <if test="value != null ">and value = #{value}</if>
  21. <if test="dataFlag != null ">and data_flag = #{dataFlag}</if>
  22. </where>
  23. </select>
  24. <select id="selectAreaDaPfPeriodDataById" parameterType="Long" resultMap="AreaDaPfPeriodDataResult">
  25. <include refid="selectAreaDaPfPeriodDataVo"/>
  26. where area_no = #{areaNo}
  27. </select>
  28. </mapper>