ProjectUspEfDayDataMapper.xml 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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.ProjectUspEfDayDataMapper">
  6. <resultMap type="ProjectUspEfDayData" id="ProjectUspEfDayDataResult">
  7. <result property="projectNo" column="project_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="selectProjectUspEfDayDataVo">
  20. select project_no, model_no, time_scale, data_time, nrmse, nmae, bias, correlation_coeff, accuracy_rate, data_count, data_flag from project_usp_ef_day_data
  21. </sql>
  22. <select id="selectProjectUspEfDayDataList" parameterType="ProjectUspEfDayData"
  23. resultMap="ProjectUspEfDayDataResult">
  24. <include refid="selectProjectUspEfDayDataVo"/>
  25. <where>
  26. <if test="projectNo != null ">and project_no = #{projectNo}</if>
  27. <if test="modelNo != null ">and model_no = #{modelNo}</if>
  28. <if test="timeScale != null ">and time_scale = #{timeScale}</if>
  29. <if test="nrmse != null ">and nrmse = #{nrmse}</if>
  30. <if test="nmae != null ">and nmae = #{nmae}</if>
  31. <if test="bias != null ">and bias = #{bias}</if>
  32. <if test="correlationCoeff != null ">and correlation_coeff = #{correlationCoeff}</if>
  33. <if test="accuracyRate != null ">and accuracy_rate = #{accuracyRate}</if>
  34. <if test="dataCount != null ">and data_count = #{dataCount}</if>
  35. <if test="dataFlag != null ">and data_flag = #{dataFlag}</if>
  36. <if test="params.beginDataTime != null and params.beginDataTime != '' and params.endDataTime != null and params.endDataTime != ''">
  37. and data_time between to_date(#{params.beginDataTime},'yyyy-MM-dd HH24:MI:SS') and
  38. to_date(#{params.endDataTime},'yyyy-MM-dd HH24:MI:SS')
  39. </if>
  40. <if test="dataTime != null ">and data_time = #{dataTime}</if>
  41. </where>
  42. order by data_time asc
  43. </select>
  44. <select id="selectProjectUspEfDayDataById" parameterType="Long" resultMap="ProjectUspEfDayDataResult">
  45. <include refid="selectProjectUspEfDayDataVo"/>
  46. where project_no = #{projectNo}
  47. </select>
  48. </mapper>