AreaUspEfDayDataMapper.xml 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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.AreaUspEfDayDataMapper">
  6. <resultMap type="AreaUspEfDayData" id="AreaUspEfDayDataResult">
  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="nrmse" column="nrmse"/>
  12. <result property="nmae" column="nmae"/>
  13. <result property="bias" column="bias"/>
  14. <result property="correlationCoeff" column="correlation_coeff"/>
  15. <result property="accuracyRate" column="accuracy_rate"/>
  16. <result property="dataCount" column="data_count"/>
  17. <result property="dataFlag" column="data_flag"/>
  18. </resultMap>
  19. <sql id="selectAreaUspEfDayDataVo">
  20. select area_no, model_no, time_scale, data_time, nrmse, nmae, bias, correlation_coeff, accuracy_rate, data_count, data_flag from area_usp_ef_day_data
  21. </sql>
  22. <select id="selectAreaUspEfDayDataList" parameterType="AreaUspEfDayData" resultMap="AreaUspEfDayDataResult">
  23. <include refid="selectAreaUspEfDayDataVo"/>
  24. <where>
  25. <if test="nrmse != null ">and nrmse = #{nrmse}</if>
  26. <if test="nmae != null ">and nmae = #{nmae}</if>
  27. <if test="bias != null ">and bias = #{bias}</if>
  28. <if test="correlationCoeff != null ">and correlation_coeff = #{correlationCoeff}</if>
  29. <if test="accuracyRate != null ">and accuracy_rate = #{accuracyRate}</if>
  30. <if test="dataCount != null ">and data_count = #{dataCount}</if>
  31. <if test="dataFlag != null ">and data_flag = #{dataFlag}</if>
  32. </where>
  33. </select>
  34. <select id="selectAreaUspEfDayDataById" parameterType="Long" resultMap="AreaUspEfDayDataResult">
  35. <include refid="selectAreaUspEfDayDataVo"/>
  36. where area_no = #{areaNo}
  37. </select>
  38. </mapper>