ProjectDaPfMonthDataMapper.xml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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.ProjectDaPfMonthDataMapper">
  6. <resultMap type="ProjectDaPfMonthData" id="ProjectDaPfMonthDataResult">
  7. <result property="wfPrNo" column="wf_pr_no"/>
  8. <result property="modelNo" column="model_no"/>
  9. <result property="dataTime" column="data_time"/>
  10. <result property="nrmse" column="nrmse"/>
  11. <result property="nmae" column="nmae"/>
  12. <result property="bias" column="bias"/>
  13. <result property="correlationCoeff" column="correlation_coeff"/>
  14. <result property="accuracyRate" column="accuracy_rate"/>
  15. <result property="dataCount" column="data_count"/>
  16. <result property="dataFlag" column="data_flag"/>
  17. </resultMap>
  18. <sql id="selectProjectDaPfMonthDataVo">
  19. select wf_pr_no, model_no, data_time, nrmse, nmae, bias, correlation_coeff, accuracy_rate, data_count, data_flag from project_da_pf_month_data
  20. </sql>
  21. <select id="selectProjectDaPfMonthDataList" parameterType="ProjectDaPfMonthData"
  22. resultMap="ProjectDaPfMonthDataResult">
  23. <include refid="selectProjectDaPfMonthDataVo"/>
  24. <where>
  25. <if test="wfPrNo != null ">and wf_pr_no = #{wfPrNo}</if>
  26. <if test="modelNo != null ">and model_no = #{modelNo}</if>
  27. <if test="nrmse != null ">and nrmse = #{nrmse}</if>
  28. <if test="nmae != null ">and nmae = #{nmae}</if>
  29. <if test="bias != null ">and bias = #{bias}</if>
  30. <if test="correlationCoeff != null ">and correlation_coeff = #{correlationCoeff}</if>
  31. <if test="accuracyRate != null ">and accuracy_rate = #{accuracyRate}</if>
  32. <if test="dataCount != null ">and data_count = #{dataCount}</if>
  33. <if test="dataFlag != null ">and data_flag = #{dataFlag}</if>
  34. <if test="params.beginDataTime != null and params.beginDataTime != '' and params.endDataTime != null and params.endDataTime != ''">
  35. and data_time between to_date(#{params.beginDataTime},'yyyy-MM-dd HH24:MI:SS') and
  36. to_date(#{params.endDataTime},'yyyy-MM-dd HH24:MI:SS')
  37. </if>
  38. <if test="dataTime != null ">and data_time = #{dataTime}</if>
  39. </where>
  40. order by data_time asc
  41. </select>
  42. <select id="selectProjectDaPfMonthDataById" parameterType="Long" resultMap="ProjectDaPfMonthDataResult">
  43. <include refid="selectProjectDaPfMonthDataVo"/>
  44. where wf_pr_no = #{wfPrNo}
  45. </select>
  46. </mapper>