PfEvaRulsMonthDataMapper.xml 3.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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.PfEvaRulsMonthDataMapper">
  6. <resultMap type="PfEvaRulsMonthData" id="PfEvaRulsMonthDataResult">
  7. <result property="rtuNo" column="rtu_no"/>
  8. <result property="type" column="type"/>
  9. <result property="modelNo" column="model_no"/>
  10. <result property="dataTime" column="data_time"/>
  11. <result property="unlimitedCount" column="unlimited_count"/>
  12. <result property="accuracyRate" column="accuracy_rate"/>
  13. <result property="accuracyRateDl" column="accuracy_rate_dl"/>
  14. <result property="passCount" column="pass_count"/>
  15. <result property="passRate" column="pass_rate"/>
  16. <result property="passRateDl" column="pass_rate_dl"/>
  17. <result property="upSendCount" column="up_send_count"/>
  18. <result property="upSendRate" column="up_send_rate"/>
  19. <result property="upSendDl" column="up_send_dl"/>
  20. <result property="nrmse" column="nrmse"/>
  21. <result property="nmae" column="nmae"/>
  22. <result property="bias" column="bias"/>
  23. <result property="correlationCoeff" column="correlation_coeff"/>
  24. <result property="maxbias" column="maxbias"/>
  25. <result property="dataFlag" column="data_flag"/>
  26. </resultMap>
  27. <sql id="selectPfEvaRulsMonthDataVo">
  28. select rtu_no, type, model_no, data_time, unlimited_count, accuracy_rate, accuracy_rate_dl, pass_count, pass_rate, pass_rate_dl, up_send_count, up_send_rate, up_send_dl, nrmse, nmae, bias, correlation_coeff, maxbias, data_flag from pf_eva_ruls_month_data
  29. </sql>
  30. <select id="selectPfEvaRulsMonthDataList" parameterType="PfEvaRulsMonthData" resultMap="PfEvaRulsMonthDataResult">
  31. <include refid="selectPfEvaRulsMonthDataVo"/>
  32. <where>
  33. <if test="rtuNo != null ">and rtu_no = #{rtuNo}</if>
  34. <if test="modelNo != null ">and model_no = #{modelNo}</if>
  35. <if test="type != null ">and type = #{type}</if>
  36. <if test="unlimitedCount != null ">and unlimited_count = #{unlimitedCount}</if>
  37. <if test="accuracyRate != null ">and accuracy_rate = #{accuracyRate}</if>
  38. <if test="accuracyRateDl != null ">and accuracy_rate_dl = #{accuracyRateDl}</if>
  39. <if test="passCount != null ">and pass_count = #{passCount}</if>
  40. <if test="passRate != null ">and pass_rate = #{passRate}</if>
  41. <if test="passRateDl != null ">and pass_rate_dl = #{passRateDl}</if>
  42. <if test="upSendCount != null ">and up_send_count = #{upSendCount}</if>
  43. <if test="upSendRate != null ">and up_send_rate = #{upSendRate}</if>
  44. <if test="upSendDl != null ">and up_send_dl = #{upSendDl}</if>
  45. <if test="nrmse != null ">and nrmse = #{nrmse}</if>
  46. <if test="nmae != null ">and nmae = #{nmae}</if>
  47. <if test="bias != null ">and bias = #{bias}</if>
  48. <if test="correlationCoeff != null ">and correlation_coeff = #{correlationCoeff}</if>
  49. <if test="maxbias != null ">and maxbias = #{maxbias}</if>
  50. <if test="dataFlag != null ">and data_flag = #{dataFlag}</if>
  51. <if test="params.beginDataTime != null and params.beginDataTime != '' and params.endDataTime != null and params.endDataTime != ''">
  52. and data_time between to_date(#{params.beginDataTime},'yyyy-MM-dd HH24:MI:SS') and
  53. to_date(#{params.endDataTime},'yyyy-MM-dd HH24:MI:SS')
  54. </if>
  55. <if test="dataTime != null ">and data_time = #{dataTime}</if>
  56. </where>
  57. </select>
  58. <select id="selectPfEvaRulsMonthDataById" parameterType="Long" resultMap="PfEvaRulsMonthDataResult">
  59. <include refid="selectPfEvaRulsMonthDataVo"/>
  60. where rtu_no = #{rtuNo}
  61. </select>
  62. </mapper>